/* Quizothèque — HUB V7
 * Feuille volontairement isolée : aucune classe qz-* afin d'éviter les collisions.
 */
#quiz-home,
#quiz-home * { box-sizing: border-box; }

#quiz-home {
  --ink: #17152a;
  --muted: #6f6878;
  --line: #e9e4ea;
  --paper: #fbf9f6;
  --card: #ffffff;
  --navy: #211b35;
  --navy-2: #302448;
  --violet: #7258dc;
  --orange: #f59a2b;
  --cream: #fff5e7;
  --shadow: 0 20px 55px rgba(35, 27, 51, .10);
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

#quiz-home a { color: inherit; }
#quiz-home img { display: block; max-width: 100%; }

.qzh-wrap {
  width: min(1180px, calc(100% - 34px));
  margin: 0 auto;
  padding: 24px 0 70px;
}

.qzh-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 18px 0;
  color: #7b7381;
  font-size: .82rem;
}
.qzh-breadcrumb a { text-decoration: none; }
.qzh-breadcrumb a:hover { text-decoration: underline; }

.qzh-preview {
  margin: 0 0 14px;
  padding: 10px 13px;
  border: 1px solid #f4c36e;
  border-radius: 12px;
  background: #fff8e7;
  color: #7d5410;
  font-size: .82rem;
  font-weight: 750;
}

.qzh-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(340px, .82fr);
  gap: 50px;
  overflow: hidden;
  padding: clamp(34px, 5vw, 64px);
  border-radius: 30px;
  background:
    radial-gradient(circle at 12% 10%, rgba(121, 91, 222, .28), transparent 31%),
    radial-gradient(circle at 93% 82%, rgba(245, 154, 43, .20), transparent 29%),
    linear-gradient(135deg, #201a34 0%, #2b213e 55%, #342636 100%);
  box-shadow: 0 26px 70px rgba(31, 24, 48, .18);
  color: #fff;
}
.qzh-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 340px;
  height: 340px;
  top: -180px;
  right: 25%;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 50%;
}

.qzh-eyebrow {
  display: inline-block;
  margin-bottom: 13px;
  color: #ffc365;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .10em;
  text-transform: uppercase;
}
.qzh-eyebrow-dark { color: #b76b10; }

.qzh-hero h1 {
  max-width: 760px;
  margin: 0;
  color: #fff;
  font-size: clamp(2.45rem, 5.2vw, 4.65rem);
  font-weight: 820;
  letter-spacing: -.045em;
  line-height: .98;
}
.qzh-lead {
  max-width: 720px;
  margin: 22px 0 0;
  color: rgba(255,255,255,.76);
  font-size: clamp(.98rem, 1.55vw, 1.12rem);
  line-height: 1.7;
}

.qzh-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 24px;
}
.qzh-facts span {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 999px;
  background: rgba(255,255,255,.075);
  color: rgba(255,255,255,.78);
  font-size: .78rem;
}
.qzh-facts strong { color: #fff; font-size: .9rem; }

.qzh-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}
.qzh-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 17px;
  border-radius: 12px;
  font-size: .86rem;
  font-weight: 850;
  text-decoration: none;
}
.qzh-button-primary { background: #ffb64b; color: #302214 !important; }
.qzh-button-primary:hover { background: #ffc66b; }
.qzh-button-secondary {
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
  color: #fff !important;
}
.qzh-button-secondary:hover { background: rgba(255,255,255,.13); }

.qzh-hero-panel {
  align-self: center;
  padding: 22px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 24px;
  background: rgba(255,255,255,.07);
  box-shadow: 0 22px 52px rgba(0,0,0,.16);
  backdrop-filter: blur(10px);
}
.qzh-panel-head span {
  display: block;
  color: rgba(255,255,255,.55);
  font-size: .69rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.qzh-panel-head strong {
  display: block;
  margin-top: 4px;
  color: #fff;
  font-size: 1.4rem;
}
.qzh-mode-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 9px;
  margin-top: 18px;
}
.qzh-mode-grid > div {
  min-height: 112px;
  padding: 15px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 16px;
  background: rgba(20,16,31,.23);
}
.qzh-mode-grid span {
  display: block;
  color: #ffc365;
  font-size: .66rem;
  font-weight: 900;
}
.qzh-mode-grid strong {
  display: block;
  margin-top: 12px;
  color: #fff;
  font-size: .98rem;
}
.qzh-mode-grid small {
  display: block;
  margin-top: 3px;
  color: rgba(255,255,255,.55);
  font-size: .72rem;
  line-height: 1.35;
}

.qzh-section { margin-top: 58px; }
.qzh-section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, .44fr);
  gap: 34px;
  align-items: end;
  margin-bottom: 22px;
}
.qzh-section-head-single { grid-template-columns: 1fr; }
.qzh-section-head h2 {
  max-width: 800px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 3.15rem);
  font-weight: 760;
  letter-spacing: -.035em;
  line-height: 1.02;
}
.qzh-section-head > p {
  margin: 0 0 3px;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.65;
}

.qzh-age-links {
  display: grid;
  grid-template-columns: repeat(6, minmax(0,1fr));
  gap: 10px;
}
.qzh-age-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 62px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(45,35,57,.04);
  font-size: .82rem;
  font-weight: 850;
  text-decoration: none;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.qzh-age-links a:hover {
  transform: translateY(-2px);
  border-color: #d4c3ed;
  box-shadow: 0 13px 26px rgba(45,35,57,.08);
}
.qzh-age-links b { color: #a7681e; }

.qzh-ad {
  clear: both;
  width: 100%;
  max-width: 100%;
  min-height: 100px;
  margin: 42px auto 4px;
  overflow: hidden;
  text-align: center;
}
.qzh-ad .adsbygoogle,
.qzh-ad ins.adsbygoogle {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  margin-inline: auto !important;
}
.qzh-ad iframe { max-width: 100% !important; }

.qzh-theme-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 16px;
}
.qzh-theme-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 21px;
  background: var(--card);
  box-shadow: 0 12px 34px rgba(42, 33, 54, .055);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.qzh-theme-card:hover {
  transform: translateY(-4px);
  border-color: #d8c9e9;
  box-shadow: 0 20px 43px rgba(42, 33, 54, .10);
}
.qzh-theme-link { display: block; height: 100%; text-decoration: none; }
.qzh-theme-media {
  margin: 0;
  overflow: hidden;
  aspect-ratio: 16 / 8.2;
  background: #eee8f1;
}
.qzh-theme-media img { width: 100%; height: 100%; object-fit: cover; }
.qzh-theme-body { padding: 19px 20px 20px; }
.qzh-theme-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
  color: #867e8b;
  font-size: .72rem;
  font-weight: 800;
}
.qzh-theme-topline b { color: #b56f1f; font-size: .9rem; }
.qzh-theme-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.28rem;
  font-weight: 780;
  letter-spacing: -.02em;
  line-height: 1.2;
}
.qzh-theme-card p {
  display: -webkit-box;
  min-height: 3.05em;
  margin: 10px 0 0;
  overflow: hidden;
  color: var(--muted);
  font-size: .84rem;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.qzh-theme-cta {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  margin-top: 17px;
  color: #4f3b76;
  font-size: .79rem;
  font-weight: 900;
}
.qzh-theme-card.no-image .qzh-theme-body {
  display: flex;
  min-height: 225px;
  flex-direction: column;
}
.qzh-theme-card.no-image .qzh-theme-cta { margin-top: auto; padding-top: 17px; }

.qzh-guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 14px;
}
.qzh-guide-grid article {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
}
.qzh-guide-grid article > span {
  color: #b56f1f;
  font-size: .72rem;
  font-weight: 950;
}
.qzh-guide-grid h3 {
  margin: 22px 0 8px;
  font-size: 1.05rem;
  letter-spacing: -.01em;
}
.qzh-guide-grid p {
  margin: 0;
  color: var(--muted);
  font-size: .84rem;
  line-height: 1.65;
}

.qzh-feature-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
}
.qzh-feature-row > div {
  min-height: 125px;
  padding: 22px;
  border-right: 1px solid var(--line);
}
.qzh-feature-row > div:last-child { border-right: 0; }
.qzh-feature-row strong { display: block; font-size: .98rem; }
.qzh-feature-row span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: .79rem;
  line-height: 1.5;
}

.qzh-related {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin-top: 56px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  color: #625a68;
  font-size: .82rem;
}
.qzh-related > span {
  color: #9a929d;
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.qzh-related a { font-weight: 800; text-decoration: none; }
.qzh-related a:hover { text-decoration: underline; }

@media (max-width: 1040px) {
  .qzh-hero { grid-template-columns: 1fr minmax(310px, .7fr); gap: 30px; }
  .qzh-age-links { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .qzh-theme-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 780px) {
  .qzh-wrap { width: min(100% - 24px, 1180px); }
  .qzh-hero { grid-template-columns: 1fr; padding: 32px 26px; border-radius: 24px; }
  .qzh-hero-panel { max-width: 600px; }
  .qzh-section-head { grid-template-columns: 1fr; gap: 9px; }
  .qzh-section-head > p { max-width: 660px; }
  .qzh-guide-grid { grid-template-columns: 1fr; }
  .qzh-feature-row { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .qzh-feature-row > div:nth-child(2) { border-right: 0; }
  .qzh-feature-row > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 540px) {
  .qzh-wrap { width: calc(100% - 18px); padding-top: 12px; }
  .qzh-breadcrumb { margin: 12px 3px; }
  .qzh-hero { padding: 25px 19px; border-radius: 20px; }
  .qzh-hero h1 { font-size: clamp(2.15rem, 12vw, 3.15rem); }
  .qzh-lead { font-size: .92rem; }
  .qzh-actions { display: grid; grid-template-columns: 1fr; }
  .qzh-button { width: 100%; }
  .qzh-hero-panel { padding: 15px; border-radius: 18px; }
  .qzh-mode-grid > div { min-height: 96px; padding: 12px; }
  .qzh-section { margin-top: 42px; }
  .qzh-section-head h2 { font-size: 2rem; }
  .qzh-age-links { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .qzh-age-links a { min-height: 55px; padding: 11px; }
  .qzh-theme-grid { grid-template-columns: 1fr; gap: 12px; }
  .qzh-theme-card.no-image .qzh-theme-body { min-height: 190px; }
  .qzh-feature-row { grid-template-columns: 1fr; }
  .qzh-feature-row > div,
  .qzh-feature-row > div:nth-child(2) { border-right: 0; border-bottom: 1px solid var(--line); }
  .qzh-feature-row > div:last-child { border-bottom: 0; }
  .qzh-ad { min-height: 90px; margin-top: 30px; }
}
