/* AnimyJob — Quizothèque interactive V1
 * Aucun vert volontairement. Compatible navigateurs modernes, avec dégradation propre.
 */

.qz-page,
#hub-quiz .qz-home-block {
  --qz-ink: #172033;
  --qz-muted: #64748b;
  --qz-line: #e4e7ef;
  --qz-soft: #f7f8fc;
  --qz-blue: #2f5bea;
  --qz-blue-dark: #2347bb;
  --qz-purple: #6d4aff;
  --qz-amber: #f59e0b;
  --qz-orange: #f97316;
  --qz-red: #dc2626;
  --qz-red-soft: #fff1f2;
  --qz-blue-soft: #eef4ff;
  --qz-purple-soft: #f4f0ff;
  --qz-shadow: 0 18px 50px rgba(36, 48, 83, .10);
  color: var(--qz-ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.qz-page *,
#hub-quiz .qz-home-block * { box-sizing: border-box; }
.qz-page img,
#hub-quiz .qz-home-block img { max-width: 100%; height: auto; display: block; }
.qz-page a { color: inherit; }
.qz-shell { width: min(1180px, calc(100% - 30px)); margin: 0 auto; padding: 28px 0 70px; }

.qz-preview-banner {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin: 0 0 18px;
  padding: 12px 16px;
  border: 1px solid #f6c453;
  border-radius: 12px;
  background: #fff8df;
  color: #7c4a03;
  font-size: .9rem;
}
.qz-preview-banner strong { font-weight: 900; }

.qz-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 16px;
  color: var(--qz-muted);
  font-size: .86rem;
}
.qz-breadcrumb a { text-decoration: none; }
.qz-breadcrumb a:hover,
.qz-breadcrumb a:focus { text-decoration: underline; }

.qz-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, .88fr);
  gap: 34px;
  align-items: center;
  margin-bottom: 34px;
  padding: clamp(25px, 4vw, 48px);
  border: 1px solid #e0e5f4;
  border-radius: 26px;
  background:
    radial-gradient(circle at 12% 15%, rgba(109, 74, 255, .10), transparent 33%),
    radial-gradient(circle at 90% 90%, rgba(245, 158, 11, .12), transparent 32%),
    #fbfcff;
  box-shadow: var(--qz-shadow);
}
.qz-kicker,
.qz-step-label,
.qz-card-eyebrow {
  display: inline-block;
  color: var(--qz-purple);
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.qz-hero h1 {
  margin: 8px 0 15px;
  color: #12182a;
  font-size: clamp(2rem, 4.4vw, 3.55rem);
  line-height: 1.02;
  letter-spacing: -.035em;
}
.qz-intro {
  max-width: 760px;
  color: #46546a;
  font-size: 1.03rem;
  line-height: 1.7;
}
.qz-intro p { margin: 0 0 12px; }
.qz-intro p:last-child { margin-bottom: 0; }
.qz-meta-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 21px; }
.qz-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid #dfe4f0;
  border-radius: 999px;
  background: rgba(255,255,255,.82);
  color: #39465d;
  font-size: .83rem;
  font-weight: 800;
}
.qz-hero-actions,
.qz-setup-actions,
.qz-result-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.qz-hero-media {
  margin: 0;
  overflow: hidden;
  border-radius: 20px;
  background: #edf1fb;
  box-shadow: 0 13px 32px rgba(30, 41, 80, .14);
}
.qz-hero-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

.qz-btn {
  appearance: none;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 45px;
  padding: 11px 17px;
  border: 1px solid transparent;
  border-radius: 11px;
  font: inherit;
  font-size: .9rem;
  font-weight: 850;
  line-height: 1.15;
  cursor: pointer;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
}
.qz-btn:hover:not(:disabled),
.qz-btn:focus-visible:not(:disabled) { transform: translateY(-1px); }
.qz-btn:focus-visible,
.qz-mode:focus-visible,
.qz-answer:focus-visible,
.qz-link-button:focus-visible { outline: 3px solid rgba(47, 91, 234, .25); outline-offset: 2px; }
.qz-btn:disabled { opacity: .48; cursor: not-allowed; }
.qz-btn-primary { background: var(--qz-blue); color: #fff; box-shadow: 0 8px 20px rgba(47,91,234,.22); }
.qz-btn-primary:hover:not(:disabled) { background: var(--qz-blue-dark); }
.qz-btn-secondary { background: #fff; border-color: #cfd7e8; color: #26344c; }
.qz-btn-secondary:hover { border-color: #9eabc4; background: #fafbfe; }
.qz-btn-ghost { background: transparent; border-color: transparent; color: var(--qz-blue); }
.qz-btn-ghost:hover { background: var(--qz-blue-soft); }

.qz-app {
  margin: 34px 0;
  padding: clamp(20px, 3.5vw, 38px);
  border: 1px solid #dfe4f1;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--qz-shadow);
}
.qz-section-heading { margin-bottom: 22px; }
.qz-section-heading h2 { margin: 5px 0 8px; font-size: clamp(1.55rem, 3vw, 2.2rem); line-height: 1.12; }
.qz-section-heading p { margin: 0; color: var(--qz-muted); line-height: 1.65; }

.qz-mode-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; }
.qz-mode {
  appearance: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  min-height: 150px;
  padding: 18px;
  border: 1.5px solid var(--qz-line);
  border-radius: 16px;
  background: #fff;
  color: var(--qz-ink);
  text-align: left;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, transform .15s ease, box-shadow .15s ease;
}
.qz-mode:hover { transform: translateY(-2px); border-color: #c2cae0; box-shadow: 0 10px 24px rgba(42,54,90,.08); }
.qz-mode.is-selected { border-color: var(--qz-blue); background: var(--qz-blue-soft); box-shadow: 0 0 0 3px rgba(47,91,234,.08); }
.qz-mode-icon { font-size: 1.75rem; }
.qz-mode strong { font-size: 1rem; }
.qz-mode span:last-child { color: var(--qz-muted); font-size: .83rem; line-height: 1.45; }
.qz-team-options { margin-top: 17px; padding: 15px 17px; border-radius: 13px; background: var(--qz-soft); }
.qz-team-options label { margin-right: 10px; }
.qz-team-options select { min-height: 40px; padding: 6px 10px; border: 1px solid #cbd3e3; border-radius: 8px; background: #fff; font: inherit; }
.qz-noscript { margin: 16px 0 0; color: #8a4b08; }

.qz-gamebar {
  position: sticky;
  top: 8px;
  z-index: 5;
  margin: -10px -10px 24px;
  padding: 12px 14px;
  border: 1px solid #e3e7f0;
  border-radius: 14px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 10px 22px rgba(24,36,70,.08);
  backdrop-filter: blur(8px);
}
.qz-progress-copy { display: flex; justify-content: space-between; gap: 15px; margin-bottom: 9px; color: #36445b; font-size: .86rem; }
.qz-progress-copy strong { color: var(--qz-blue); }
.qz-progress { height: 8px; overflow: hidden; border-radius: 999px; background: #e8ecf5; }
.qz-progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--qz-blue), var(--qz-purple)); transition: width .25s ease; }
.qz-team-scoreboard { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 7px; margin-top: 11px; }
.qz-team-score {
  padding: 8px 9px;
  border: 1px solid #dfe4f0;
  border-radius: 9px;
  background: #fafbfe;
  color: #48566d;
  font-size: .78rem;
  text-align: center;
}
.qz-team-score.is-active { border-color: var(--qz-amber); background: #fff8df; color: #7c4a03; font-weight: 850; }
.qz-team-score strong { display: block; color: #202c42; font-size: .94rem; }

.qz-question-card { padding: clamp(17px, 3vw, 29px); border: 1px solid #e1e5ee; border-radius: 20px; background: #fff; }
.qz-question-card[hidden] { display: none !important; }
.qz-question-topline { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.qz-question-number { color: var(--qz-purple); font-weight: 900; font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; }
.qz-difficulty { color: var(--qz-muted); font-size: .76rem; font-weight: 800; }
.qz-question-text { margin: 0 0 20px; color: #111827; font-size: clamp(1.35rem, 3vw, 2rem); line-height: 1.22; letter-spacing: -.015em; }
.qz-question-image { width: min(680px, 100%); margin: 0 auto 21px; overflow: hidden; border: 1px solid #dfe5ef; border-radius: 16px; background: #f5f7fb; }
.qz-question-image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.qz-image-missing { margin: 0 0 20px; padding: 12px 14px; border: 1px dashed #d3a027; border-radius: 11px; background: #fff8df; color: #7c4a03; font-size: .86rem; }

.qz-answer-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.qz-answer {
  appearance: none;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 66px;
  padding: 13px 15px;
  border: 1.5px solid #dfe4ee;
  border-radius: 13px;
  background: #fff;
  color: #253248;
  font: inherit;
  font-weight: 760;
  text-align: left;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.qz-answer:hover:not(:disabled) { transform: translateY(-1px); border-color: #9eb0df; background: #f8faff; }
.qz-answer:disabled { cursor: default; }
.qz-answer.is-correct { border-color: var(--qz-blue); background: var(--qz-blue-soft); color: #173b99; }
.qz-answer.is-wrong { border-color: #f2a4ad; background: var(--qz-red-soft); color: #9f1239; }
.qz-answer-letter { display: inline-grid; flex: 0 0 32px; width: 32px; height: 32px; place-items: center; border-radius: 9px; background: #eef1f7; color: #536176; font-size: .8rem; font-weight: 900; }
.qz-answer.is-correct .qz-answer-letter { background: var(--qz-blue); color: #fff; }
.qz-answer.is-wrong .qz-answer-letter { background: #ef4444; color: #fff; }

.qz-short-answer label { display: block; margin-bottom: 7px; color: #46546b; font-weight: 850; }
.qz-short-row { display: flex; gap: 9px; }
.qz-short-input { min-width: 0; flex: 1 1 auto; min-height: 46px; padding: 10px 13px; border: 1.5px solid #cfd7e5; border-radius: 10px; color: #172033; font: inherit; }
.qz-short-input:focus { outline: 3px solid rgba(47,91,234,.17); border-color: var(--qz-blue); }
.qz-short-input.is-correct { border-color: var(--qz-blue); background: var(--qz-blue-soft); }
.qz-short-input.is-wrong { border-color: #ef8795; background: var(--qz-red-soft); }

.qz-reveal-row { margin-top: 13px; }
.qz-link-button { appearance: none; padding: 0; border: 0; background: transparent; color: var(--qz-blue); font: inherit; font-size: .84rem; font-weight: 850; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.qz-correction { margin-top: 17px; padding: 15px 17px; border-left: 4px solid var(--qz-blue); border-radius: 10px; background: var(--qz-blue-soft); }
.qz-correction-status { margin-bottom: 5px; font-weight: 900; }
.qz-correction-status.is-wrong { color: #b4233d; }
.qz-correction-status.is-correct { color: #244ebc; }
.qz-correct-answer, .qz-explanation { margin: 5px 0; line-height: 1.55; }
.qz-explanation { color: #536178; }
.qz-award-bar { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 15px; padding: 12px; border: 1px dashed #cbd2e1; border-radius: 11px; background: #fafbfe; }
.qz-award-bar::before { content: "Attribuer 1 point :"; width: 100%; color: #536178; font-size: .8rem; font-weight: 850; }
.qz-award-btn { appearance: none; padding: 8px 11px; border: 1px solid #cfd7e8; border-radius: 8px; background: #fff; color: #2c3950; font: inherit; font-size: .8rem; font-weight: 850; cursor: pointer; }
.qz-award-btn:disabled { opacity: .48; cursor: default; }
.qz-question-actions { display: flex; justify-content: flex-end; margin-top: 18px; }
.qz-print-answer { display: none; }

.qz-result { padding: clamp(28px,5vw,54px); text-align: center; }
.qz-result-icon { font-size: 3.2rem; }
.qz-result h2 { margin: 8px 0; font-size: clamp(1.8rem,4vw,2.7rem); }
.qz-result-score { margin: 8px 0; color: var(--qz-blue); font-size: clamp(1.5rem,4vw,2.5rem); font-weight: 950; }
.qz-result-note { color: var(--qz-muted); }
.qz-result-actions { justify-content: center; }
.qz-result-ranking { display: grid; gap: 8px; width: min(520px, 100%); margin: 20px auto; }
.qz-ranking-row { display: flex; justify-content: space-between; gap: 15px; padding: 11px 14px; border: 1px solid #e1e5ef; border-radius: 10px; background: #fafbfe; }
.qz-ranking-row:first-child { border-color: #f3c45a; background: #fff8df; }

.qz-use-section,
.qz-related { margin-top: 46px; }
.qz-value-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.qz-value-grid article { padding: 18px; border: 1px solid #e1e5ef; border-radius: 15px; background: #fff; }
.qz-value-grid article > span { font-size: 1.55rem; }
.qz-value-grid h3 { margin: 8px 0 5px; font-size: 1rem; }
.qz-value-grid p { margin: 0; color: var(--qz-muted); font-size: .86rem; line-height: 1.55; }

.qz-card-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.qz-card { overflow: hidden; border: 1px solid #e0e4ed; border-radius: 15px; background: #fff; color: inherit; text-decoration: none; transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease; }
.qz-card:hover { transform: translateY(-2px); border-color: #b9c5e6; box-shadow: 0 12px 27px rgba(37,48,82,.09); }
.qz-card-media { display: block; height: 155px; overflow: hidden; background: #eef1f8; }
.qz-card-media img { width: 100%; height: 100%; object-fit: cover; }
.qz-card-placeholder { display: grid; width: 100%; height: 100%; place-items: center; background: linear-gradient(135deg,#eef4ff,#f5f0ff); color: #6d4aff; font-size: 2.4rem; font-weight: 900; }
.qz-card-body { display: flex; flex-direction: column; gap: 6px; padding: 14px; }
.qz-card-body strong { color: #1c273b; line-height: 1.3; }
.qz-card-body > span:last-child { color: var(--qz-muted); font-size: .8rem; }
.qz-empty { padding: 28px; border: 1px dashed #d1d7e4; border-radius: 16px; background: #fafbfe; text-align: center; }

/* Hub thème / âge : classes partagées */
.qz-hub-heading { margin-bottom: 22px; }
.qz-hub-heading h1 { margin: 6px 0 10px; font-size: clamp(2rem,4vw,3.3rem); letter-spacing: -.03em; }
.qz-hub-heading p { max-width: 820px; color: var(--qz-muted); line-height: 1.7; }
.qz-filter-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 17px 0 25px; }
.qz-filter-link { display: inline-flex; padding: 8px 11px; border: 1px solid #dce1ec; border-radius: 999px; background: #fff; color: #344157; font-size: .82rem; font-weight: 800; text-decoration: none; }
.qz-filter-link:hover { border-color: #9eafe0; background: var(--qz-blue-soft); }

/* Bloc nouveau sur /quizz */
#hub-quiz .qz-home-block {
  margin: 30px 0 38px;
  padding: clamp(18px,3vw,28px);
  border: 1px solid #dfe4f1;
  border-radius: 18px;
  background: linear-gradient(135deg,#f7f9ff,#fffaf0);
}
#hub-quiz .qz-home-head { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; margin-bottom: 18px; }
#hub-quiz .qz-home-head h2 { margin: 5px 0 7px; color: #172033; font-size: 1.45rem; }
#hub-quiz .qz-home-head p { margin: 0; max-width: 760px; color: #5d6a7e; line-height: 1.55; }
#hub-quiz .qz-home-count { flex: 0 0 auto; padding: 8px 11px; border-radius: 999px; background: #eef4ff; color: #244ebc; font-size: .8rem; font-weight: 900; }
#hub-quiz .qz-home-themes { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 10px; }
#hub-quiz .qz-home-theme { overflow: hidden; border: 1px solid #e0e4ed; border-radius: 12px; background: #fff; color: #223047; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
#hub-quiz .qz-home-theme:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(37,48,82,.08); }
#hub-quiz .qz-home-theme-media { display:block; height: 92px; overflow:hidden; background:#eef1f8; }
#hub-quiz .qz-home-theme-media img { width:100%; height:100%; object-fit:cover; }
#hub-quiz .qz-home-theme-body { display:flex; flex-direction:column; gap:3px; padding:10px; }
#hub-quiz .qz-home-theme-body strong { font-size:.86rem; line-height:1.25; }
#hub-quiz .qz-home-theme-body span { color:#6b778a; font-size:.74rem; }

.qz-sr-only { position:absolute !important; width:1px !important; height:1px !important; padding:0 !important; margin:-1px !important; overflow:hidden !important; clip:rect(0,0,0,0) !important; white-space:nowrap !important; border:0 !important; }

@media (max-width: 960px) {
  .qz-hero { grid-template-columns: 1fr; }
  .qz-hero-media { max-width: 680px; }
  .qz-mode-grid, .qz-value-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .qz-card-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  #hub-quiz .qz-home-themes { grid-template-columns: repeat(3,minmax(0,1fr)); }
}

@media (max-width: 620px) {
  .qz-shell { width: min(100% - 20px,1180px); padding-top: 16px; }
  .qz-hero { gap: 20px; padding: 20px; border-radius: 18px; }
  .qz-hero h1 { font-size: 2rem; }
  .qz-app { padding: 15px; border-radius: 17px; }
  .qz-mode-grid, .qz-value-grid, .qz-card-grid { grid-template-columns: 1fr; }
  .qz-mode { min-height: 116px; }
  .qz-answer-grid { grid-template-columns: 1fr; }
  .qz-short-row { flex-direction: column; }
  .qz-short-row .qz-btn { width: 100%; }
  .qz-progress-copy { flex-wrap: wrap; }
  .qz-team-scoreboard { grid-template-columns: repeat(2,minmax(0,1fr)); }
  #hub-quiz .qz-home-head { flex-direction:column; }
  #hub-quiz .qz-home-themes { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media print {
  body * { visibility: hidden !important; }
  #qz-page, #qz-page * { visibility: visible !important; }
  #qz-page { position: absolute; inset: 0; width: 100%; color: #000; background: #fff; }
  .qz-shell { width: 100%; padding: 0; }
  .qz-preview-banner, .qz-breadcrumb, .qz-hero-actions, .qz-app > .qz-setup, .qz-gamebar,
  .qz-answer-grid, .qz-short-answer, .qz-reveal-row, .qz-correction, .qz-award-bar,
  .qz-question-actions, .qz-result, .qz-use-section, .qz-related { display: none !important; }
  .qz-hero { display: block; margin: 0 0 14px; padding: 0 0 12px; border: 0; box-shadow: none; }
  .qz-hero-media { display: none; }
  #qz-game { display: block !important; }
  .qz-question-stack { display: block !important; }
  .qz-question-card, .qz-question-card[hidden] { display: block !important; page-break-inside: avoid; margin: 0 0 14px; padding: 12px; border: 1px solid #bbb; }
  .qz-question-text { font-size: 16px; margin-bottom: 8px; }
  .qz-question-image { width: 320px; margin: 8px 0; }
  .qz-print-answer { display: block !important; margin-top: 8px; color: #333; font-size: 12px; }
}

/* Compléments hubs thématiques et par âge */
.qz-theme-hero,
.qz-age-hero {
  margin-bottom: 32px;
  padding: clamp(23px,4vw,42px);
  border: 1px solid #dfe4f1;
  border-radius: 23px;
  background: linear-gradient(135deg,#f7f9ff,#fffaf1);
  box-shadow: var(--qz-shadow);
}
.qz-theme-hero { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(300px,.9fr); gap: 28px; align-items:center; }
.qz-theme-hero-copy h1,
.qz-age-hero h1 { margin: 6px 0 12px; font-size: clamp(2rem,4vw,3.15rem); line-height:1.05; letter-spacing:-.03em; }
.qz-theme-hero-copy > p,
.qz-age-hero > p { margin:0; max-width:780px; color:#536178; font-size:1rem; line-height:1.7; }
.qz-theme-hero-media { margin:0; overflow:hidden; border-radius:18px; background:#eef1f8; }
.qz-theme-hero-media img { width:100%; aspect-ratio:3/2; object-fit:cover; }
.qz-theme-hero .qz-meta-row span,
.qz-age-hero .qz-meta-row span { display:inline-flex; padding:7px 10px; border:1px solid #dfe4ee; border-radius:999px; background:#fff; color:#46546b; font-size:.8rem; font-weight:800; }
.qz-filter-section,
.qz-listing-section,
.qz-value-section { margin-top:34px; }
.qz-age-pills { display:flex; flex-wrap:wrap; gap:8px; }
.qz-age-pills a { display:inline-flex; padding:8px 12px; border:1px solid #d8dfed; border-radius:999px; background:#fff; color:#334158; font-size:.84rem; font-weight:820; text-decoration:none; }
.qz-age-pills a:hover,
.qz-age-pills a:focus { border-color:#9eafe0; background:var(--qz-blue-soft); color:#2347bb; }
.qz-card-link { display:block; height:100%; color:inherit; text-decoration:none; }
.qz-card figure.qz-card-media { position:relative; margin:0; }
.qz-card-format { position:absolute; left:9px; top:9px; display:inline-flex; padding:5px 8px; border-radius:999px; background:rgba(17,24,39,.82); color:#fff; font-size:.69rem; font-weight:900; backdrop-filter:blur(6px); }
.qz-card-tags { display:flex; flex-wrap:wrap; gap:5px; }
.qz-card-tags span { padding:4px 7px; border-radius:999px; background:#f1f4fa; color:#59677c; font-size:.68rem; font-weight:800; }
.qz-card-body h3 { margin:2px 0; color:#1c273b; font-size:1rem; line-height:1.3; }
.qz-card-body p { margin:0; color:#69758a; font-size:.82rem; line-height:1.5; }
.qz-card-cta { margin-top:4px; color:var(--qz-blue); font-size:.81rem; font-weight:900; }
.qz-value-section .qz-value-grid article strong { display:block; margin:7px 0 5px; color:#1d2940; }
.qz-bottom-nav { display:flex; flex-wrap:wrap; gap:9px; margin-top:42px; padding-top:24px; border-top:1px solid #e3e7ef; }
.qz-bottom-nav a { padding:8px 11px; border-radius:9px; background:#f7f8fc; color:#344157; font-size:.82rem; font-weight:800; text-decoration:none; }
.qz-bottom-nav a:hover { background:var(--qz-blue-soft); color:#2347bb; }

@media (max-width: 820px) {
  .qz-theme-hero { grid-template-columns:1fr; }
  .qz-theme-hero-media { max-width:660px; }
}

/* ========================================================================
   QUIZOTHÈQUE V2 — DIRECTION VISUELLE MODERNE / IMMERSIVE
   Inspirée du rythme éditorial de la page Escape Game AnimyJob.
   Conserve les classes et le moteur JS de V1. Aucun vert.
   ======================================================================== */

.qz-page,
#hub-quiz .qz-home-block {
  --qz-ink: #171426;
  --qz-muted: #706b7c;
  --qz-line: rgba(28, 20, 50, .10);
  --qz-bg: #f7f4ef;
  --qz-surface: #ffffff;
  --qz-night: #171426;
  --qz-night-2: #24203a;
  --qz-purple: #7451ff;
  --qz-purple-2: #9b7cff;
  --qz-orange: #ff7a45;
  --qz-orange-2: #ff9a63;
  --qz-yellow: #ffc94d;
  --qz-rose: #ff6d8d;
  --qz-lilac: #eee8ff;
  --qz-peach: #fff0e8;
  --qz-cream: #fff9ee;
  --qz-shadow-sm: 0 12px 34px rgba(30, 23, 53, .08);
  --qz-shadow-md: 0 24px 70px rgba(30, 23, 53, .14);
  --qz-shadow-xl: 0 36px 100px rgba(16, 12, 33, .22);
  color: var(--qz-ink);
}

.qz-page {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(circle at 8% 4%, rgba(155,124,255,.13), transparent 22rem),
    radial-gradient(circle at 96% 14%, rgba(255,122,69,.10), transparent 25rem),
    linear-gradient(180deg, #fbfaf8 0, #f7f4ef 35rem, #fbfaf8 100%);
}

.qz-page::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .28;
  background-image: radial-gradient(rgba(40,31,67,.15) .7px, transparent .7px);
  background-size: 22px 22px;
  mask-image: linear-gradient(to bottom, #000 0, transparent 44rem);
}

.qz-shell {
  width: min(1240px, calc(100% - 40px));
  padding: 28px 0 88px;
}

.qz-breadcrumb {
  margin: 8px 0 22px;
  color: #817a8d;
  font-size: .78rem;
  font-weight: 750;
  letter-spacing: .01em;
}
.qz-breadcrumb a { color: #5e5770; }

.qz-preview-banner {
  border: 0;
  border-radius: 18px;
  background: #fff3d8;
  box-shadow: var(--qz-shadow-sm);
  color: #765114;
}

/* HERO PRINCIPAL ------------------------------------------------------- */
.qz-hero,
.qz-theme-hero,
.qz-age-hero {
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: 34px;
  background:
    radial-gradient(circle at 18% 18%, rgba(155,124,255,.34), transparent 31%),
    radial-gradient(circle at 83% 82%, rgba(255,122,69,.30), transparent 31%),
    linear-gradient(135deg, #181427 0%, #211c36 56%, #171427 100%);
  box-shadow: var(--qz-shadow-xl);
}

.qz-hero::before,
.qz-theme-hero::before,
.qz-age-hero::before {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  right: -95px;
  top: -95px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 50%;
  box-shadow:
    0 0 0 38px rgba(255,255,255,.025),
    0 0 0 78px rgba(255,255,255,.018);
  pointer-events: none;
}

.qz-hero::after,
.qz-theme-hero::after {
  content: "";
  position: absolute;
  left: 49%;
  bottom: -85px;
  width: 190px;
  height: 190px;
  border-radius: 58px;
  background: rgba(255,201,77,.08);
  transform: rotate(26deg);
  pointer-events: none;
}

.qz-hero {
  grid-template-columns: minmax(0, 1.02fr) minmax(390px, .98fr);
  gap: clamp(34px, 5vw, 76px);
  padding: clamp(38px, 6vw, 76px);
  margin-bottom: 54px;
  min-height: 570px;
}

.qz-hero-copy,
.qz-theme-hero-copy,
.qz-age-hero > * { position: relative; z-index: 2; }

.qz-kicker,
.qz-step-label,
.qz-card-eyebrow {
  color: var(--qz-yellow);
  font-size: .72rem;
  font-weight: 950;
  letter-spacing: .16em;
}

.qz-hero h1,
.qz-theme-hero-copy h1,
.qz-age-hero h1 {
  max-width: 830px;
  margin: 13px 0 20px;
  color: #fff;
  font-size: clamp(2.7rem, 6.2vw, 5.25rem);
  line-height: .94;
  letter-spacing: -.055em;
  text-wrap: balance;
}

.qz-theme-hero-copy h1,
.qz-age-hero h1 { font-size: clamp(2.55rem, 5.2vw, 4.6rem); }

.qz-intro,
.qz-theme-hero-copy > p,
.qz-age-hero > p {
  max-width: 720px;
  color: rgba(255,255,255,.76);
  font-size: clamp(.99rem, 1.5vw, 1.12rem);
  line-height: 1.72;
}
.qz-intro p { color: inherit; }

.qz-meta-row { gap: 9px; margin-top: 28px; }
.qz-chip,
.qz-theme-hero .qz-meta-row span,
.qz-age-hero .qz-meta-row span {
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  background: rgba(255,255,255,.075);
  color: rgba(255,255,255,.90);
  font-size: .76rem;
  font-weight: 850;
  backdrop-filter: blur(12px);
}

.qz-hero-actions { margin-top: 30px; gap: 11px; }
.qz-hero .qz-btn-secondary {
  border-color: rgba(255,255,255,.15);
  background: #fff;
  color: #1e1930;
}
.qz-hero .qz-btn-ghost {
  border-color: rgba(255,255,255,.14);
  background: rgba(255,255,255,.075);
  color: #fff;
}
.qz-hero .qz-btn-ghost:hover { background: rgba(255,255,255,.13); }

.qz-btn {
  min-height: 50px;
  padding: 13px 20px;
  border-radius: 999px;
  font-size: .84rem;
  font-weight: 900;
  letter-spacing: .01em;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.qz-btn:hover:not(:disabled) { transform: translateY(-2px); }
.qz-btn-primary {
  background: linear-gradient(135deg, var(--qz-orange), #ff625e);
  color: #fff;
  box-shadow: 0 14px 30px rgba(255,105,77,.28);
}
.qz-btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #ff6c39, #ff5360);
  box-shadow: 0 18px 38px rgba(255,105,77,.34);
}
.qz-btn-secondary { border-color: var(--qz-line); }

.qz-hero-media,
.qz-theme-hero-media {
  position: relative;
  z-index: 2;
  margin: 0;
  overflow: visible;
  border-radius: 28px;
  background: transparent;
  box-shadow: none;
  transform: rotate(1.2deg);
}
.qz-hero-media::before,
.qz-theme-hero-media::before {
  content: "";
  position: absolute;
  inset: 18px -15px -15px 18px;
  z-index: -1;
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(155,124,255,.46), rgba(255,122,69,.38));
  filter: blur(1px);
}
.qz-hero-media img,
.qz-theme-hero-media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border: 8px solid rgba(255,255,255,.95);
  border-radius: 28px;
  box-shadow: 0 34px 80px rgba(4, 2, 15, .40);
}

/* APP / MODES ---------------------------------------------------------- */
.qz-app {
  margin: 48px 0 0;
  padding: clamp(26px, 5vw, 58px);
  border: 0;
  border-radius: 34px;
  background: rgba(255,255,255,.84);
  box-shadow: 0 28px 90px rgba(35,28,59,.10);
  backdrop-filter: blur(14px);
}

.qz-section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, .55fr);
  gap: 24px;
  align-items: end;
  margin-bottom: 30px;
}
.qz-section-heading h2 {
  margin: 7px 0 0;
  max-width: 700px;
  color: #1a1628;
  font-size: clamp(2rem, 4.4vw, 3.55rem);
  line-height: .98;
  letter-spacing: -.045em;
}
.qz-section-heading p {
  align-self: end;
  color: #746e7e;
  font-size: .92rem;
  line-height: 1.65;
}

.qz-app .qz-step-label,
.qz-use-section .qz-step-label,
.qz-related .qz-step-label { color: var(--qz-purple); }

.qz-mode-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.qz-mode {
  position: relative;
  overflow: hidden;
  min-height: 224px;
  gap: 9px;
  padding: 22px 22px 20px;
  border: 1px solid rgba(42,31,72,.10);
  border-radius: 25px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(31,24,52,.06);
}
.qz-mode::before {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  right: -65px;
  top: -64px;
  border-radius: 50%;
  background: rgba(116,81,255,.07);
  transition: transform .25s ease, opacity .25s ease;
}
.qz-mode:nth-child(2)::before { background: rgba(255,122,69,.09); }
.qz-mode:nth-child(3)::before { background: rgba(255,201,77,.14); }
.qz-mode:nth-child(4)::before { background: rgba(255,109,141,.10); }
.qz-mode::after {
  content: "→";
  position: absolute;
  right: 20px;
  bottom: 18px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f4f1f8;
  color: #282139;
  font-size: 1rem;
  font-weight: 900;
}
.qz-mode:hover {
  transform: translateY(-6px);
  border-color: rgba(116,81,255,.24);
  box-shadow: 0 24px 50px rgba(31,24,52,.12);
}
.qz-mode:hover::before { transform: scale(1.18); }
.qz-mode.is-selected {
  border-color: transparent;
  background: linear-gradient(145deg, #211b37, #171427);
  box-shadow: 0 24px 58px rgba(28,21,48,.23);
  color: #fff;
}
.qz-mode.is-selected::before { background: rgba(155,124,255,.20); }
.qz-mode.is-selected::after { background: var(--qz-yellow); color: #2d2311; }
.qz-mode-icon {
  position: relative;
  z-index: 2;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  margin-bottom: 13px;
  border-radius: 18px;
  background: var(--qz-lilac);
  font-size: 1.65rem;
}
.qz-mode:nth-child(2) .qz-mode-icon { background: var(--qz-peach); }
.qz-mode:nth-child(3) .qz-mode-icon { background: #fff5cf; }
.qz-mode:nth-child(4) .qz-mode-icon { background: #ffeaf0; }
.qz-mode.is-selected .qz-mode-icon { background: rgba(255,255,255,.10); }
.qz-mode strong {
  position: relative;
  z-index: 2;
  font-size: 1.15rem;
  letter-spacing: -.015em;
}
.qz-mode span:last-child {
  position: relative;
  z-index: 2;
  max-width: 200px;
  color: #7d7787;
  font-size: .82rem;
  line-height: 1.5;
}
.qz-mode.is-selected span:last-child { color: rgba(255,255,255,.66); }

.qz-team-options {
  margin-top: 18px;
  padding: 16px 18px;
  border: 0;
  border-radius: 18px;
  background: #f4f0ff;
}
.qz-team-options select { border-radius: 999px; }
.qz-setup-actions { margin-top: 24px; }

/* JEU EN COURS --------------------------------------------------------- */
.qz-gamebar {
  top: 12px;
  margin: -8px -8px 28px;
  padding: 15px 18px;
  border: 0;
  border-radius: 20px;
  background: rgba(24,20,39,.94);
  box-shadow: 0 18px 40px rgba(24,20,39,.22);
  color: #fff;
}
.qz-progress-copy { color: rgba(255,255,255,.72); }
.qz-progress-copy strong { color: var(--qz-yellow); }
.qz-progress { height: 7px; background: rgba(255,255,255,.10); }
.qz-progress span { background: linear-gradient(90deg, var(--qz-orange), var(--qz-yellow)); }
.qz-team-scoreboard { gap: 8px; }
.qz-team-score { border: 0; background: rgba(255,255,255,.08); color: rgba(255,255,255,.7); }
.qz-team-score strong { color: #fff; }
.qz-team-score.is-active { background: var(--qz-yellow); color: #5c4212; }
.qz-team-score.is-active strong { color: #2b210e; }

.qz-question-card {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 4.8vw, 54px);
  border: 0;
  border-radius: 30px;
  background: #fff;
  box-shadow: 0 25px 70px rgba(35,28,59,.10);
}
.qz-question-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 7px;
  height: 100%;
  background: linear-gradient(to bottom, var(--qz-purple), var(--qz-orange));
}
.qz-question-topline { margin-bottom: 20px; }
.qz-question-number {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--qz-lilac);
  color: #6044d7;
  font-size: .68rem;
  letter-spacing: .12em;
}
.qz-difficulty { color: #8a8494; }
.qz-question-text {
  max-width: 900px;
  margin: 0 0 30px;
  color: #181426;
  font-size: clamp(1.75rem, 4.1vw, 3.2rem);
  line-height: 1.04;
  letter-spacing: -.045em;
  text-wrap: balance;
}
.qz-question-image {
  width: min(760px, 100%);
  margin: 0 0 30px;
  border: 0;
  border-radius: 24px;
  background: #f3effa;
  box-shadow: 0 18px 44px rgba(35,28,59,.12);
}
.qz-question-image img { border-radius: inherit; }
.qz-image-missing {
  margin: 0 0 28px;
  padding: 24px;
  border: 0;
  border-radius: 22px;
  background: linear-gradient(135deg, #f0eaff, #fff0e7);
  color: #60566c;
  font-weight: 750;
}

.qz-answer-grid { gap: 12px; }
.qz-answer {
  position: relative;
  min-height: 78px;
  padding: 16px 18px;
  border: 1px solid rgba(40,31,67,.11);
  border-radius: 18px;
  background: #fcfbfd;
  box-shadow: 0 6px 20px rgba(31,24,52,.03);
  color: #2d2738;
  font-size: .91rem;
  font-weight: 800;
}
.qz-answer:hover:not(:disabled) {
  transform: translateY(-3px);
  border-color: rgba(116,81,255,.28);
  background: #fff;
  box-shadow: 0 16px 34px rgba(31,24,52,.08);
}
.qz-answer-letter {
  flex-basis: 40px;
  width: 40px;
  height: 40px;
  border-radius: 13px;
  background: #eee9f7;
  color: #655c72;
}
.qz-answer.is-correct {
  border-color: rgba(116,81,255,.34);
  background: #f2eeff;
  color: #4937a7;
}
.qz-answer.is-correct .qz-answer-letter { background: var(--qz-purple); }
.qz-answer.is-wrong { border-color: rgba(255,109,141,.35); background: #fff0f3; }
.qz-answer.is-wrong .qz-answer-letter { background: var(--qz-rose); }

.qz-correction {
  margin-top: 22px;
  padding: 19px 21px;
  border: 0;
  border-radius: 18px;
  background: #f2eeff;
  box-shadow: inset 4px 0 0 var(--qz-purple);
}
.qz-correction-status.is-correct { color: #5d43cc; }
.qz-correction-status.is-wrong { color: #bd3e62; }

/* BLOCS VALEUR / CARTES ------------------------------------------------ */
.qz-use-section,
.qz-related,
.qz-filter-section,
.qz-listing-section,
.qz-value-section { margin-top: 72px; }

.qz-value-grid { gap: 14px; }
.qz-value-grid article {
  position: relative;
  overflow: hidden;
  min-height: 190px;
  padding: 24px;
  border: 0;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--qz-shadow-sm);
}
.qz-value-grid article:nth-child(1) { background: #f0ebff; }
.qz-value-grid article:nth-child(2) { background: #ffefe7; }
.qz-value-grid article:nth-child(3) { background: #fff4ce; }
.qz-value-grid article:nth-child(4) { background: #ffeef3; }
.qz-value-grid article > span { font-size: 2rem; }
.qz-value-grid h3,
.qz-value-section .qz-value-grid article strong {
  margin: 14px 0 8px;
  color: #211b2d;
  font-size: 1.07rem;
  letter-spacing: -.015em;
}
.qz-value-grid p { color: #696172; }

.qz-card-grid { gap: 18px; }
.qz-card {
  border: 0;
  border-radius: 25px;
  background: #fff;
  box-shadow: 0 13px 40px rgba(35,28,59,.08);
}
.qz-card:hover {
  transform: translateY(-7px);
  border-color: transparent;
  box-shadow: 0 28px 60px rgba(35,28,59,.15);
}
.qz-card-media { height: 220px; background: #ede8f7; }
.qz-card-media img { transition: transform .45s ease; }
.qz-card:hover .qz-card-media img { transform: scale(1.035); }
.qz-card-placeholder {
  background:
    radial-gradient(circle at 25% 25%, rgba(155,124,255,.4), transparent 28%),
    radial-gradient(circle at 78% 76%, rgba(255,122,69,.34), transparent 32%),
    linear-gradient(135deg, #2a2340, #181426);
  color: rgba(255,255,255,.88);
}
.qz-card-format {
  left: 14px;
  top: 14px;
  padding: 7px 10px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(23,20,38,.74);
  font-size: .64rem;
  letter-spacing: .08em;
}
.qz-card-body { gap: 10px; padding: 19px 20px 22px; }
.qz-card-tags { gap: 7px; }
.qz-card-tags span {
  padding: 6px 8px;
  background: #f4f0f8;
  color: #71697c;
  font-size: .64rem;
}
.qz-card-body h3 {
  margin-top: 2px;
  color: #211b2d;
  font-size: 1.13rem;
  letter-spacing: -.02em;
}
.qz-card-body p { color: #746d7e; line-height: 1.55; }
.qz-card-cta { margin-top: 4px; color: #6849e6; }

/* HUBS THÈME / ÂGE ----------------------------------------------------- */
.qz-theme-hero,
.qz-age-hero {
  margin-bottom: 56px;
  padding: clamp(38px, 6vw, 68px);
}
.qz-theme-hero { grid-template-columns: minmax(0,1.04fr) minmax(360px,.96fr); gap: 56px; }
.qz-theme-hero-media { max-width: 570px; justify-self: end; }

.qz-age-pills { gap: 12px; }
.qz-age-pills a,
.qz-filter-link {
  min-height: 48px;
  align-items: center;
  padding: 11px 17px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #3d3549;
  box-shadow: 0 8px 25px rgba(35,28,59,.07);
  font-size: .78rem;
  font-weight: 900;
}
.qz-age-pills a:hover,
.qz-age-pills a:focus,
.qz-filter-link:hover {
  transform: translateY(-2px);
  background: var(--qz-night);
  color: #fff;
}

.qz-bottom-nav {
  margin-top: 66px;
  padding-top: 30px;
  border-top: 1px solid rgba(38,30,63,.09);
}
.qz-bottom-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  background: #fff;
  color: #4a4257;
  box-shadow: 0 7px 20px rgba(35,28,59,.05);
}
.qz-bottom-nav a:hover { background: var(--qz-night); color: #fff; }

/* BLOC INSÉRÉ DANS /QUIZZ --------------------------------------------- */
#hub-quiz .qz-home-block {
  position: relative;
  overflow: hidden;
  margin: 38px 0 54px;
  padding: clamp(28px, 4vw, 46px);
  border: 0;
  border-radius: 30px;
  background:
    radial-gradient(circle at 90% 8%, rgba(255,122,69,.22), transparent 25%),
    radial-gradient(circle at 5% 95%, rgba(155,124,255,.25), transparent 28%),
    #1a1629;
  box-shadow: var(--qz-shadow-xl);
}
#hub-quiz .qz-home-head { margin-bottom: 28px; }
#hub-quiz .qz-home-head h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.6rem); letter-spacing: -.035em; }
#hub-quiz .qz-home-head p { color: rgba(255,255,255,.66); }
#hub-quiz .qz-home-count { background: rgba(255,255,255,.10); color: var(--qz-yellow); }
#hub-quiz .qz-home-themes { gap: 13px; }
#hub-quiz .qz-home-theme {
  border: 0;
  border-radius: 19px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 16px 36px rgba(0,0,0,.16);
}
#hub-quiz .qz-home-theme:hover { transform: translateY(-5px); box-shadow: 0 22px 46px rgba(0,0,0,.22); }
#hub-quiz .qz-home-theme-media { height: 122px; background: #29223d; }
#hub-quiz .qz-home-theme-body { gap: 5px; padding: 13px; }
#hub-quiz .qz-home-theme-body strong { color: #241e30; font-size: .9rem; }

/* RÉSULTAT ------------------------------------------------------------- */
.qz-result {
  border-radius: 28px;
  background:
    radial-gradient(circle at 20% 0, rgba(155,124,255,.22), transparent 28%),
    #1b172b;
  color: #fff;
}
.qz-result h2 { color: #fff; }
.qz-result-score { color: var(--qz-yellow); }
.qz-result-note { color: rgba(255,255,255,.66); }
.qz-ranking-row { border: 0; background: rgba(255,255,255,.08); }
.qz-ranking-row:first-child { background: var(--qz-yellow); color: #2a210e; }

/* RESPONSIVE ----------------------------------------------------------- */
@media (max-width: 1080px) {
  .qz-hero { grid-template-columns: 1fr 430px; min-height: 520px; }
  .qz-hero h1 { font-size: clamp(2.75rem, 6vw, 4.6rem); }
  .qz-mode-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .qz-theme-hero { gap: 36px; }
}

@media (max-width: 880px) {
  .qz-shell { width: min(100% - 26px, 1240px); }
  .qz-hero,
  .qz-theme-hero { grid-template-columns: 1fr; min-height: 0; }
  .qz-hero-media,
  .qz-theme-hero-media { max-width: 650px; width: 100%; justify-self: stretch; transform: none; }
  .qz-section-heading { grid-template-columns: 1fr; gap: 12px; }
  .qz-section-heading p { max-width: 650px; }
  .qz-card-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 620px) {
  .qz-page { background: #f8f5f0; }
  .qz-page::before { display: none; }
  .qz-shell { width: min(100% - 18px, 1240px); padding-top: 12px; }
  .qz-hero,
  .qz-theme-hero,
  .qz-age-hero {
    margin-bottom: 34px;
    padding: 27px 21px 25px;
    border-radius: 25px;
  }
  .qz-hero { gap: 30px; }
  .qz-hero h1,
  .qz-theme-hero-copy h1,
  .qz-age-hero h1 {
    font-size: clamp(2.35rem, 12vw, 3.4rem);
    line-height: .96;
  }
  .qz-hero-media img,
  .qz-theme-hero-media img { border-width: 5px; border-radius: 21px; }
  .qz-hero-media::before,
  .qz-theme-hero-media::before { inset: 10px -7px -8px 10px; border-radius: 23px; }
  .qz-meta-row { gap: 6px; }
  .qz-chip,
  .qz-theme-hero .qz-meta-row span,
  .qz-age-hero .qz-meta-row span { min-height: 32px; padding: 7px 9px; font-size: .69rem; }
  .qz-hero-actions .qz-btn { width: 100%; }
  .qz-app { margin-top: 28px; padding: 22px 15px; border-radius: 25px; }
  .qz-section-heading h2 { font-size: 2.15rem; }
  .qz-mode-grid,
  .qz-card-grid,
  .qz-value-grid { grid-template-columns: 1fr; }
  .qz-mode { min-height: 175px; }
  .qz-question-card { padding: 25px 18px 24px 22px; border-radius: 23px; }
  .qz-question-text { font-size: 1.9rem; }
  .qz-answer-grid { grid-template-columns: 1fr; }
  .qz-answer { min-height: 70px; }
  .qz-card-media { height: 205px; }
  .qz-use-section,
  .qz-related,
  .qz-filter-section,
  .qz-listing-section,
  .qz-value-section { margin-top: 48px; }
  #hub-quiz .qz-home-block { border-radius: 24px; }
  #hub-quiz .qz-home-themes { grid-template-columns: 1fr 1fr; gap: 9px; }
  #hub-quiz .qz-home-theme-media { height: 100px; }
}

@media print {
  .qz-page { background: #fff !important; }
  .qz-page::before,
  .qz-hero::before,
  .qz-hero::after { display: none !important; }
  .qz-hero { color: #000 !important; background: #fff !important; box-shadow: none !important; }
  .qz-hero h1, .qz-intro { color: #000 !important; }
}
.qz-mode-icon svg { width: 29px; height: 29px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.qz-mode.is-selected .qz-mode-icon svg { color: #fff; }
.qz-chip b { font-weight: 950; color: var(--qz-yellow); }


/* ============================================================
 * HUB PRINCIPAL /quiz-enfants-famille
 * ============================================================ */
.qz-hub-hero {
  position: relative;
  overflow: hidden;
}
.qz-hub-visual {
  position: relative;
  min-height: 390px;
  z-index: 2;
}
.qz-hub-visual-card {
  position: absolute;
  overflow: hidden;
  width: 58%;
  aspect-ratio: 3 / 2;
  border: 6px solid rgba(255,255,255,.96);
  border-radius: 28px;
  background: #2d2440;
  box-shadow: 0 26px 65px rgba(0,0,0,.32);
}
.qz-hub-visual-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.qz-hub-visual-card > span {
  display:flex;
  width:100%;
  height:100%;
  align-items:center;
  justify-content:center;
  font-size:5rem;
  font-weight:950;
  color:#fff;
}
.qz-hub-visual-card-0 { top: 2%; left: 6%; transform: rotate(-7deg); }
.qz-hub-visual-card-1 { top: 7%; right: 0; transform: rotate(7deg); }
.qz-hub-visual-card-2 { bottom: 2%; left: 0; transform: rotate(5deg); }
.qz-hub-visual-card-3 { bottom: 0; right: 8%; transform: rotate(-5deg); }

.qz-theme-card-grid .qz-card-media {
  aspect-ratio: 3 / 2;
}
.qz-age-pills-large a {
  min-height: 48px;
  padding: 12px 17px;
  font-size: .92rem;
}

@media (max-width: 900px) {
  .qz-hub-visual {
    min-height: 330px;
    max-width: 660px;
  }
}
@media (max-width: 640px) {
  .qz-hub-visual {
    min-height: 250px;
  }
  .qz-hub-visual-card {
    width: 62%;
    border-width: 4px;
    border-radius: 20px;
  }
}

/* ======================================================================
 * V6 — HUB /quiz-enfants-famille : stabilisation visuelle + AdSense
 * Ces règles sont volontairement SCOPÉES à .qz-index-page afin de ne pas
 * modifier l'affichage des pages de jeu, thème ou âge.
 * ====================================================================== */

.qz-index-page {
  overflow-x: clip;
  background: #f8f7fb;
}

.qz-index-page .qz-shell {
  width: min(1160px, calc(100% - 32px));
  padding-top: 22px;
  padding-bottom: 56px;
}

.qz-index-page .qz-hub-hero {
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, .88fr);
  gap: clamp(28px, 4vw, 54px);
  min-height: 0;
  margin: 0 0 38px;
  padding: clamp(30px, 4.6vw, 52px);
  border-radius: 28px;
}

.qz-index-page .qz-hub-hero h1 {
  max-width: 720px;
  margin: 11px 0 17px;
  font-size: clamp(2.45rem, 5vw, 4.15rem);
  line-height: .97;
}

.qz-index-page .qz-hub-hero .qz-intro {
  max-width: 660px;
  margin: 0;
  font-size: 1rem;
  line-height: 1.65;
}

.qz-index-page .qz-meta-row {
  margin-top: 22px;
}

.qz-index-page .qz-hero-actions {
  margin-top: 24px;
}

/* Hero visuel : jamais de gros placeholders avec une lettre seule. */
.qz-index-page .qz-hub-visual {
  min-height: 310px;
}

.qz-index-page .qz-hub-visual-card {
  width: 54%;
  border-width: 5px;
  border-radius: 22px;
}

.qz-index-page .qz-hub-fallback {
  position: absolute;
  inset: 18px 0 18px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 25px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 25px;
  background:
    radial-gradient(circle at 88% 12%, rgba(255,196,76,.18), transparent 30%),
    radial-gradient(circle at 8% 88%, rgba(155,124,255,.23), transparent 34%),
    rgba(255,255,255,.075);
  box-shadow: 0 24px 58px rgba(0,0,0,.20);
  backdrop-filter: blur(10px);
}

.qz-index-page .qz-hub-fallback-head span {
  display: block;
  margin-bottom: 8px;
  color: rgba(255,255,255,.62);
  font-size: .73rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.qz-index-page .qz-hub-fallback-head strong {
  display: block;
  max-width: 320px;
  color: #fff;
  font-size: clamp(1.45rem, 2.6vw, 2.25rem);
  line-height: 1.05;
}

.qz-index-page .qz-hub-fallback-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 9px;
}

.qz-index-page .qz-hub-fallback-grid span {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 9px 11px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 13px;
  background: rgba(255,255,255,.075);
  color: rgba(255,255,255,.88);
  font-size: .82rem;
  font-weight: 800;
}

.qz-index-page .qz-hub-fallback-grid b {
  display: grid;
  flex: 0 0 27px;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 9px;
  background: #ffc94d;
  color: #322414;
  font-size: .72rem;
}

/* Sections plus compactes : la V5 avait des marges héritées trop grandes. */
.qz-index-page .qz-filter-section,
.qz-index-page .qz-listing-section,
.qz-index-page .qz-value-section {
  margin-top: 44px;
}

.qz-index-page .qz-section-heading {
  grid-template-columns: minmax(0, 1fr) minmax(220px, .48fr);
  gap: 22px;
  margin-bottom: 22px;
}

.qz-index-page .qz-section-heading h2 {
  max-width: 670px;
  font-size: clamp(1.75rem, 3.4vw, 2.7rem);
  line-height: 1.02;
}

.qz-index-page .qz-section-heading p {
  max-width: 430px;
  font-size: .88rem;
}

.qz-index-page .qz-age-pills-large {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.qz-index-page .qz-age-pills-large a {
  min-height: 42px;
  padding: 9px 14px;
  font-size: .82rem;
}

/* Grille du hub : compacte, stable, sans cartes géantes. */
.qz-index-page .qz-theme-card-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
}

.qz-index-page .qz-theme-card {
  min-width: 0;
  border-radius: 19px;
  box-shadow: 0 10px 28px rgba(35,28,59,.07);
}

.qz-index-page .qz-theme-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 38px rgba(35,28,59,.12);
}

.qz-index-page .qz-theme-card .qz-card-media {
  position: relative; /* indispensable pour .qz-card-format */
  height: auto;
  aspect-ratio: 16 / 10;
}

.qz-index-page .qz-theme-card .qz-card-format {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
}

.qz-index-page .qz-theme-card .qz-card-body {
  gap: 7px;
  padding: 15px 16px 17px;
}

.qz-index-page .qz-theme-card .qz-card-body h3 {
  margin: 1px 0 0;
  font-size: 1.02rem;
  line-height: 1.22;
}

.qz-index-page .qz-theme-card .qz-card-body p {
  display: -webkit-box;
  min-height: 2.8em;
  margin: 0;
  overflow: hidden;
  color: #746d7e;
  font-size: .80rem;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.qz-index-page .qz-theme-card .qz-card-tags span {
  padding: 5px 7px;
  font-size: .59rem;
}

.qz-index-page .qz-theme-card .qz-card-cta {
  margin-top: 2px;
  font-size: .78rem;
}

.qz-index-page .qz-value-grid {
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 12px;
}

.qz-index-page .qz-value-grid article {
  min-height: 138px;
  padding: 19px;
  border-radius: 19px;
}

.qz-index-page .qz-value-section .qz-value-grid article strong {
  margin: 0 0 7px;
  font-size: 1rem;
}

.qz-index-page .qz-value-grid p {
  font-size: .80rem;
  line-height: 1.48;
}

/* AdSense : blocs hors des grilles, largeur stable et aucun débordement. */
.qz-index-page .qz-ad-slot {
  clear: both;
  width: 100%;
  max-width: 100%;
  min-height: 118px;
  margin: 38px 0 8px;
  overflow: hidden;
  contain: layout paint;
}

.qz-index-page .qz-ad-slot-inner {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  text-align: center;
}

.qz-index-page .qz-ad-slot .adsbygoogle,
.qz-index-page .qz-ad-slot ins.adsbygoogle {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.qz-index-page .qz-ad-slot iframe {
  max-width: 100% !important;
}

.qz-index-page .qz-ad-slot-secondary {
  margin-top: 42px;
  margin-bottom: 0;
}

.qz-index-page .qz-bottom-nav {
  margin-top: 48px;
}

@media (max-width: 1020px) {
  .qz-index-page .qz-hub-hero {
    grid-template-columns: minmax(0, 1fr) minmax(280px, .72fr);
  }

  .qz-index-page .qz-theme-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 800px) {
  .qz-index-page .qz-hub-hero {
    grid-template-columns: 1fr;
    padding: 30px;
  }

  .qz-index-page .qz-hub-visual {
    min-height: 240px;
    max-width: 620px;
    width: 100%;
  }

  .qz-index-page .qz-hub-fallback {
    inset: 0;
  }

  .qz-index-page .qz-section-heading {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .qz-index-page .qz-section-heading p {
    max-width: 680px;
  }

  .qz-index-page .qz-theme-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .qz-index-page .qz-value-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .qz-index-page .qz-shell {
    width: calc(100% - 20px);
  }

  .qz-index-page .qz-hub-hero {
    gap: 23px;
    margin-bottom: 30px;
    padding: 23px 19px;
    border-radius: 20px;
  }

  .qz-index-page .qz-hub-hero h1 {
    font-size: clamp(2rem, 12vw, 2.85rem);
  }

  .qz-index-page .qz-hub-visual {
    min-height: 205px;
  }

  .qz-index-page .qz-hub-fallback {
    padding: 18px;
    border-radius: 18px;
  }

  .qz-index-page .qz-hub-fallback-grid {
    gap: 7px;
  }

  .qz-index-page .qz-hub-fallback-grid span {
    min-height: 42px;
    padding: 7px 8px;
    font-size: .72rem;
  }

  .qz-index-page .qz-filter-section,
  .qz-index-page .qz-listing-section,
  .qz-index-page .qz-value-section {
    margin-top: 34px;
  }

  .qz-index-page .qz-section-heading h2 {
    font-size: 1.75rem;
  }

  .qz-index-page .qz-theme-card-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .qz-index-page .qz-theme-card {
    display: grid;
    grid-template-columns: 116px minmax(0,1fr);
  }

  .qz-index-page .qz-theme-card .qz-card-link {
    display: contents;
  }

  .qz-index-page .qz-theme-card .qz-card-media {
    height: 100%;
    min-height: 142px;
    aspect-ratio: auto;
  }

  .qz-index-page .qz-theme-card .qz-card-body {
    padding: 13px 13px 14px;
  }

  .qz-index-page .qz-theme-card .qz-card-tags span:nth-child(2) {
    display: none;
  }

  .qz-index-page .qz-value-grid {
    grid-template-columns: 1fr;
  }

  .qz-index-page .qz-value-grid article {
    min-height: 0;
  }

  .qz-index-page .qz-ad-slot {
    min-height: 100px;
    margin-top: 30px;
  }
}
