/* ==========================================================================
   QORSEC — Quiz anti-hameçonnage (/outils/quiz-hameconnage.html)
   Messagerie simulée, surlignage des indices, résultat. Propriétés logiques
   (inline-start / inline-end) : la zone fonctionne en LTR comme en RTL (arabe).
   Charte : bleu = action, cyan = données, orange = signalisation (jamais un bouton).
   ========================================================================== */

.qz { --qz-line: var(--line-200); --qz-soft: #f3f6fb; position: relative; min-width: 0; }
.qz [tabindex="-1"]:focus { outline: none; }
.qz [tabindex="-1"]:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; border-radius: 6px; }

/* ---------------------------------------------------------------- arabe */
.qz--ar { font-family: "Noto Sans Arabic", "Segoe UI", Tahoma, "Geeza Pro", "Arabic Typesetting", sans-serif; }
.qz--ar, .qz--ar * { letter-spacing: 0 !important; }
.qz--ar p, .qz--ar li, .qz--ar .qz-mail__body { line-height: 1.85; }
.qz--ar bdi, .qz--ar .qz-share__url { font-family: var(--font); }
/* une adresse ou un nombre latin reste d'un seul tenant dans une ligne arabe (coupé seulement s'il dépasse la ligne) */
.qz--ar bdi { display: inline-block; max-width: 100%; overflow-wrap: anywhere; text-indent: 0; }
/* bloc LTR + ponctuation voisine : insécable, mais l'adresse elle-même peut encore se couper si elle dépasse la ligne */
.qz-nobr { white-space: nowrap; }
.qz-nobr > bdi { white-space: normal; max-width: calc(100% - 1.6em); vertical-align: top; }
.qz--ar .qz-status bdi, .qz--ar .qz-tip bdi { font-family: var(--mono); }
.qz-from__addr bdi, .qz-to bdi { display: inline-block; max-width: 100%; vertical-align: top; }

/* ---------------------------------------------------------------- barre du haut */
.qz-top { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; margin-bottom: 14px; }
.qz-langs { display: inline-flex; padding: 3px; border-radius: var(--r-pill); background: var(--qz-soft); border: 1px solid var(--qz-line); }
.qz-lang {
  min-height: 36px; min-width: 52px; padding: 0 14px; border: 0; border-radius: var(--r-pill); background: transparent;
  font: inherit; font-size: .88rem; font-weight: 700; color: var(--ink-700); cursor: pointer; transition: background var(--t-fast), color var(--t-fast);
}
.qz-lang[lang="ar"] { font-family: "Noto Sans Arabic", "Segoe UI", Tahoma, sans-serif; font-size: .95rem; }
.qz-lang:hover { color: var(--blue-600); }
.qz-lang[aria-pressed="true"] { background: var(--navy-800); color: #fff; box-shadow: var(--sh-1); }
.qz-lang:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

.qz-prog { flex: 1 1 260px; min-width: 0; max-width: 420px; }
.qz-prog__txt { display: flex; justify-content: space-between; gap: 12px; font-size: .86rem; color: var(--fg-muted); margin-bottom: 6px; }
.qz-prog__txt strong { color: var(--fg); font-weight: 800; }
.qz-prog__bar { height: 6px; border-radius: 99px; background: var(--line-100); overflow: hidden; }
.qz-prog__bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--cyan-500), var(--blue-600)); transition: width .4s var(--ease); }
.qz[dir="rtl"] .qz-prog__bar span { background: linear-gradient(270deg, var(--cyan-500), var(--blue-600)); }

.qz-banner { display: flex; gap: 10px; align-items: flex-start; padding: 10px 14px; border-radius: var(--r-md); background: rgba(14, 165, 233, .07); border: 1px solid rgba(3, 105, 161, .2); font-size: .86rem; color: var(--ink-700); margin-bottom: 18px; }
.qz-banner svg { width: 18px; height: 18px; flex: none; color: var(--cyan-700); margin-top: 2px; }
.qz-banner p { margin: 0; }
.qz-banner strong { color: var(--ink-900); }

/* ---------------------------------------------------------------- accueil du quiz */
.qz-intro { text-align: center; max-width: 620px; margin: 8px auto 6px; padding: 8px 0 4px; }
.qz-intro__icon { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 18px; display: grid; place-items: center; background: linear-gradient(150deg, var(--navy-700), var(--navy-900)); color: var(--cyan-300); box-shadow: var(--sh-glow); }
.qz-intro__icon svg { width: 30px; height: 30px; }
.qz-intro__t { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.9rem); margin: 0 0 6px; letter-spacing: -.02em; }
.qz-intro__meta { font-size: .86rem; font-weight: 700; color: var(--data); margin: 0 0 14px; }
.qz-intro p { color: var(--ink-700); }
.qz-intro__ctx { padding: 10px 14px; border-radius: var(--r-md); background: var(--paper-50); border: 1px solid var(--qz-line); font-size: .93rem; }
.qz-intro__tip { display: flex; gap: 10px; align-items: flex-start; text-align: start; font-size: .9rem; color: var(--fg-muted) !important; max-width: 540px; margin-inline: auto; }
.qz-intro__tip svg { width: 18px; height: 18px; flex: none; color: var(--cyan-700); margin-top: 3px; }
.qz-intro__go { margin: 22px 0 8px; }
.qz-intro__go .btn svg, .qz-fb__next .btn svg, .qz-result__actions .btn svg, .qz-share .btn svg { width: 18px; height: 18px; }
.qz[dir="rtl"] .qz-intro__go .btn svg, .qz[dir="rtl"] .qz-fb__next .btn svg { transform: scaleX(-1); }
.qz-best { font-size: .88rem; color: var(--fg-muted); margin: 8px 0 0; }
.qz-textbtn { border: 0; background: none; padding: 4px 6px; margin-inline-start: 4px; font: inherit; font-weight: 700; color: var(--link); text-decoration: underline; cursor: pointer; min-height: 32px; }
.qz-textbtn:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }

/* ---------------------------------------------------------------- contexte */
.qz-ctx { display: flex; gap: 10px 14px; align-items: baseline; flex-wrap: wrap; padding: 10px 14px; margin-bottom: 12px; border-radius: var(--r-md); background: var(--paper-50); border: 1px solid var(--qz-line); border-inline-start: 3px solid var(--cyan-500); }
.qz-ctx__lab { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--data); }
.qz-ctx__lab svg { width: 15px; height: 15px; }
.qz-ctx p { margin: 0; flex: 1 1 260px; font-size: .93rem; color: var(--ink-700); }

/* ---------------------------------------------------------------- messagerie simulée */
.qz-mail { border: 1px solid var(--border-strong); border-radius: var(--r-lg); background: var(--white); box-shadow: var(--sh-2); overflow: hidden; }
.qz-mail__bar { display: flex; align-items: center; gap: 14px; height: 36px; padding: 0 14px; background: var(--qz-soft); border-bottom: 1px solid var(--qz-line); font-size: .78rem; font-weight: 700; color: var(--ink-500); }
.qz-dots { display: inline-flex; gap: 6px; }
.qz-dots i { width: 10px; height: 10px; border-radius: 50%; background: #cfd7e6; }
.qz-mail__app { display: inline-flex; align-items: center; gap: 6px; }
.qz-mail__app svg { width: 15px; height: 15px; color: var(--ink-400); }

.qz-mail__head { padding: 18px 24px 14px; border-bottom: 1px solid var(--line-100); }
.qz-mail__subject { font-size: clamp(1.08rem, 1rem + .4vw, 1.3rem); font-weight: 800; line-height: 1.35; margin: 0 0 14px; letter-spacing: -.01em; overflow-wrap: anywhere; }
.qz-from { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 4px 12px; align-items: start; }
.qz-avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(150deg, var(--navy-600), var(--navy-800)); color: #fff; font-size: .82rem; font-weight: 800; letter-spacing: .02em; }
.qz-from__who { min-width: 0; font-size: .95rem; line-height: 1.45; }
.qz-hlab { color: var(--fg-subtle); font-size: .84rem; }
.qz-from__name { font-weight: 800; color: var(--ink-900); }
.qz-from__addr { color: var(--ink-500); overflow-wrap: anywhere; }
.qz-to { font-size: .86rem; color: var(--ink-500); overflow-wrap: anywhere; }
.qz-date { font-size: .82rem; color: var(--fg-subtle); white-space: nowrap; padding-top: 2px; }

.qz-atts { padding: 12px 24px 0; }
.qz-atts ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.qz-att { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 7px 12px; border-radius: 10px; border: 1px solid var(--qz-line); background: var(--paper-50); font-size: .86rem; }
.qz-att svg { width: 16px; height: 16px; flex: none; color: var(--ink-400); }
.qz-att__name { font-weight: 700; color: var(--ink-900); overflow-wrap: anywhere; min-width: 0; }
.qz-att__size { color: var(--fg-subtle); white-space: nowrap; }

.qz-mail__body { padding: 6px 24px 18px; font-size: 1rem; color: var(--ink-900); line-height: 1.65; overflow-wrap: anywhere; }
.qz-mail__body p { margin: .75em 0; }
.qz-quote { margin: 1.1em 0 .4em; padding: 2px 0; padding-inline-start: 12px; border-inline-start: 3px solid var(--border-strong); color: var(--ink-500); font-size: .93rem; }

/* liens simulés */
.qz-linkp { margin: 1em 0; }
.qz-linkwrap { position: relative; display: inline-block; max-width: 100%; }
.qz-link {
  display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 2px 0; border: 0; background: none;
  font: inherit; font-weight: 600; color: var(--blue-600); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; text-align: start;
}
.qz-link svg { width: 16px; height: 16px; flex: none; }
.qz-link:hover { color: var(--blue-700); }
.qz-link--cta { padding: 11px 20px; border-radius: 8px; background: var(--blue-600); color: #fff; text-decoration: none; font-weight: 700; box-shadow: 0 6px 16px -8px rgba(29, 78, 216, .6); }
.qz-link--cta:hover { background: var(--blue-700); color: #fff; }
.qz-link:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

.qz-tip {
  position: absolute; top: 100%; inset-inline-start: 0; z-index: 5; width: max-content; max-width: min(360px, calc(100vw - 64px));
  margin-top: 0; border-top: 8px solid transparent; background-clip: padding-box;
  padding: 8px 12px; border-radius: 8px; background-color: var(--navy-900); color: #e6edfb; font-size: .82rem; line-height: 1.45; text-align: start;
  box-shadow: var(--sh-3); opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity var(--t-fast), transform var(--t-fast), visibility var(--t-fast);
  overflow-wrap: anywhere; pointer-events: none; font-weight: 500; text-decoration: none;
}
.qz-tip__lab { display: block; color: #aab7d4; font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 2px; }
.qz-tip bdi { font-family: var(--mono); color: var(--cyan-300); }
.qz-linkwrap:hover .qz-tip, .qz-linkwrap:focus-within .qz-tip, .qz-linkwrap.is-open .qz-tip { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
.qz-linkwrap.is-dismissed .qz-tip { opacity: 0; visibility: hidden; }

/* barre d'état simulée (comme celle du navigateur) */
.qz-status { display: flex; align-items: center; min-height: 32px; padding: 6px 14px; background: var(--qz-soft); border-top: 1px solid var(--qz-line); font-size: .8rem; color: var(--ink-500); }
.qz-status__txt { min-width: 0; overflow-wrap: anywhere; }
.qz-status bdi { font-family: var(--mono); }
.qz-status.is-on { color: var(--ink-900); background: #e9eff9; }

/* ---------------------------------------------------------------- indices surlignés */
.qz-mark { color: inherit; padding: 1px 3px; border-radius: 4px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.qz-mark--bad { background: rgba(220, 94, 9, .13); box-shadow: inset 0 -2px 0 var(--orange-700); }
.qz-mark--good { background: rgba(21, 128, 61, .11); box-shadow: inset 0 -2px 0 var(--green-700); }
.qz-n { display: inline-grid; place-items: center; min-width: 1.35em; height: 1.35em; padding: 0 .3em; border-radius: 99px; font-size: .72rem; font-weight: 800; line-height: 1; color: #fff; vertical-align: .12em; margin-inline-end: 4px; font-family: var(--font); }
.qz-mark--bad .qz-n, .qz-clues--bad .qz-n { background: var(--orange-700); }
.qz-mark--good .qz-n, .qz-clues--good .qz-n { background: var(--green-700); }
.qz-mark .qz-link--cta { vertical-align: middle; }
.qz-atts .qz-mark { display: inline-flex; align-items: center; max-width: 100%; padding: 3px; }

/* ---------------------------------------------------------------- réponse */
.qz-ask { margin-top: 20px; text-align: center; }
.qz-ask__q { font-weight: 800; font-size: 1.05rem; margin: 0 0 12px; }
.qz-ask__btns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 560px; margin: 0 auto; }
.qz-choice {
  display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 60px; padding: 10px 16px;
  border: 2px solid var(--border-strong); border-radius: 14px; background: var(--white); color: var(--ink-900);
  font: inherit; font-size: 1.04rem; font-weight: 800; cursor: pointer; transition: border-color var(--t-fast), background var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
}
.qz-choice svg { width: 22px; height: 22px; flex: none; color: var(--blue-600); }
.qz-choice:hover { border-color: var(--blue-600); background: #f3f6ff; box-shadow: var(--sh-1); }
.qz-choice:active { transform: translateY(1px); }
.qz-choice:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

/* ---------------------------------------------------------------- correction */
.qz-fb { margin-top: 20px; padding: 18px 22px 20px; border-radius: var(--r-lg); border: 1px solid; }
.qz-fb--ok { background: #effaf2; border-color: rgba(21, 128, 61, .3); }
.qz-fb--ko { background: #fdf0f0; border-color: rgba(185, 28, 28, .3); }
.qz-fb__t { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; font-size: 1.25rem; }
.qz-fb__icon { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #fff; flex: none; }
.qz-fb__icon svg { width: 18px; height: 18px; stroke-width: 3; }
.qz-fb--ok .qz-fb__icon { background: var(--green-700); }
.qz-fb--ko .qz-fb__icon { background: var(--red-700); }
.qz-fb--ok .qz-fb__t { color: var(--green-700); }
.qz-fb--ko .qz-fb__t { color: var(--red-700); }
.qz-fb__verdict { margin: 0 0 14px; color: var(--ink-900); }
.qz-fb__you { color: var(--ink-500); font-size: .92rem; }
.qz-fb__h { font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-500); margin: 0 0 8px; }
.qz--ar .qz-fb__h { font-size: .9rem; }
.qz-clues { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.qz-clues li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; align-items: start; padding: 10px 12px; border-radius: var(--r-md); background: rgba(255, 255, 255, .75); border: 1px solid rgba(11, 21, 48, .07); font-size: .95rem; color: var(--ink-700); overflow-wrap: anywhere; }
.qz-clues .qz-n { width: 24px; height: 24px; min-width: 24px; padding: 0; font-size: .78rem; margin: 2px 0 0; vertical-align: 0; }
.qz-clues__on { color: var(--ink-900); margin-inline-end: 4px; }
.qz-clues__on::after { content: " —"; font-weight: 400; color: var(--ink-400); }
.qz-fb__note { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0 0; padding: 10px 12px; border-radius: var(--r-md); background: rgba(255, 255, 255, .6); font-size: .9rem; color: var(--ink-700); }
.qz-fb__note svg { width: 18px; height: 18px; flex: none; color: var(--cyan-700); margin-top: 3px; }
.qz-fb__next { display: flex; justify-content: flex-end; margin-top: 16px; }

/* ---------------------------------------------------------------- résultat */
.qz-result__head { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; padding: 6px 0 18px; border-bottom: 1px solid var(--qz-line); }
.qz-ring { position: relative; width: 132px; height: 132px; flex: none; }
.qz-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.qz-ring__bg { fill: none; stroke: var(--line-100); stroke-width: 10; }
.qz-ring__fg { fill: none; stroke: var(--cyan-500); stroke-width: 10; stroke-linecap: round; transition: stroke-dashoffset .9s var(--ease-out); }
.qz-ring__val { position: absolute; inset: 0; display: grid; place-items: center; font-size: 1.15rem; font-weight: 700; color: var(--ink-500); }
.qz-ring__val strong { font-size: 2.4rem; font-weight: 800; color: var(--navy-800); letter-spacing: -.03em; }
.qz-result__sum { flex: 1 1 280px; min-width: 0; }
.qz-result__sum h3 { font-size: 1.45rem; margin: 0 0 6px; }
.qz-result__sum p { margin: 0 0 8px; color: var(--ink-700); }
.qz-result__best { display: inline-flex; align-items: center; gap: 6px; font-size: .88rem; font-weight: 700; color: var(--green-700) !important; }
.qz-result__best svg { width: 16px; height: 16px; }
.qz-result__best--muted { font-weight: 500; color: var(--fg-muted) !important; }
.qz-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 18px 0 6px; }
.qz-stats > div { padding: 12px 16px; border-radius: var(--r-md); background: var(--paper-50); border: 1px solid var(--qz-line); }
.qz-stats dt { font-size: .84rem; color: var(--fg-muted); }
.qz-stats dd { margin: 2px 0 0; font-size: 1.45rem; font-weight: 800; color: var(--data); }
.qz-result__h { font-size: 1.05rem; margin: 26px 0 10px; }
.qz-recap { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--qz-line); }
.qz-recap__item { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--qz-line); }
.qz-recap__mark { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; color: #fff; margin-top: 2px; }
.qz-recap__mark svg { width: 14px; height: 14px; stroke-width: 3; }
.qz-recap__item--ok .qz-recap__mark { background: var(--green-700); }
.qz-recap__item--ko .qz-recap__mark { background: var(--red-700); }
.qz-recap__subj { margin: 0; font-weight: 700; color: var(--ink-900); overflow-wrap: anywhere; }
.qz-recap__num { color: var(--fg-subtle); font-weight: 600; }
.qz-recap__meta { margin: 2px 0 6px; font-size: .86rem; color: var(--fg-muted); }
.qz-recap__item--ok .qz-recap__state { color: var(--green-700); font-weight: 700; }
.qz-recap__item--ko .qz-recap__state { color: var(--red-700); font-weight: 700; }
.qz-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.qz-chip { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 99px; font-size: .78rem; font-weight: 700; border: 1px solid; }
.qz-chip--bad { color: var(--orange-700); background: rgba(220, 94, 9, .07); border-color: rgba(184, 77, 6, .25); }
.qz-chip--good { color: var(--green-700); background: rgba(34, 197, 94, .08); border-color: rgba(21, 128, 61, .25); }
.qz-tips { margin: 0; padding: 0; list-style: none; counter-reset: qztip; display: grid; gap: 8px; }
.qz-tips li { counter-increment: qztip; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; align-items: start; color: var(--ink-700); overflow-wrap: anywhere; }
.qz-tips li::before { content: counter(qztip); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: rgba(14, 165, 233, .12); color: var(--cyan-700); font-weight: 800; font-size: .82rem; font-family: var(--font); }
.qz-result__actions { display: flex; align-items: center; gap: 10px 16px; flex-wrap: wrap; margin-top: 26px; }
.qz-muted { font-size: .88rem; color: var(--fg-muted); }
.qz-share { margin-top: 22px; padding: 18px 20px; border-radius: var(--r-lg); background: linear-gradient(160deg, #f4f8ff, var(--paper-50)); border: 1px solid rgba(29, 78, 216, .16); }
.qz-share h4 { margin: 0 0 4px; font-size: 1.05rem; }
.qz-share p { margin: 0 0 12px; font-size: .93rem; color: var(--ink-700); }
.qz-share__row { display: flex; gap: 8px; flex-wrap: wrap; }
.qz-share__url { flex: 1 1 240px; min-width: 0; min-height: 44px; padding: 8px 12px; border-radius: var(--r-sm); border: 1px solid var(--border-strong); background: var(--white); font-family: var(--mono); font-size: .85rem; color: var(--ink-900); text-align: left; }
.qz-share__url:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
.qz-share .btn { display: inline-flex; align-items: center; gap: 8px; }
.qz-share__status { margin: 8px 0 0 !important; font-size: .86rem !important; font-weight: 700; color: var(--green-700) !important; min-height: 1.2em; }
.qz-result__actions .btn { display: inline-flex; align-items: center; gap: 8px; }

/* ---------------------------------------------------------------- méthode */
.qz-method__grid .card p { font-size: .96rem; color: var(--fg-muted); margin-bottom: 0; }
.qz-method__grid .card h3 { margin-top: 0; }

/* ---------------------------------------------------------------- mobile */
@media (max-width: 640px) {
  .qz-panel { padding: 16px 14px 18px; }
  .qz-top { margin-bottom: 12px; }
  .qz-langs { width: 100%; }
  .qz-lang { flex: 1; min-height: 44px; }
  .qz-prog { flex-basis: 100%; max-width: none; }
  .qz-mail__head { padding: 14px 14px 12px; }
  .qz-from { grid-template-columns: 34px minmax(0, 1fr); }
  .qz-avatar { width: 34px; height: 34px; font-size: .74rem; }
  .qz-date { grid-column: 2; padding-top: 0; white-space: normal; }
  .qz-atts { padding: 10px 14px 0; }
  .qz-mail__body { padding: 4px 14px 14px; font-size: .97rem; }
  .qz-link--cta { padding: 11px 16px; }
  .qz-ask__btns { gap: 10px; }
  .qz-choice { min-height: 56px; padding: 8px 10px; font-size: .98rem; gap: 8px; }
  .qz--ar .qz-choice { font-size: .94rem; gap: 6px; }
  .qz--ar .qz-choice svg { width: 20px; height: 20px; }
  .qz-fb { padding: 14px 14px 16px; }
  .qz-fb__next .btn { width: 100%; justify-content: center; }
  .qz-clues li { padding: 9px 10px; gap: 8px; font-size: .93rem; }
  .qz-result__head { flex-direction: column; align-items: flex-start; }
  .qz-result__sum { flex: none; width: 100%; }
  .qz-ring { width: 112px; height: 112px; }
  .qz-stats { grid-template-columns: minmax(0, 1fr); }
  .qz-share { padding: 14px; }
  .qz-share .btn { flex: 1 1 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .qz-prog__bar span, .qz-ring__fg, .qz-tip, .qz-choice { transition: none; }
}

/* ---------------------------------------------------------------- impression
   site.css masque en impression les panneaux d'outil sans .tool-results : le quiz, lui,
   s'imprime (message et correction, ou résultat complet), sans les commandes. */
@media print {
  main .tool-layout > .tool-main > .tool-panel.qz-panel { display: block !important; border: 0 !important; padding: 0 !important; }
  .qz-panel > .tool-panel__title, .qz-langs, .qz-ask, .qz-share, .qz-status, .qz-mail__bar, .qz-result__actions,
  .qz-best, .qz-intro__go, .qz-fb__next, .qz-tip, .qz-textbtn { display: none !important; }
  main:has(.qz[data-phase="result"]) > section:not(:has(.qz)) { display: none !important; }
  .qz { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .qz-mail { box-shadow: none; border-color: #bbb; }
  .qz-mail__head, .qz-fb__t, .qz-fb__verdict, .qz-result__head, .qz-stats, .qz-recap__item, .qz-clues li, .qz-tips li { break-inside: avoid; }
  .qz-result__h { break-after: avoid; }
  .qz-prog { max-width: none; }
}
