{"id":363141,"date":"2026-10-06T20:53:59","date_gmt":"2026-10-06T18:53:59","guid":{"rendered":"https:\/\/legrandcontinent.eu\/fr\/?page_id=363141"},"modified":"2026-10-06T22:57:58","modified_gmt":"2026-10-06T20:57:58","slug":"primaire-presidentielle-socialiste-francaise-de-2026","status":"publish","type":"page","link":"https:\/\/legrandcontinent.eu\/fr\/primaire-presidentielle-socialiste-francaise-de-2026\/","title":{"rendered":"Primaire pr\u00e9sidentielle socialiste fran\u00e7aise de 2026"},"content":{"rendered":"<!-- Quiz \u00b7 primaire-ps-2026 \u00b7 g\u00e9n\u00e9r\u00e9 par scripts\/build-quiz-block.cjs \u2014 ne pas \u00e9diter \u00e0 la main, relancer le script -->\n<div class=\"qz-block\" id=\"quiz-primaire-ps-2026\" data-quiz data-lien=\"https:\/\/legrandcontinent.eu\/fr\/2026\/10\/06\/quelle-geopolitique-pour-la-primaire-socialiste\/\" data-set=\"primaire-ps-2026\">\n  <div class=\"qz\" data-qz-mount lang=\"fr\">\n    <noscript><p>Le test demande JavaScript.<\/p><\/noscript>\n  <\/div>\n  <script type=\"application\/json\">{\"set\":\"primaire-ps-2026\",\"lang\":\"fr\",\"labels\":{\"oeil\":\"Primaire pr\u00e9sidentielle socialiste fran\u00e7aise de 2026\",\"introTitre\":\"De qui \u00eates-vous le plus proche\u00a0?\",\"introSous\":\"R\u00e9pondez \u00e0 ces neuf questions et d\u00e9couvrez le candidat avec lequel vous \u00eates le plus en phase sur le plan g\u00e9opolitique.\",\"pourquoi\":\"La question pos\u00e9e aux candidats\",\"resultatTitre\":\"Le profil dont vous \u00eates le plus proche\",\"resultatEgalite\":\"Les profils dont vous \u00eates le plus proche, \u00e0 \u00e9galit\u00e9\",\"partageTexte\":\"Mon r\u00e9sultat au test du Grand Continent\u00a0: {name}, {score}\u00a0% d\u2019affinit\u00e9. Et vous\u00a0? {url}\",\"commencer\":\"Commencer\",\"passer\":\"Passer la question\",\"detail\":\"Voir le d\u00e9tail\",\"refaire\":\"Refaire le test\",\"lireArticle\":\"Lire l\u2019article\"},\"assets\":\"https:\/\/legrandcontinent.eu\/fr\/wp-content\/themes\/lgc\/assets\/games\/primaire-ps-2026\/photos\/\",\"v\":\"474aa788\",\"candidates\":[{\"slug\":\"faure\",\"name\":\"Olivier Faure\",\"short\":\"Premier secr\u00e9taire du Parti socialiste.\",\"photo\":true},{\"slug\":\"glucksmann\",\"name\":\"Rapha\u00ebl Glucksmann\",\"short\":\"Eurod\u00e9put\u00e9, fondateur de Place publique.\",\"photo\":true},{\"slug\":\"guedj\",\"name\":\"J\u00e9r\u00f4me Guedj\",\"short\":\"D\u00e9put\u00e9 socialiste de l\u2019Essonne.\",\"photo\":true},{\"slug\":\"maurel\",\"name\":\"Emmanuel Maurel\",\"short\":\"Gauche r\u00e9publicaine et socialiste.\",\"photo\":true},{\"slug\":\"royal\",\"name\":\"S\u00e9gol\u00e8ne Royal\",\"short\":\"Candidate \u00e0 l\u2019\u00e9lection pr\u00e9sidentielle de 2007.\",\"photo\":true}],\"questions\":[{\"id\":\"ukraine\",\"theme\":\"Ukraine et Russie\",\"text\":\"La France et l\u2019Union europ\u00e9enne doivent aller plus loin dans le soutien \u00e0 l\u2019Ukraine, plut\u00f4t que chercher \u00e0 n\u00e9gocier avec Poutine.\",\"info\":\"La question pos\u00e9e aux candidats\u00a0: La France et l\u2019Union europ\u00e9enne doivent-elles aller plus loin dans le soutien \u00e0 l\u2019Ukraine ou plut\u00f4t chercher \u00e0 renouer avec la Russie de Poutine\u00a0?\",\"options\":[{\"key\":\"a\",\"text\":\"D\u2019accord\",\"scores\":{\"faure\":2,\"glucksmann\":2,\"guedj\":2,\"maurel\":2,\"royal\":1}},{\"key\":\"b\",\"text\":\"Neutre\",\"scores\":{\"faure\":1,\"glucksmann\":1,\"guedj\":1,\"maurel\":1,\"royal\":2}},{\"key\":\"c\",\"text\":\"Pas d\u2019accord\",\"scores\":{\"faure\":0,\"glucksmann\":0,\"guedj\":0,\"maurel\":0,\"royal\":1}}]},{\"id\":\"moyen-orient\",\"theme\":\"Moyen-Orient\",\"text\":\"Au Moyen-Orient, la France doit sanctionner Isra\u00ebl quand le droit international est viol\u00e9, plut\u00f4t que jouer seulement les m\u00e9diateurs.\",\"info\":\"La question pos\u00e9e aux candidats\u00a0: Quel r\u00f4le la France peut-elle et doit-elle jouer au Moyen-Orient vis-\u00e0-vis d\u2019Isra\u00ebl et ses voisins, de l\u2019Iran et des monarchies du Golfe\u00a0?\",\"options\":[{\"key\":\"a\",\"text\":\"D\u2019accord\",\"scores\":{\"faure\":2,\"glucksmann\":1,\"guedj\":1,\"maurel\":2,\"royal\":2}},{\"key\":\"b\",\"text\":\"Neutre\",\"scores\":{\"faure\":1,\"glucksmann\":2,\"guedj\":2,\"maurel\":1,\"royal\":1}},{\"key\":\"c\",\"text\":\"Pas d\u2019accord\",\"scores\":{\"faure\":0,\"glucksmann\":1,\"guedj\":1,\"maurel\":0,\"royal\":0}}]},{\"id\":\"chine\",\"theme\":\"Chine\",\"text\":\"La Chine est d\u2019abord une menace pour la France, plus qu\u2019un contrepoids et un partenaire.\",\"info\":\"La question pos\u00e9e aux candidats\u00a0: La Chine est-elle pour la France une menace ou plut\u00f4t un contrepoids et un partenaire\u00a0? Et le socialisme du XXIe si\u00e8cle a-t-il quelque chose \u00e0 apprendre du Parti communiste chinois\u00a0?\",\"weight\":2,\"options\":[{\"key\":\"a\",\"text\":\"D\u2019accord\",\"scores\":{\"faure\":1,\"glucksmann\":2,\"guedj\":1,\"maurel\":2,\"royal\":0}},{\"key\":\"b\",\"text\":\"Neutre\",\"scores\":{\"faure\":2,\"glucksmann\":1,\"guedj\":2,\"maurel\":1,\"royal\":1}},{\"key\":\"c\",\"text\":\"Pas d\u2019accord\",\"scores\":{\"faure\":1,\"glucksmann\":0,\"guedj\":1,\"maurel\":0,\"royal\":2}}]},{\"id\":\"etats-unis\",\"theme\":\"\u00c9tats-Unis\",\"text\":\"La France et l\u2019Union europ\u00e9enne doivent assumer une rupture rapide avec Washington pour leur d\u00e9fense, leur \u00e9nergie et leurs technologies.\",\"info\":\"La question pos\u00e9e aux candidats\u00a0: La France et l\u2019Union europ\u00e9enne d\u00e9pendent de Washington pour leur d\u00e9fense, leur \u00e9nergie et leurs technologies. Faut-il assumer une rupture\u00a0? Jusqu\u2019o\u00f9, et \u00e0 quel rythme\u00a0?\",\"options\":[{\"key\":\"a\",\"text\":\"D\u2019accord\",\"scores\":{\"faure\":1,\"glucksmann\":2,\"guedj\":1,\"maurel\":2,\"royal\":1}},{\"key\":\"b\",\"text\":\"Neutre\",\"scores\":{\"faure\":2,\"glucksmann\":1,\"guedj\":2,\"maurel\":1,\"royal\":2}},{\"key\":\"c\",\"text\":\"Pas d\u2019accord\",\"scores\":{\"faure\":1,\"glucksmann\":0,\"guedj\":1,\"maurel\":0,\"royal\":1}}]},{\"id\":\"ia\",\"theme\":\"Intelligence artificielle\",\"text\":\"D\u00e9velopper un mod\u00e8le de fronti\u00e8re en IA, sur le mod\u00e8le de l\u2019op\u00e9ration Prom\u00e9th\u00e9e, est une priorit\u00e9 strat\u00e9gique pour la souverainet\u00e9 fran\u00e7aise et europ\u00e9enne.\",\"info\":\"La question pos\u00e9e aux candidats\u00a0: Pour garantir le futur de la souverainet\u00e9 fran\u00e7aise et europ\u00e9enne, le d\u00e9veloppement d\u2019un mod\u00e8le de fronti\u00e8re IA (sur le mod\u00e8le de l\u2019op\u00e9ration Prom\u00e9th\u00e9e) est-il une priorit\u00e9 strat\u00e9gique\u00a0?\",\"options\":[{\"key\":\"a\",\"text\":\"D\u2019accord\",\"scores\":{\"faure\":2,\"glucksmann\":2,\"guedj\":1,\"maurel\":1,\"royal\":2}},{\"key\":\"b\",\"text\":\"Neutre\",\"scores\":{\"faure\":1,\"glucksmann\":1,\"guedj\":2,\"maurel\":2,\"royal\":1}},{\"key\":\"c\",\"text\":\"Pas d\u2019accord\",\"scores\":{\"faure\":0,\"glucksmann\":0,\"guedj\":1,\"maurel\":1,\"royal\":0}}]},{\"id\":\"europe\",\"theme\":\"Construction europ\u00e9enne\",\"text\":\"Pour sortir l\u2019Europe de la paralysie, il faut acc\u00e9l\u00e9rer l\u2019int\u00e9gration et donner davantage de moyens \u00e0 l\u2019Union, plut\u00f4t que d\u00e9sob\u00e9ir ou inventer d\u2019autres formats.\",\"info\":\"La question pos\u00e9e aux candidats\u00a0: L\u2019Europe semble paralys\u00e9e. Faut-il acc\u00e9l\u00e9rer l\u2019int\u00e9gration, notamment en donnant davantage de moyens \u00e0 l\u2019Union, ou changer de cap, en d\u00e9sob\u00e9issant ou en inventant d\u2019autres formats\u00a0?\",\"options\":[{\"key\":\"a\",\"text\":\"D\u2019accord\",\"scores\":{\"faure\":2,\"glucksmann\":2,\"guedj\":2,\"maurel\":1,\"royal\":1}},{\"key\":\"b\",\"text\":\"Neutre\",\"scores\":{\"faure\":1,\"glucksmann\":1,\"guedj\":1,\"maurel\":2,\"royal\":2}},{\"key\":\"c\",\"text\":\"Pas d\u2019accord\",\"scores\":{\"faure\":0,\"glucksmann\":0,\"guedj\":0,\"maurel\":1,\"royal\":1}}]},{\"id\":\"sud-global\",\"theme\":\"Sud global\",\"text\":\"Les nouveaux partenariats avec l\u2019Afrique et le \u00ab\u00a0Sud global\u00a0\u00bb sont compatibles avec la politique migratoire actuelle de la France et de l\u2019Europe.\",\"info\":\"La question pos\u00e9e aux candidats\u00a0: Le \u00ab\u00a0Sud global\u00a0\u00bb est-il une notion pertinente\u00a0? Comment nouer de nouveaux partenariats avec l\u2019Afrique et les autres r\u00e9gions en d\u00e9veloppement, et est-ce compatible avec la politique migratoire actuelle de la France et de l\u2019Europe\u00a0?\",\"weight\":2,\"options\":[{\"key\":\"a\",\"text\":\"D\u2019accord\",\"scores\":{\"faure\":0,\"glucksmann\":1,\"guedj\":0,\"maurel\":1,\"royal\":1}},{\"key\":\"b\",\"text\":\"Neutre\",\"scores\":{\"faure\":1,\"glucksmann\":2,\"guedj\":1,\"maurel\":2,\"royal\":2}},{\"key\":\"c\",\"text\":\"Pas d\u2019accord\",\"scores\":{\"faure\":2,\"glucksmann\":1,\"guedj\":2,\"maurel\":1,\"royal\":1}}]},{\"id\":\"ecologie\",\"theme\":\"\u00c9cologie\",\"text\":\"Pour redevenir majoritaire, l\u2019\u00e9cologie doit devenir un projet de r\u00e9industrialisation et de puissance plut\u00f4t qu\u2019un discours de sobri\u00e9t\u00e9.\",\"info\":\"La question pos\u00e9e aux candidats\u00a0: L\u2019\u00e9cologie politique recule. Pour lui redonner une vocation majoritaire, faut-il en faire un projet de r\u00e9industrialisation et de puissance g\u00e9opolitique, plut\u00f4t qu\u2019un discours de sobri\u00e9t\u00e9\u00a0? Faut-il fermer la porte aux technologies vertes chinoises ou les importer massivement pour acc\u00e9l\u00e9rer la transition\u00a0?\",\"options\":[{\"key\":\"a\",\"text\":\"D\u2019accord\",\"scores\":{\"faure\":1,\"glucksmann\":2,\"guedj\":1,\"maurel\":1,\"royal\":2}},{\"key\":\"b\",\"text\":\"Neutre\",\"scores\":{\"faure\":2,\"glucksmann\":1,\"guedj\":2,\"maurel\":2,\"royal\":1}},{\"key\":\"c\",\"text\":\"Pas d\u2019accord\",\"scores\":{\"faure\":1,\"glucksmann\":0,\"guedj\":1,\"maurel\":1,\"royal\":0}}]},{\"id\":\"puissance\",\"theme\":\"Puissance\",\"text\":\"La gauche doit assumer pleinement une politique de puissance et se dire \u00ab\u00a0eurogaulliste\u00a0\u00bb.\",\"info\":\"La question pos\u00e9e aux candidats\u00a0: La gauche doit-elle assumer une politique de puissance\u00a0? \u00c0 quoi ressemblerait une politique de puissance fran\u00e7aise et progressiste, et quels dirigeants, d\u2019hier ou d\u2019aujourd\u2019hui, vous inspirent\u00a0? Vous diriez-vous \u00ab\u00a0eurogaulliste\u00a0\u00bb\u00a0?\",\"options\":[{\"key\":\"a\",\"text\":\"D\u2019accord\",\"scores\":{\"faure\":1,\"glucksmann\":2,\"guedj\":1,\"maurel\":1,\"royal\":2}},{\"key\":\"b\",\"text\":\"Neutre\",\"scores\":{\"faure\":2,\"glucksmann\":1,\"guedj\":2,\"maurel\":2,\"royal\":1}},{\"key\":\"c\",\"text\":\"Pas d\u2019accord\",\"scores\":{\"faure\":1,\"glucksmann\":0,\"guedj\":1,\"maurel\":1,\"royal\":0}}]}],\"cover\":true}<\/script>\n<\/div>\n<script>\n(function () {\n  'use strict';\n  var id = 'qz-styles-primaire-ps-2026';\n  if (!document.getElementById(id)) {\n    var el = document.createElement('style');\n    el.id = id;\n    el.textContent = \".qz-block {\\n  position: relative;\\n  -webkit-box-sizing: border-box;\\n          box-sizing: border-box;\\n  width: 100%;\\n  max-width: 720px;\\n  margin-left: auto;\\n  margin-right: auto;\\n  -webkit-box-flex: 0;\\n      -ms-flex: none;\\n          flex: none;\\n  scroll-margin-top: 58px;     \\n}\\n@media (min-width: 768px) {\\n.qz-block {\\n    scroll-margin-top: 83px\\n}\\n  }\\n.article-blocks-layuot > .qz-block {\\n    max-width: none;\\n    background-clip: content-box;\\n    width: 100%;\\n    padding-left: calc(var(--grid_unit_value) * 1);\\n    padding-right: calc(var(--grid_unit_value) * 1);\\n    padding-top: 0px;\\n    padding-bottom: 0px;\\n  }\\n@media (min-width: 768px) {\\n  .article-blocks-layuot > .qz-block {\\n    margin-left: auto;\\n    margin-right: auto\\n  }\\n  .article-blocks-layuot > .qz-block {\\n    width: 80%\\n  }\\n}\\n@media (min-width: 990px) {\\n  .article-blocks-layuot > .qz-block {\\n    margin-left: 37.5%\\n  }\\n  .article-blocks-layuot > .qz-block {\\n    margin-right: 0px\\n  }\\n  .article-blocks-layuot > .qz-block {\\n    width: 62.5%\\n  }\\n}\\n@media (min-width: 1320px) {\\n  .article-blocks-layuot > .qz-block {\\n    margin-left: 40%\\n  }\\n  .article-blocks-layuot > .qz-block {\\n    margin-right: 10%\\n  }\\n  .article-blocks-layuot > .qz-block {\\n    width: 50%\\n  }\\n}\\n.qz-block {\\n  --qz-fond: #f5f5f2;\\n  --qz-encre: #1c1b1c;\\n  --qz-gris: #484848;\\n  --qz-gris-clair: #828282;\\n  --qz-trait: #dcdcd6;\\n  --qz-accent: #dd203c;\\n  --qz-blanc: #fff;\\n  background: var(--qz-fond);\\n  margin-top: 40px;\\n  margin-bottom: 40px\\n}\\n@media (min-width: 990px) {\\n.qz-block {\\n    margin-top: 60px;\\n    margin-bottom: 60px\\n}\\n  }\\n.qz {\\n  font-family: NationalWeb, Helvetica Neue, sans-serif;\\n  color: var(--qz-encre);\\n  --qz-pad-y: 24px;\\n  --qz-pad-x: 20px;\\n  padding: var(--qz-pad-y) var(--qz-pad-x) 32px;\\n  -webkit-font-feature-settings: 'lnum' 1, 'tnum' 1;\\n          font-feature-settings: 'lnum' 1, 'tnum' 1\\n}\\n@media (min-width: 768px) {\\n.qz {\\n    --qz-pad-y: 36px;\\n    --qz-pad-x: 40px;\\n    padding-bottom: 48px\\n}\\n  }\\n.qz p,\\n  .qz ol,\\n  .qz ul,\\n  .qz li,\\n  .qz details,\\n  .qz summary {\\n    margin: 0;\\n    padding: 0;\\n    list-style: none;\\n  }\\n.qz a {\\n    color: inherit;\\n    text-decoration: none;\\n    border: 0;\\n    background: none;\\n  }\\n.qz img,\\n  .qz picture {\\n    display: block;\\n    margin: 0;\\n    max-width: 100%;\\n  }\\n.qz button {\\n    font: inherit;\\n    color: inherit;\\n    background: none;\\n    border: 0;\\n    cursor: pointer;\\n  }\\n.qz button:focus-visible,\\n  .qz a:focus-visible,\\n  .qz summary:focus-visible {\\n    outline: 1px solid var(--qz-accent);\\n    outline-offset: 2px;\\n  }\\n.qz .qz__oeil, .qz .qz__theme, .qz .qz__section, .qz .qz__draft {\\n  font-family: NationalWeb, Helvetica Neue, sans-serif;\\n  font-size: .7rem;\\n  font-weight: 600;\\n  text-transform: uppercase;\\n  letter-spacing: 0.10em;\\n    line-height: 1.15\\n}\\n.qz .qz__draft {\\n    display: inline-block;\\n    color: var(--qz-blanc);\\n    background: var(--qz-accent);\\n    padding: 3px 8px;\\n    margin-bottom: 16px;\\n    border-radius: .125rem;\\n  }\\n.qz .qz__cover {\\n    margin: calc(-1 * var(--qz-pad-y)) calc(-1 * var(--qz-pad-x)) 20px;\\n  }\\n.qz .qz__cover[hidden] {\\n      display: none;\\n    }\\n.qz .qz__cover img {\\n      width: 100%;\\n      height: auto;\\n      aspect-ratio: 3 \/ 2;\\n      -o-object-fit: cover;\\n         object-fit: cover;\\n      -o-object-position: 50% 50%;\\n         object-position: 50% 50%;\\n    }\\n.qz[data-etat='intro'] .qz__barre {\\n    margin-bottom: 18px;\\n  }\\n@media (min-width: 768px) {\\n.qz[data-etat='intro'] .qz__barre {\\n      margin-bottom: 22px\\n  }\\n    }\\n.qz .qz__tete {\\n    display: -webkit-box;\\n    display: -ms-flexbox;\\n    display: flex;\\n    -webkit-box-align: baseline;\\n        -ms-flex-align: baseline;\\n            align-items: baseline;\\n    -webkit-box-pack: justify;\\n        -ms-flex-pack: justify;\\n            justify-content: space-between;\\n    -ms-flex-wrap: wrap;\\n        flex-wrap: wrap;\\n    gap: 6px 16px;\\n  }\\n.qz .qz__oeil {\\n    color: var(--qz-encre);\\n  }\\n.qz .qz__chip {\\n  font-size: .7rem;\\n    color: var(--qz-gris-clair)\\n}\\n.qz .qz__barre {\\n    height: 2px;\\n    background: -webkit-gradient(linear, left top, left bottom, from(var(--qz-trait)), to(var(--qz-trait))) 0 50% \/ 100% 1px no-repeat;\\n    background: -o-linear-gradient(var(--qz-trait), var(--qz-trait)) 0 50% \/ 100% 1px no-repeat;\\n    background: linear-gradient(var(--qz-trait), var(--qz-trait)) 0 50% \/ 100% 1px no-repeat;\\n    margin: 12px 0 28px;\\n  }\\n@media (min-width: 768px) {\\n.qz .qz__barre {\\n      margin: 14px 0 36px\\n  }\\n    }\\n.qz .qz__barre-fill {\\n    display: block;\\n    height: 100%;\\n    width: 0;\\n    background: var(--qz-accent);\\n    -webkit-transition: width 0.35s ease;\\n    -o-transition: width 0.35s ease;\\n    transition: width 0.35s ease;\\n  }\\n.qz .qz__titre {\\n  font-family: \\\"Sanomat Web\\\", \\\"Publico Text Web\\\", serif;\\n    font-size: 28px;\\n    line-height: 1.1;\\n    margin-bottom: 16px\\n}\\n@media (min-width: 768px) {\\n.qz .qz__titre {\\n      font-size: 40px;\\n      margin-bottom: 20px\\n  }\\n    }\\n.qz .qz__sous {\\n  font-family: \\\"Publico Text Web\\\", Georgia, serif;\\n    font-size: 17px;\\n    line-height: 1.45;\\n    color: var(--qz-gris);\\n    margin-bottom: 28px\\n}\\n@media (min-width: 768px) {\\n.qz .qz__sous {\\n      font-size: 19px\\n  }\\n    }\\n.qz .qz__sous--resultat {\\n    margin-bottom: 12px;\\n  }\\n.qz .qz__theme {\\n    color: var(--qz-accent);\\n    margin-bottom: 10px;\\n  }\\n.qz .qz__question {\\n  font-family: \\\"Sanomat Web\\\", \\\"Publico Text Web\\\", serif;\\n    font-size: 22px;\\n    line-height: 1.2;\\n    margin-bottom: 20px\\n}\\n@media (min-width: 768px) {\\n.qz .qz__question {\\n      font-size: 30px;\\n      margin-bottom: 24px\\n  }\\n    }\\n.qz .qz__info {\\n    margin: -8px 0 20px;\\n    font-size: .7rem;\\n    line-height: 1.4;\\n    color: var(--qz-gris-clair);\\n  }\\n.qz .qz__info-titre {\\n    cursor: pointer;\\n    display: inline-block;\\n    text-decoration: underline;\\n    text-underline-offset: 3px;\\n    list-style: none;\\n  }\\n.qz .qz__info-titre::-webkit-details-marker {\\n      display: none;\\n    }\\n.qz .qz__info-texte {\\n  font-family: \\\"Publico Text Web\\\", Georgia, serif;\\n    padding-top: 8px;\\n    font-size: 15px;\\n    line-height: 1.45;\\n    color: var(--qz-gris)\\n}\\n.qz .qz__section {\\n    color: var(--qz-gris-clair);\\n    margin: 32px 0 12px;\\n    padding-top: 16px;\\n    border-top: 1px solid var(--qz-trait);\\n  }\\n.qz .qz__options {\\n    display: grid;\\n    gap: 8px;\\n  }\\n.qz .qz__option {\\n    display: -webkit-box;\\n    display: -ms-flexbox;\\n    display: flex;\\n    -webkit-box-align: start;\\n        -ms-flex-align: start;\\n            align-items: flex-start;\\n    gap: 12px;\\n    width: 100%;\\n    text-align: left;\\n    padding: 13px 16px;\\n    background: var(--qz-blanc);\\n    border: 1px solid var(--qz-trait);\\n    border-radius: .25rem;\\n    font-size: 16px;\\n    line-height: 1.35;\\n    -webkit-transition: border-color 0.2s ease, background-color 0.2s ease;\\n    -o-transition: border-color 0.2s ease, background-color 0.2s ease;\\n    transition: border-color 0.2s ease, background-color 0.2s ease;\\n  }\\n@media (min-width: 768px) {\\n.qz .qz__option {\\n      font-size: 17px;\\n      padding: 14px 18px\\n  }\\n    }\\n@media (hover: hover) {\\n      .qz .qz__option:hover {\\n        border-color: var(--qz-gris);\\n      }\\n    }\\n.qz .qz__option[aria-pressed='true'] {\\n      border-color: var(--qz-accent);\\n    }\\n.qz .qz__option-coche {\\n    -webkit-box-flex: 0;\\n        -ms-flex: none;\\n            flex: none;\\n    width: 18px;\\n    height: 18px;\\n    margin-top: 2px;\\n    border: 1px solid var(--qz-trait);\\n    border-radius: 50%;\\n    display: -webkit-inline-box;\\n    display: -ms-inline-flexbox;\\n    display: inline-flex;\\n    -webkit-box-align: center;\\n        -ms-flex-align: center;\\n            align-items: center;\\n    -webkit-box-pack: center;\\n        -ms-flex-pack: center;\\n            justify-content: center;\\n    -webkit-transition: background-color 0.2s ease, border-color 0.2s ease;\\n    -o-transition: background-color 0.2s ease, border-color 0.2s ease;\\n    transition: background-color 0.2s ease, border-color 0.2s ease;\\n  }\\n.qz .qz__option-coche svg {\\n      width: 12px;\\n      height: 12px;\\n      opacity: 0;\\n      color: var(--qz-blanc);\\n    }\\n.qz .qz__option[aria-pressed='true'] .qz__option-coche {\\n    border-color: var(--qz-accent);\\n    background: var(--qz-accent);\\n  }\\n.qz .qz__option[aria-pressed='true'] .qz__option-coche svg {\\n      opacity: 1;\\n    }\\n.qz .qz__pied {\\n    display: -webkit-box;\\n    display: -ms-flexbox;\\n    display: flex;\\n    -webkit-box-pack: end;\\n        -ms-flex-pack: end;\\n            justify-content: flex-end;\\n    -webkit-box-align: center;\\n        -ms-flex-align: center;\\n            align-items: center;\\n    -ms-flex-wrap: wrap;\\n        flex-wrap: wrap;\\n    gap: 8px;\\n    margin-top: 24px;\\n  }\\n.qz .qz__pied--double {\\n    -webkit-box-pack: justify;\\n        -ms-flex-pack: justify;\\n            justify-content: space-between;\\n  }\\n.qz .qz__pied--resultat {\\n    display: grid;\\n    grid-template-columns: 1fr;\\n    gap: 8px;\\n  }\\n.qz .qz__pied--resultat .qz__bouton {\\n      -webkit-box-pack: center;\\n          -ms-flex-pack: center;\\n              justify-content: center;\\n    }\\n@media (min-width: 768px) {\\n.qz .qz__pied--resultat {\\n      display: -webkit-box;\\n      display: -ms-flexbox;\\n      display: flex;\\n      -webkit-box-pack: end;\\n          -ms-flex-pack: end;\\n              justify-content: flex-end;\\n      -ms-flex-wrap: nowrap;\\n          flex-wrap: nowrap\\n  }\\n      .qz .qz__pied--resultat .qz__bouton {\\n        -webkit-box-pack: start;\\n            -ms-flex-pack: start;\\n                justify-content: flex-start;\\n      }\\n    }\\n.qz .qz__pied-droite {\\n    display: -webkit-box;\\n    display: -ms-flexbox;\\n    display: flex;\\n    -ms-flex-wrap: wrap;\\n        flex-wrap: wrap;\\n    gap: 8px;\\n    -webkit-box-pack: end;\\n        -ms-flex-pack: end;\\n            justify-content: flex-end;\\n    margin-left: auto;\\n  }\\n.qz .qz__bouton {\\n  display: -webkit-inline-box;\\n  display: -ms-inline-flexbox;\\n  display: inline-flex;\\n  -webkit-box-align: center;\\n      -ms-flex-align: center;\\n          align-items: center;\\n  border-radius: .125rem;\\n  padding-left: 0.5rem;\\n  padding-right: 0.5rem;\\n  padding-top: 0.5rem;\\n  padding-bottom: 0.5rem;\\n  text-align: center;\\n  font-family: NationalWeb, Helvetica Neue, sans-serif;\\n  font-size: .7rem;\\n  font-weight: 600;\\n  text-transform: uppercase;\\n  letter-spacing: 0.052em;\\n    gap: 8px;\\n    line-height: 1;\\n    border: 1px solid currentColor;\\n    background: transparent;\\n    -webkit-transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;\\n    -o-transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;\\n    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease\\n}\\n@media (min-width: 1320px) {\\n.qz .qz__bouton {\\n      font-size: 14px\\n  }\\n    }\\n.qz .qz__bouton--plein {\\n    color: var(--qz-accent);\\n    border-color: var(--qz-accent);\\n  }\\n@media (hover: hover) {\\n      .qz .qz__bouton--plein:hover {\\n        background: var(--qz-accent);\\n        color: var(--qz-blanc);\\n      }\\n    }\\n.qz .qz__bouton--discret {\\n    color: var(--qz-gris);\\n    border-color: var(--qz-gris);\\n  }\\n@media (hover: hover) {\\n      .qz .qz__bouton--discret:hover {\\n        background: var(--qz-blanc);\\n      }\\n    }\\n.qz .qz__bouton-icone {\\n    display: -webkit-inline-box;\\n    display: -ms-inline-flexbox;\\n    display: inline-flex;\\n    width: 14px;\\n    height: 14px;\\n  }\\n.qz .qz__bouton-icone svg {\\n      width: 100%;\\n      height: 100%;\\n    }\\n.qz .qz__candidats {\\n    display: -webkit-box;\\n    display: -ms-flexbox;\\n    display: flex;\\n    -ms-flex-wrap: wrap;\\n        flex-wrap: wrap;\\n    gap: 12px 20px;\\n    margin-bottom: 8px;\\n  }\\n.qz .qz__candidat {\\n    display: -webkit-box;\\n    display: -ms-flexbox;\\n    display: flex;\\n    -webkit-box-align: center;\\n        -ms-flex-align: center;\\n            align-items: center;\\n    gap: 8px;\\n    font-size: .7rem;\\n  }\\n.qz .qz__portrait {\\n    display: -webkit-inline-box;\\n    display: -ms-inline-flexbox;\\n    display: inline-flex;\\n    -webkit-box-align: center;\\n        -ms-flex-align: center;\\n            align-items: center;\\n    -webkit-box-pack: center;\\n        -ms-flex-pack: center;\\n            justify-content: center;\\n    -webkit-box-flex: 0;\\n        -ms-flex: none;\\n            flex: none;\\n    border-radius: 50%;\\n    overflow: hidden;\\n    background: var(--qz-trait);\\n    color: var(--qz-encre);\\n  }\\n.qz .qz__portrait img {\\n      width: 100%;\\n      height: 100%;\\n      -o-object-fit: cover;\\n         object-fit: cover;\\n    }\\n.qz .qz__portrait--petit {\\n    width: 32px;\\n    height: 32px;\\n  }\\n.qz .qz__portrait--petit .qz__initiales {\\n      font-size: 12px;\\n    }\\n.qz .qz__portrait--grand {\\n    width: 88px;\\n    height: 88px;\\n  }\\n.qz .qz__portrait--grand .qz__initiales {\\n      font-size: 30px;\\n    }\\n@media (min-width: 768px) {\\n.qz .qz__portrait--grand {\\n      width: 120px;\\n      height: 120px\\n  }\\n      .qz .qz__portrait--grand .qz__initiales {\\n        font-size: 40px;\\n      }\\n    }\\n.qz .qz__initiales {\\n  font-family: \\\"Sanomat Web\\\", \\\"Publico Text Web\\\", serif;\\n    letter-spacing: 1px\\n}\\n.qz .qz__gagnants {\\n    display: grid;\\n    gap: 12px;\\n  }\\n.qz .qz__gagnant {\\n    display: -webkit-box;\\n    display: -ms-flexbox;\\n    display: flex;\\n    -webkit-box-orient: vertical;\\n    -webkit-box-direction: normal;\\n        -ms-flex-direction: column;\\n            flex-direction: column;\\n    -webkit-box-align: start;\\n        -ms-flex-align: start;\\n            align-items: flex-start;\\n    gap: 14px;\\n    padding: 20px;\\n    background: var(--qz-blanc);\\n    border: 1px solid var(--qz-trait);\\n    border-radius: .25rem;\\n  }\\n@media (min-width: 450px) {\\n.qz .qz__gagnant {\\n      -webkit-box-orient: horizontal;\\n      -webkit-box-direction: normal;\\n          -ms-flex-direction: row;\\n              flex-direction: row;\\n      -webkit-box-align: center;\\n          -ms-flex-align: center;\\n              align-items: center;\\n      gap: 16px\\n  }\\n    }\\n@media (min-width: 768px) {\\n.qz .qz__gagnant {\\n      gap: 24px;\\n      padding: 24px 28px\\n  }\\n    }\\n.qz .qz__gagnant-texte {\\n    min-width: 0;\\n  }\\n.qz .qz__gagnant-nom {\\n  font-family: \\\"Sanomat Web\\\", \\\"Publico Text Web\\\", serif;\\n    font-size: 26px;\\n    line-height: 1.1;\\n    overflow-wrap: anywhere\\n}\\n.qz .qz__gagnant-nom a {\\n      border-bottom: 1px solid currentColor;\\n    }\\n@media (min-width: 768px) {\\n.qz .qz__gagnant-nom {\\n      font-size: 36px\\n  }\\n    }\\n.qz .qz__gagnant-score {\\n  font-family: NationalWeb, Helvetica Neue, sans-serif;\\n  font-size: .7rem;\\n  font-weight: 600;\\n  text-transform: uppercase;\\n  letter-spacing: 0.10em;\\n    color: var(--qz-accent);\\n    margin-top: 8px\\n}\\n.qz .qz__gagnant-ligne {\\n  font-family: \\\"Publico Text Web\\\", Georgia, serif;\\n    font-size: 15px;\\n    line-height: 1.4;\\n    color: var(--qz-gris);\\n    margin-top: 8px\\n}\\n.qz .qz__classement {\\n    display: grid;\\n    gap: 14px;\\n  }\\n.qz .qz__rang-ligne {\\n    display: -webkit-box;\\n    display: -ms-flexbox;\\n    display: flex;\\n    -webkit-box-align: center;\\n        -ms-flex-align: center;\\n            align-items: center;\\n    gap: 10px;\\n    font-size: 15px;\\n    line-height: 20px;\\n    margin-bottom: 6px;\\n  }\\n.qz .qz__rang-nom {\\n    -webkit-box-flex: 1;\\n        -ms-flex: 1 1 auto;\\n            flex: 1 1 auto;\\n  }\\n.qz .qz__rang-score {\\n    font-weight: 600;\\n    min-width: 44px;\\n    text-align: right;\\n  }\\n.qz .qz__rang-barre {\\n    height: 4px;\\n    background: var(--qz-trait);\\n    overflow: hidden;\\n    border-radius: .125rem;\\n  }\\n.qz .qz__rang-fill {\\n    display: block;\\n    height: 100%;\\n    background: var(--qz-gris);\\n    -webkit-transition: width 0.5s ease;\\n    -o-transition: width 0.5s ease;\\n    transition: width 0.5s ease;\\n  }\\n.qz .qz__rang[data-meilleur='true'] .qz__rang-nom {\\n      font-weight: 600;\\n    }\\n.qz .qz__rang[data-meilleur='true'] .qz__rang-fill {\\n      background: var(--qz-accent);\\n    }\\n.qz .qz__partage-boutons {\\n    display: -webkit-box;\\n    display: -ms-flexbox;\\n    display: flex;\\n    -ms-flex-wrap: wrap;\\n        flex-wrap: wrap;\\n    gap: 8px;\\n  }\\n.qz .qz__detail {\\n    padding: 16px 0;\\n    border-top: 1px solid var(--qz-trait);\\n  }\\n.qz .qz__detail:last-of-type {\\n      border-bottom: 1px solid var(--qz-trait);\\n    }\\n.qz .qz__detail-question {\\n  font-family: \\\"Publico Text Web\\\", Georgia, serif;\\n    font-size: 16px;\\n    line-height: 1.4;\\n    margin-bottom: 10px\\n}\\n.qz .qz__detail-reponse, .qz .qz__detail-ligne, .qz .qz__detail-passee {\\n  font-size: .7rem;\\n    line-height: 1.4;\\n    margin-top: 4px\\n}\\n.qz .qz__detail-passee {\\n    color: var(--qz-gris-clair);\\n    font-style: italic;\\n  }\\n.qz .qz__detail-etiquette {\\n    font-weight: 600;\\n  }\\n.qz .qz__detail-etiquette::after {\\n      content: ' :';\\n    }\\n.qz .qz__sr {\\n    position: absolute;\\n    width: 1px;\\n    height: 1px;\\n    overflow: hidden;\\n    clip: rect(0 0 0 0);\\n    white-space: nowrap;\\n  }\";\n    document.head.appendChild(el);\n  }\n})();\n(function () {\n'use strict';\n\/**\n * Quiz \u00ab De quel candidat \u00eates-vous le plus proche ? \u00bb \u2014 en cours d'article.\n *\n * Le lecteur r\u00e9pond \u00e0 une s\u00e9rie de questions \u00e0 choix ferm\u00e9 ; chaque option\n * porte, pour chaque candidat, un score d'affinit\u00e9 (2 = c'est sa position,\n * 1 = compatible, 0 = oppos\u00e9). Le score d'un candidat est la somme pond\u00e9r\u00e9e\n * de ces affinit\u00e9s sur les questions auxquelles le lecteur a r\u00e9pondu, en\n * pourcentage du maximum atteignable. Une question pass\u00e9e ne compte pas.\n *\n * Successeur du \u00ab papomat \u00bb du conclave de 2025 (React + Bootstrap dans une\n * iframe sous \/iframes\/papomat\/). Ici tout vient du JSON imprim\u00e9 dans le bloc\n * par scripts\/build-quiz-block.cjs, comme pour le jeu \u00ab Qui est-ce ? \u00bb\n * (guessWho.js) : le module est g\u00e9n\u00e9rique, le nombre de questions, d'options\n * et de candidats n'est \u00e9crit nulle part.\n *\n * Le lien partag\u00e9 encode les r\u00e9ponses dans son fragment (#quiz-<set>=abc-ab) :\n * il rouvre directement le r\u00e9sultat, et rien ne part au serveur. L'URL de la\n * page, elle, n'est pas modifi\u00e9e : recharger repart de z\u00e9ro.\n *\n * Contraintes du site : rien en position fixe (softwall Evolok et bandeau\n * cookie sont ancr\u00e9s en bas) ; les photos sont des assets du th\u00e8me.\n *\/\n\nconst DEV = false\n\n\/* \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 utilitaires \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 *\/\n\nconst el = (tag, cls, text) => {\n  const n = document.createElement(tag)\n  if (cls) n.className = cls\n  if (text != null) n.textContent = text\n  return n\n}\n\nconst svg = (markup, cls) => {\n  const wrap = el('span', cls)\n  wrap.innerHTML = markup\n  wrap.setAttribute('aria-hidden', 'true')\n  return wrap\n}\n\n\/** \u00ab {name} \u00bb \u2192 valeur ; les cl\u00e9s absentes restent telles quelles. *\/\nconst gabarit = (s, vars) => String(s || '').replace(\/\\{(\\w+)\\}\/g, (m, k) => (vars[k] != null ? vars[k] : m))\n\nconst initiales = (nom) =>\n  String(nom || '')\n    .split(\/[\\s-]+\/)\n    .filter(Boolean)\n    .slice(0, 2)\n    .map((m) => m[0].toUpperCase())\n    .join('')\n\nconst ICONES = {\n  fleche: '<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 24 24\"><g><path fill=\"none\" d=\"M4 12h15\" stroke=\"currentColor\" stroke-width=\"2.4\" stroke-linecap=\"round\"\/><path fill=\"none\" d=\"M13 6l6 6-6 6\" stroke=\"currentColor\" stroke-width=\"2.4\" stroke-linecap=\"round\" stroke-linejoin=\"round\"\/><\/g><\/svg>',\n  retour: '<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 24 24\"><g><path fill=\"none\" d=\"M20 12H5\" stroke=\"currentColor\" stroke-width=\"2.4\" stroke-linecap=\"round\"\/><path fill=\"none\" d=\"M11 6l-6 6 6 6\" stroke=\"currentColor\" stroke-width=\"2.4\" stroke-linecap=\"round\" stroke-linejoin=\"round\"\/><\/g><\/svg>',\n  check: '<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 32 32\"><g><path fill=\"none\" d=\"M5 18L12 25L28 9\" stroke=\"currentColor\" stroke-width=\"2.6\" stroke-linecap=\"round\" stroke-linejoin=\"round\"\/><\/g><\/svg>',\n  lien: '<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 24 24\"><g><path fill=\"none\" d=\"M10 14a4 4 0 0 0 5.7 0l3-3a4 4 0 0 0-5.7-5.7l-1.5 1.5\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\"\/><path fill=\"none\" d=\"M14 10a4 4 0 0 0-5.7 0l-3 3a4 4 0 0 0 5.7 5.7l1.5-1.5\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\"\/><\/g><\/svg>',\n}\n\n\/* \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 le questionnaire \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 *\/\n\nclass Quiz {\n  constructor(root, data) {\n    this.root = root\n    this.data = data\n    this.t = Object.assign(\n      {\n        oeil: 'Le test',\n        introTitre: 'De quel candidat \u00eates-vous le plus proche ?',\n        introSous: 'R\u00e9pondez aux questions et d\u00e9couvrez le profil dont vous \u00eates le plus proche.',\n        commencer: 'Commencer',\n        question: 'Question',\n        sur: 'sur',\n        precedent: 'Pr\u00e9c\u00e9dent',\n        suivant: 'Suivant',\n        passer: 'Passer la question',\n        pourquoi: 'Le contexte',\n        lireArticle: 'Lire l\u2019article',\n        voirResultat: 'Voir le r\u00e9sultat',\n        resultatTitre: 'Vous \u00eates le plus proche de',\n        resultatEgalite: 'Vous \u00eates \u00e0 \u00e9gale distance de',\n        resultatVide: 'Vous n\u2019avez r\u00e9pondu \u00e0 aucune question.',\n        affinite: 'd\u2019affinit\u00e9',\n        meilleur: 'Le plus proche',\n        classement: 'Le classement complet',\n        detail: 'Voir le d\u00e9tail',\n        modifier: 'Modifier mes r\u00e9ponses',\n        refaire: 'Refaire le test',\n        partager: 'Partager',\n        copier: 'Copier le lien',\n        copie: 'Lien copi\u00e9',\n        partageTexte: 'Je suis le plus proche de {name} ({score} %). Et vous ? {url}',\n        detailTitre: 'Vos r\u00e9ponses, question par question',\n        votreReponse: 'Votre r\u00e9ponse',\n        sansReponse: 'Question pass\u00e9e',\n        memeAvis: 'M\u00eame position',\n        compatible: 'Position compatible',\n        personne: 'aucun candidat',\n        retourResultat: 'Retour au r\u00e9sultat',\n        draft: 'Donn\u00e9es provisoires',\n        srQuestion: 'Question {n} sur {total}.',\n        srResultat: 'R\u00e9sultat : vous \u00eates le plus proche de {name}.',\n      },\n      data.labels || {}\n    )\n\n    this.candidats = data.candidates || []\n    this.questions = (data.questions || []).filter((q) => q.options && q.options.length)\n    this.total = this.questions.length\n    this.max = 2 \/\/ score d'affinit\u00e9 maximal d'une option \u2014 voir l'en-t\u00eate\n    this.parties = 0\n\n    this.reponses = {} \/\/ id de question \u2192 cl\u00e9 d'option\n    this.i = 0\n\n    this.build()\n\n    \/\/ Un lien partag\u00e9 rouvre le r\u00e9sultat ; sinon l'accueil.\n    \/\/ Premier \u00e9cran : pas de focus pos\u00e9 par script. Avant toute interaction,\n    \/\/ le navigateur le traite comme un focus clavier et dessine l'anneau\n    \/\/ autour de \u00ab Commencer \u00bb. Les \u00e9crans suivants, eux, re\u00e7oivent le focus\n    \/\/ pour que le clavier et les lecteurs d'\u00e9cran suivent.\n    this.premierEcran = true\n    const partagees = this.litFragment()\n    if (partagees) {\n      this.reponses = partagees\n      this.resultat(true)\n    } else {\n      this.intro()\n    }\n    this.premierEcran = false\n\n    this.trace('quiz_charge')\n    this.guetteEcran()\n  }\n\n  \/* \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 mesure d'audience \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 *\/\n\n  \/** Pousse un \u00e9v\u00e8nement dans le dataLayer de Google Tag Manager, d\u00e9j\u00e0 charg\u00e9\n   *  sur toutes les pages du site. Muet l\u00e0 o\u00f9 le dataLayer n'existe pas. *\/\n  trace(nom, extra) {\n    if (!window.dataLayer || typeof window.dataLayer.push !== 'function') return\n    const o = { event: nom, jeu: this.data.set || 'quiz' }\n    if (extra) Object.keys(extra).forEach((k) => { o[k] = extra[k] })\n    window.dataLayer.push(o)\n    if (DEV) console.log('[quiz] dataLayer', o)\n  }\n\n  guetteEcran() {\n    if (!('IntersectionObserver' in window)) return\n    const obs = new IntersectionObserver(\n      (entrees) => {\n        entrees.forEach((e) => {\n          if (!e.isIntersecting) return\n          obs.disconnect()\n          this.trace('quiz_visible')\n        })\n      },\n      { threshold: 0.3 }\n    )\n    obs.observe(this.root)\n  }\n\n  \/* \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 scores \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 *\/\n\n  \/** Les questions auxquelles le lecteur a r\u00e9pondu, avec l'option choisie. *\/\n  repondues() {\n    return this.questions\n      .map((q) => ({ q, o: (q.options || []).filter((o) => o.key === this.reponses[q.id])[0] }))\n      .filter((x) => x.o)\n  }\n\n  \/** [{ c, score (0\u2013100), points, max }] tri\u00e9 du plus proche au plus loin.\n   *  Le pourcentage se calcule sur les seules questions r\u00e9pondues : passer\n   *  une question ne p\u00e9nalise personne. *\/\n  classement() {\n    const rep = this.repondues()\n    const poids = (q) => (q.weight != null ? Number(q.weight) : 1)\n    const maxTotal = rep.reduce((s, x) => s + poids(x.q) * this.max, 0)\n    return this.candidats\n      .map((c) => {\n        const points = rep.reduce((s, x) => {\n          const v = x.o.scores && x.o.scores[c.slug]\n          return s + poids(x.q) * (v == null ? 0 : Number(v))\n        }, 0)\n        return { c, points, max: maxTotal, score: maxTotal ? Math.round((points \/ maxTotal) * 100) : 0 }\n      })\n      .sort((a, b) => b.score - a.score || a.c.name.localeCompare(b.c.name))\n  }\n\n  \/* \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 fragment d'URL \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 *\/\n\n  cleFragment() {\n    return `quiz-${this.data.set || 'quiz'}`\n  }\n\n  \/** \u00ab abc-ab \u00bb : une lettre par question, dans l'ordre ; \u00ab - \u00bb = pass\u00e9e. *\/\n  encode() {\n    return this.questions.map((q) => this.reponses[q.id] || '-').join('')\n  }\n\n  litFragment() {\n    const h = window.location.hash.replace(\/^#\/, '')\n    if (!h) return null\n    const prefixe = this.cleFragment() + '='\n    const morceau = h.split('&').filter((p) => p.indexOf(prefixe) === 0)[0]\n    if (!morceau) return null\n    const code = morceau.slice(prefixe.length)\n    if (code.length !== this.total) return null\n    const rep = {}\n    let n = 0\n    this.questions.forEach((q, k) => {\n      const key = code[k]\n      if (key === '-') return\n      if (!(q.options || []).some((o) => o.key === key)) return\n      rep[q.id] = key\n      n++\n    })\n    return n ? rep : null\n  }\n\n  \/** Retire notre fragment de l'URL de la page (ouverte depuis un lien\n   *  partag\u00e9) quand le lecteur repart de z\u00e9ro : un rechargement ne doit pas\n   *  le ramener au r\u00e9sultat de quelqu'un d'autre. Les autres fragments\n   *  \u00e9ventuels restent. *\/\n  effaceFragment() {\n    if (!window.history || !window.history.replaceState) return\n    const h = window.location.hash.replace(\/^#\/, '')\n    if (!h || h.indexOf(this.cleFragment() + '=') === -1) return\n    const autres = h.split('&').filter((p) => p && p.indexOf(this.cleFragment() + '=') !== 0)\n    try {\n      window.history.replaceState(null, '', `${window.location.pathname}${window.location.search}${autres.length ? '#' + autres.join('&') : ''}`)\n    } catch (e) {\n      if (DEV) console.warn('[quiz] fragment non effac\u00e9 :', e)\n    }\n  }\n\n  urlPartage() {\n    return `${window.location.origin}${window.location.pathname}${window.location.search}#${this.cleFragment()}=${this.encode()}`\n  }\n\n  \/* \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 images \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 *\/\n\n  \/** Portrait rond : photo du th\u00e8me si le candidat en a une, initiales sinon. *\/\n  portrait(c, cls) {\n    const wrap = el('span', `qz__portrait ${cls || ''}`)\n    if (c.photo && this.data.assets) {\n      const v = this.data.v ? `?v=${this.data.v}` : ''\n      const pic = el('picture')\n      const avif = el('source')\n      avif.type = 'image\/avif'\n      avif.srcset = `${this.data.assets}${c.slug}-370.avif${v}`\n      const img = el('img')\n      img.src = `${this.data.assets}${c.slug}-370.webp${v}`\n      img.alt = ''\n      img.width = 370\n      img.height = 370\n      img.decoding = 'async'\n      img.loading = 'lazy'\n      pic.append(avif, img)\n      wrap.append(pic)\n    } else {\n      wrap.append(el('span', 'qz__initiales', initiales(c.name)))\n    }\n    return wrap\n  }\n\n  \/* \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 construction \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 *\/\n\n  build() {\n    const r = this.root\n    r.textContent = ''\n\n    const tete = el('div', 'qz__tete')\n    tete.append(el('p', 'qz__oeil', this.t.oeil))\n    this.chip = el('p', 'qz__chip')\n    tete.append(this.chip)\n\n    this.barre = el('div', 'qz__barre')\n    this.barre.setAttribute('role', 'progressbar')\n    this.barre.setAttribute('aria-valuemin', '0')\n    this.barre.setAttribute('aria-valuemax', String(this.total))\n    this.barreFill = el('span', 'qz__barre-fill')\n    this.barre.append(this.barreFill)\n\n    this.ecran = el('div', 'qz__ecran')\n\n    this.sr = el('p', 'qz__sr')\n    this.sr.setAttribute('aria-live', 'polite')\n\n    r.append(tete, this.barre, this.ecran, this.sr)\n\n    \/\/ Visuel d'ouverture : photos\/cover-{800,1600}.{avif,webp} du set, pleine\n    \/\/ largeur du bloc, seulement sur l'\u00e9cran d'accueil.\n    if (this.data.cover && this.data.assets) {\n      const v = this.data.v ? `?v=${this.data.v}` : ''\n      const src = (taille, ext) => `${this.data.assets}cover-${taille}.${ext}${v}`\n      this.cover = el('div', 'qz__cover')\n      const pic = el('picture')\n      const avif = el('source')\n      avif.type = 'image\/avif'\n      avif.srcset = `${src(800, 'avif')} 800w, ${src(1600, 'avif')} 1600w`\n      avif.sizes = '(min-width: 768px) 720px, 100vw'\n      const img = el('img')\n      img.src = src(1600, 'webp')\n      img.srcset = `${src(800, 'webp')} 800w, ${src(1600, 'webp')} 1600w`\n      img.sizes = avif.sizes\n      img.alt = ''\n      img.width = 1600\n      img.height = 1200\n      img.decoding = 'async'\n      pic.append(avif, img)\n      this.cover.append(pic)\n      r.prepend(this.cover)\n    }\n\n    if (this.data.draft) {\n      const ruban = el('p', 'qz__draft', this.t.draft)\n      r.prepend(ruban)\n    }\n  }\n\n  progression(n) {\n    this.barre.setAttribute('aria-valuenow', String(n))\n    this.barreFill.style.width = `${this.total ? (n \/ this.total) * 100 : 0}%`\n  }\n\n  bouton(libelle, cls, action, icone) {\n    const b = el('button', `qz__bouton ${cls || ''}`)\n    b.type = 'button'\n    if (icone === 'retour') b.append(svg(ICONES.retour, 'qz__bouton-icone'))\n    b.append(el('span', null, libelle))\n    if (icone === 'fleche') b.append(svg(ICONES.fleche, 'qz__bouton-icone'))\n    if (icone === 'lien') b.prepend(svg(ICONES.lien, 'qz__bouton-icone'))\n    b.addEventListener('click', action)\n    return b\n  }\n\n  \/* \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 intro \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 *\/\n\n  intro() {\n    this.root.dataset.etat = 'intro'\n    if (this.cover) this.cover.hidden = false\n    this.chip.textContent = `${this.total} ${this.t.question.toLowerCase()}s`\n    this.progression(0)\n\n    const e = this.ecran\n    e.textContent = ''\n    e.append(el('p', 'qz__titre', this.t.introTitre), el('p', 'qz__sous', this.t.introSous))\n\n    \/\/ Sans visuel d'ouverture, les candidats en ligne : on sait d'embl\u00e9e\n    \/\/ entre qui on choisit. Avec la cover, ce sont eux qu'on voit d\u00e9j\u00e0.\n    if (!this.cover) {\n      const liste = el('ul', 'qz__candidats')\n      this.candidats.forEach((c) => {\n        const li = el('li', 'qz__candidat')\n        li.append(this.portrait(c, 'qz__portrait--petit'), el('span', 'qz__candidat-nom', c.name))\n        liste.append(li)\n      })\n      e.append(liste)\n    }\n\n    \/\/ Hors de l'article (attribut `lien` du shortcode) : \u00e0 gauche de\n    \/\/ \u00ab Commencer \u00bb, le lien vers l'article et ses entretiens.\n    const pied = el('div', this.data.lien ? 'qz__pied qz__pied--double' : 'qz__pied')\n    if (this.data.lien) pied.append(this.lienArticle(this.t.lireArticle, 'qz__bouton qz__bouton--discret'))\n    const b = this.bouton(this.t.commencer, 'qz__bouton--plein', () => this.demarre(), 'fleche')\n    pied.append(b)\n    e.append(pied)\n    if (!this.premierEcran) b.focus({ preventScroll: true })\n  }\n\n  \/** Un lien vers l'article d'origine, ouvert dans un autre onglet pour ne\n   *  pas perdre les r\u00e9ponses en cours. `no-underline` : la classe que le\n   *  th\u00e8me reconna\u00eet pour ne pas poser son soulignement rouge. *\/\n  lienArticle(libelle, cls) {\n    const a = el('a', `${cls} no-underline`, libelle)\n    a.href = this.data.lien\n    a.target = '_blank'\n    a.rel = 'noopener'\n    a.addEventListener('click', () => this.trace('quiz_article', { ecran: this.root.dataset.etat }))\n    return a\n  }\n\n  demarre() {\n    this.effaceFragment()\n    this.reponses = {}\n    this.i = 0\n    this.parties++\n    this.trace('quiz_demarre', { partie: this.parties, total: this.total })\n    this.question()\n  }\n\n  \/* \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 question \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 *\/\n\n  question() {\n    this.root.dataset.etat = 'question'\n    if (this.cover) this.cover.hidden = true\n    const q = this.questions[this.i]\n    const n = this.i + 1\n    this.chip.textContent = `${this.t.question} ${n} ${this.t.sur} ${this.total}`\n    this.progression(n - 1)\n    this.sr.textContent = gabarit(this.t.srQuestion, { n, total: this.total })\n\n    const e = this.ecran\n    e.textContent = ''\n    if (q.theme) e.append(el('p', 'qz__theme', q.theme))\n    e.append(el('p', 'qz__question', q.text))\n\n    if (this.data.lien) {\n      \/\/ Page \u00e0 part : le libell\u00e9 renvoie \u00e0 l'article, o\u00f9 la question et les\n      \/\/ r\u00e9ponses des candidats sont lisibles en entier.\n      const p = el('p', 'qz__info')\n      p.append(this.lienArticle(this.t.pourquoi, 'qz__info-titre'))\n      e.append(p)\n    } else if (q.info) {\n      const det = el('details', 'qz__info')\n      det.append(el('summary', 'qz__info-titre', this.t.pourquoi), el('p', 'qz__info-texte', q.info))\n      e.append(det)\n    }\n\n    const choix = this.reponses[q.id]\n    const opts = el('div', 'qz__options')\n    opts.setAttribute('role', 'group')\n    q.options.forEach((o) => {\n      const b = el('button', 'qz__option')\n      b.type = 'button'\n      b.dataset.key = o.key\n      if (choix === o.key) b.setAttribute('aria-pressed', 'true')\n      b.append(el('span', 'qz__option-coche', null), el('span', 'qz__option-texte', o.text))\n      b.querySelector('.qz__option-coche').append(svg(ICONES.check))\n      b.addEventListener('click', () => this.repond(q, o, b))\n      opts.append(b)\n    })\n    e.append(opts)\n\n    const pied = el('div', 'qz__pied qz__pied--double')\n    pied.append(this.bouton(this.t.precedent, 'qz__bouton--discret', () => this.precedente(), 'retour'))\n    const droite = el('div', 'qz__pied-droite')\n    \/\/ Passer : la question ne compte pas. Si une r\u00e9ponse existe d\u00e9j\u00e0 (retour\n    \/\/ en arri\u00e8re), le bouton de droite encha\u00eene simplement.\n    const dernier = this.i === this.total - 1\n    if (choix) {\n      droite.append(this.bouton(dernier ? this.t.voirResultat : this.t.suivant, 'qz__bouton--plein', () => this.suivante(), 'fleche'))\n    } else {\n      droite.append(this.bouton(this.t.passer, 'qz__bouton--discret', () => this.passe(q)))\n    }\n    pied.append(droite)\n    e.append(pied)\n\n    const premiere = opts.querySelector('[aria-pressed=\"true\"]') || opts.querySelector('.qz__option')\n    if (premiere) premiere.focus({ preventScroll: true })\n  }\n\n  repond(q, o, bouton) {\n    if (this.verrou) return\n    this.verrou = true\n    this.reponses[q.id] = o.key\n    Array.prototype.forEach.call(this.ecran.querySelectorAll('.qz__option'), (b) => {\n      b.setAttribute('aria-pressed', b === bouton ? 'true' : 'false')\n    })\n    this.trace('quiz_reponse', { question: q.id, choix: o.key, n: this.i + 1 })\n    \/\/ On laisse voir la coche avant d'encha\u00eener.\n    window.setTimeout(() => {\n      this.verrou = false\n      this.suivante()\n    }, 260)\n  }\n\n  passe(q) {\n    delete this.reponses[q.id]\n    this.trace('quiz_reponse', { question: q.id, choix: null, n: this.i + 1 })\n    this.suivante()\n  }\n\n  precedente() {\n    if (this.i > 0) {\n      this.i--\n      this.question()\n    } else {\n      this.intro()\n    }\n  }\n\n  suivante() {\n    if (this.i < this.total - 1) {\n      this.i++\n      this.question()\n    } else {\n      this.resultat(false)\n    }\n  }\n\n  \/* \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 r\u00e9sultat \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 *\/\n\n  resultat(depuisLien) {\n    this.root.dataset.etat = 'resultat'\n    if (this.cover) this.cover.hidden = true\n    this.chip.textContent = this.t.meilleur\n    this.progression(this.total)\n\n    const rang = this.classement()\n    const e = this.ecran\n    e.textContent = ''\n\n    if (!this.repondues().length) {\n      e.append(el('p', 'qz__titre', this.t.resultatVide))\n      const pied = el('div', 'qz__pied')\n      pied.append(this.bouton(this.t.refaire, 'qz__bouton--plein', () => this.demarre(), 'fleche'))\n      e.append(pied)\n      return\n    }\n\n    const meilleur = rang[0]\n    const exaequo = rang.filter((r) => r.score === meilleur.score)\n    if (!depuisLien) {\n      this.trace('quiz_fin', { meilleur: meilleur.c.slug, score: meilleur.score, repondues: this.repondues().length, total: this.total })\n    }\n    this.sr.textContent = gabarit(this.t.srResultat, { name: exaequo.map((r) => r.c.name).join(', ') })\n\n    \/\/ La carte du gagnant (ou des ex \u00e6quo, rare mais possible)\n    e.append(el('p', 'qz__sous qz__sous--resultat', exaequo.length > 1 ? this.t.resultatEgalite : this.t.resultatTitre))\n    const gagnants = el('div', 'qz__gagnants')\n    exaequo.forEach((r) => {\n      const carte = el('div', 'qz__gagnant')\n      carte.append(this.portrait(r.c, 'qz__portrait--grand'))\n      const texte = el('div', 'qz__gagnant-texte')\n      const nom = el('p', 'qz__gagnant-nom')\n      if (r.c.url) {\n        const a = el('a', 'no-underline', r.c.name)\n        a.href = r.c.url\n        a.target = '_blank'\n        a.rel = 'noopener'\n        nom.append(a)\n      } else {\n        nom.textContent = r.c.name\n      }\n      texte.append(nom)\n      texte.append(el('p', 'qz__gagnant-score', `${r.score} % ${this.t.affinite}`))\n      if (r.c.short) texte.append(el('p', 'qz__gagnant-ligne', r.c.short))\n      carte.append(texte)\n      gagnants.append(carte)\n    })\n    e.append(gagnants)\n\n    \/\/ Le classement complet, en barres\n    e.append(el('p', 'qz__section', this.t.classement))\n    const liste = el('ol', 'qz__classement')\n    rang.forEach((r) => {\n      const li = el('li', 'qz__rang')\n      if (r.score === meilleur.score) li.dataset.meilleur = 'true'\n      const ligne = el('div', 'qz__rang-ligne')\n      ligne.append(this.portrait(r.c, 'qz__portrait--petit'), el('span', 'qz__rang-nom', r.c.name), el('span', 'qz__rang-score', `${r.score} %`))\n      const barre = el('div', 'qz__rang-barre')\n      const fill = el('span', 'qz__rang-fill')\n      fill.style.width = `${r.score}%`\n      barre.append(fill)\n      li.append(ligne, barre)\n      liste.append(li)\n    })\n    e.append(liste)\n\n    \/\/ Partage\n    const partage = el('div', 'qz__partage')\n    partage.append(el('p', 'qz__section', this.t.partager))\n    const boutons = el('div', 'qz__partage-boutons')\n    const texte = gabarit(this.t.partageTexte, { name: meilleur.c.name, score: meilleur.score, url: this.urlPartage() })\n    const copier = this.bouton(this.t.copier, 'qz__bouton--discret', () => {\n      const fini = () => {\n        copier.querySelector('span:last-child').textContent = this.t.copie\n        window.setTimeout(() => { copier.querySelector('span:last-child').textContent = this.t.copier }, 1800)\n      }\n      this.trace('quiz_partage', { canal: 'lien' })\n      if (navigator.clipboard && navigator.clipboard.writeText) navigator.clipboard.writeText(this.urlPartage()).then(fini, fini)\n      else fini()\n    }, 'lien')\n    boutons.append(copier)\n    const reseaux = [\n      ['X', `https:\/\/x.com\/intent\/tweet?text=${encodeURIComponent(texte)}`],\n      ['WhatsApp', `https:\/\/wa.me\/?text=${encodeURIComponent(texte)}`],\n    ]\n    reseaux.forEach(([nom, url]) => {\n      \/\/ `no-underline` : la classe que le th\u00e8me reconna\u00eet pour ne pas poser\n      \/\/ son soulignement rouge (.text-styled a:not(.no-underline)\u2026).\n      const a = el('a', 'qz__bouton qz__bouton--discret no-underline', nom)\n      a.href = url\n      a.target = '_blank'\n      a.rel = 'noopener noreferrer'\n      a.addEventListener('click', () => this.trace('quiz_partage', { canal: nom.toLowerCase() }))\n      boutons.append(a)\n    })\n    partage.append(boutons)\n    e.append(partage)\n\n    \/\/ Trois actions : une seule rang\u00e9e d\u00e8s que la colonne le permet, sinon\n    \/\/ empil\u00e9es sur toute la largeur \u2014 jamais deux sur une ligne et une sur\n    \/\/ l'autre (voir .qz__pied--resultat).\n    const pied = el('div', 'qz__pied qz__pied--resultat')\n    pied.append(\n      this.bouton(this.t.detail, 'qz__bouton--discret', () => this.detail()),\n      this.bouton(this.t.modifier, 'qz__bouton--discret', () => { this.i = 0; this.question() }),\n      this.bouton(this.t.refaire, 'qz__bouton--plein', () => this.demarre(), 'fleche')\n    )\n    e.append(pied)\n\n    if (DEV) console.log('[quiz] r\u00e9sultat \u2014', rang.map((r) => `${r.c.slug} ${r.score}%`).join(', '))\n  }\n\n  \/* \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 d\u00e9tail \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 *\/\n\n  detail() {\n    this.root.dataset.etat = 'detail'\n    if (this.cover) this.cover.hidden = true\n    this.chip.textContent = this.t.detailTitre\n    const e = this.ecran\n    e.textContent = ''\n    e.append(el('p', 'qz__titre', this.t.detailTitre))\n\n    const noms = (slugs) =>\n      slugs.length ? this.candidats.filter((c) => slugs.indexOf(c.slug) > -1).map((c) => c.name).join(', ') : this.t.personne\n\n    this.questions.forEach((q, k) => {\n      const bloc = el('div', 'qz__detail')\n      bloc.append(el('p', 'qz__theme', `${k + 1}. ${q.theme || ''}`), el('p', 'qz__detail-question', q.text))\n      const o = (q.options || []).filter((x) => x.key === this.reponses[q.id])[0]\n      if (!o) {\n        bloc.append(el('p', 'qz__detail-passee', this.t.sansReponse))\n      } else {\n        const rep = el('p', 'qz__detail-reponse')\n        rep.append(el('span', 'qz__detail-etiquette', this.t.votreReponse), document.createTextNode(' ' + o.text))\n        bloc.append(rep)\n        const s = o.scores || {}\n        const meme = Object.keys(s).filter((slug) => Number(s[slug]) === this.max)\n        const compat = Object.keys(s).filter((slug) => Number(s[slug]) === 1)\n        const l1 = el('p', 'qz__detail-ligne')\n        l1.append(el('span', 'qz__detail-etiquette', this.t.memeAvis), document.createTextNode(' ' + noms(meme)))\n        const l2 = el('p', 'qz__detail-ligne')\n        l2.append(el('span', 'qz__detail-etiquette', this.t.compatible), document.createTextNode(' ' + noms(compat)))\n        bloc.append(l1, l2)\n      }\n      e.append(bloc)\n    })\n\n    const pied = el('div', 'qz__pied')\n    const b = this.bouton(this.t.retourResultat, 'qz__bouton--plein', () => this.resultat(true), 'retour')\n    pied.append(b)\n    e.append(pied)\n    b.focus({ preventScroll: true })\n  }\n}\n\n\/* \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 point d'entr\u00e9e \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 *\/\n\nfunction init() {\n  const blocs = document.querySelectorAll('[data-quiz]')\n  if (!blocs.length) return\n\n  Array.prototype.forEach.call(blocs, (bloc) => {\n    const script = bloc.querySelector('script[type=\"application\/json\"]')\n    if (!script) {\n      console.warn('[quiz] donn\u00e9es absentes pour', bloc)\n      return\n    }\n    let data\n    try {\n      data = JSON.parse(script.textContent)\n    } catch (e) {\n      console.error('[quiz] JSON invalide :', e)\n      return\n    }\n    if (!data.questions || !data.questions.length || !data.candidates || !data.candidates.length) {\n      console.warn('[quiz] jeu de donn\u00e9es incomplet')\n      return\n    }\n    \/\/ URL de l'article d'origine, pos\u00e9e par le shortcode ([quiz \u2026 lien=\"\u2026\"])\n    \/\/ sur une page \u00e0 part ; absente dans l'article lui-m\u00eame.\n    data.lien = bloc.dataset.lien || ''\n    const racine = bloc.querySelector('[data-qz-mount]') || bloc\n    new Quiz(racine, data)\n    if (DEV) console.log('[quiz] initialis\u00e9 \u2014', data.questions.length, 'questions,', data.candidates.length, 'candidats')\n  })\n}\n\nif (document.readyState === 'loading') document.addEventListener('DOMContentLoaded', init); else init();\n})();\n<\/script>\n\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":2,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"templates\/template-quiz.php","meta":{"_acf_changed":false,"_trash_the_other_posts":false,"_yoast_wpseo_estimated-reading-time-minutes":1,"footnotes":""},"categories":[],"class_list":["post-363141","page","type-page","status-publish","hentry"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.1.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Primaire pr\u00e9sidentielle socialiste fran\u00e7aise de 2026 | Le Grand Continent<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/legrandcontinent.eu\/fr\/primaire-presidentielle-socialiste-francaise-de-2026\/\" \/>\n<meta property=\"og:locale\" content=\"fr_FR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Primaire pr\u00e9sidentielle socialiste fran\u00e7aise de 2026 | Le Grand Continent\" \/>\n<meta property=\"og:url\" content=\"https:\/\/legrandcontinent.eu\/fr\/primaire-presidentielle-socialiste-francaise-de-2026\/\" \/>\n<meta property=\"og:site_name\" content=\"Le Grand Continent\" \/>\n<meta property=\"article:modified_time\" content=\"2026-10-06T20:57:58+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Dur\u00e9e de lecture estim\u00e9e\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/legrandcontinent.eu\/fr\/primaire-presidentielle-socialiste-francaise-de-2026\/\",\"url\":\"https:\/\/legrandcontinent.eu\/fr\/primaire-presidentielle-socialiste-francaise-de-2026\/\",\"name\":\"Primaire pr\u00e9sidentielle socialiste fran\u00e7aise de 2026 | Le Grand Continent\",\"isPartOf\":{\"@id\":\"https:\/\/legrandcontinent.eu\/fr\/#website\"},\"datePublished\":\"2026-10-06T18:53:59+00:00\",\"dateModified\":\"2026-10-06T20:57:58+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/legrandcontinent.eu\/fr\/primaire-presidentielle-socialiste-francaise-de-2026\/#breadcrumb\"},\"inLanguage\":\"fr-FR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/legrandcontinent.eu\/fr\/primaire-presidentielle-socialiste-francaise-de-2026\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/legrandcontinent.eu\/fr\/primaire-presidentielle-socialiste-francaise-de-2026\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Accueil\",\"item\":\"https:\/\/legrandcontinent.eu\/fr\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Primaire pr\u00e9sidentielle socialiste fran\u00e7aise de 2026\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/legrandcontinent.eu\/fr\/#website\",\"url\":\"https:\/\/legrandcontinent.eu\/fr\/\",\"name\":\"Le Grand Continent\",\"description\":\"L&#039;\u00e9chelle pertinente\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/legrandcontinent.eu\/fr\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"fr-FR\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Primaire pr\u00e9sidentielle socialiste fran\u00e7aise de 2026 | Le Grand Continent","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/legrandcontinent.eu\/fr\/primaire-presidentielle-socialiste-francaise-de-2026\/","og_locale":"fr_FR","og_type":"article","og_title":"Primaire pr\u00e9sidentielle socialiste fran\u00e7aise de 2026 | Le Grand Continent","og_url":"https:\/\/legrandcontinent.eu\/fr\/primaire-presidentielle-socialiste-francaise-de-2026\/","og_site_name":"Le Grand Continent","article_modified_time":"2026-10-06T20:57:58+00:00","twitter_card":"summary_large_image","twitter_misc":{"Dur\u00e9e de lecture estim\u00e9e":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/legrandcontinent.eu\/fr\/primaire-presidentielle-socialiste-francaise-de-2026\/","url":"https:\/\/legrandcontinent.eu\/fr\/primaire-presidentielle-socialiste-francaise-de-2026\/","name":"Primaire pr\u00e9sidentielle socialiste fran\u00e7aise de 2026 | Le Grand Continent","isPartOf":{"@id":"https:\/\/legrandcontinent.eu\/fr\/#website"},"datePublished":"2026-10-06T18:53:59+00:00","dateModified":"2026-10-06T20:57:58+00:00","breadcrumb":{"@id":"https:\/\/legrandcontinent.eu\/fr\/primaire-presidentielle-socialiste-francaise-de-2026\/#breadcrumb"},"inLanguage":"fr-FR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/legrandcontinent.eu\/fr\/primaire-presidentielle-socialiste-francaise-de-2026\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/legrandcontinent.eu\/fr\/primaire-presidentielle-socialiste-francaise-de-2026\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Accueil","item":"https:\/\/legrandcontinent.eu\/fr\/"},{"@type":"ListItem","position":2,"name":"Primaire pr\u00e9sidentielle socialiste fran\u00e7aise de 2026"}]},{"@type":"WebSite","@id":"https:\/\/legrandcontinent.eu\/fr\/#website","url":"https:\/\/legrandcontinent.eu\/fr\/","name":"Le Grand Continent","description":"L&#039;\u00e9chelle pertinente","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/legrandcontinent.eu\/fr\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"fr-FR"}]}},"_links":{"self":[{"href":"https:\/\/legrandcontinent.eu\/fr\/wp-json\/wp\/v2\/pages\/363141","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/legrandcontinent.eu\/fr\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/legrandcontinent.eu\/fr\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/legrandcontinent.eu\/fr\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/legrandcontinent.eu\/fr\/wp-json\/wp\/v2\/comments?post=363141"}],"version-history":[{"count":2,"href":"https:\/\/legrandcontinent.eu\/fr\/wp-json\/wp\/v2\/pages\/363141\/revisions"}],"predecessor-version":[{"id":363143,"href":"https:\/\/legrandcontinent.eu\/fr\/wp-json\/wp\/v2\/pages\/363141\/revisions\/363143"}],"wp:attachment":[{"href":"https:\/\/legrandcontinent.eu\/fr\/wp-json\/wp\/v2\/media?parent=363141"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/legrandcontinent.eu\/fr\/wp-json\/wp\/v2\/categories?post=363141"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}