/* Quiz /quizz : complète style.css (couleurs, rayons et police du design 2026, classes fb-*). */

.qz-body {
  margin: 0;
  min-height: 100vh;
  background: #F4F6FA;
  font-family: 'Open Sans', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--c-text);
}

.qz {
  max-width: 560px;
  margin: 0 auto;
  padding: 22px 16px 48px;
  min-height: calc(100vh - 64px);
  box-sizing: border-box;
}

/* En-tête : barre blanche pleine largeur, comme le header du site */
.qz-header {
  background: #fff;
  border-bottom: 1px solid var(--c-border);
  box-shadow: 0 1px 4px rgba(30, 45, 74, 0.05);
}
.qz-header-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 16px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.qz-logo img { height: 32px; width: auto; display: block; }
.qz-header-tag {
  padding: 4px 12px;
  border-radius: 999px;
  background: #FBF3E4;
  color: var(--c-accent-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.qz-body footer { margin-top: 0; }

/* ---------- Progression ---------- */
.qz-progress { margin-bottom: 22px; }
.qz-progress[hidden] { display: none; }
.qz-progress-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 28px;
  margin-bottom: 8px;
}
.qz-progress-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--c-text-muted);
}
.qz-back {
  border: 0;
  background: none;
  padding: 4px 0;
  font: inherit;
  font-size: 14px;
  color: var(--c-text-muted);
  cursor: pointer;
}
.qz-back:hover { color: var(--c-primary); }
.qz-progress-bar {
  height: 8px;
  border-radius: 999px;
  background: #E1E5EE;
  overflow: hidden;
}
.qz-progress-bar span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: var(--c-accent);
  transition: width 0.35s ease;
}

/* ---------- Questions ---------- */
.qz-screen[hidden] { display: none; }
.qz-title {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  color: var(--c-primary);
  margin: 0 0 6px;
}
.qz-intro {
  text-align: center;
  font-size: 14px;
  color: var(--c-text-muted);
  margin: 0 0 22px;
}
.qz-question-title {
  font-size: 21px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  margin: 0 0 18px;
}
.qz-options { display: grid; gap: 10px; }
.qz-option {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 15px 16px;
  border: 1px solid var(--c-border);
  border-radius: 10px;
  background: var(--c-bg);
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  color: var(--c-text);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}
.qz-option:hover { border-color: var(--c-primary); box-shadow: 0 2px 8px rgba(44, 62, 102, 0.08); }
.qz-option:active { transform: scale(0.99); }
.qz-option.is-selected {
  border-color: var(--c-accent);
  box-shadow: 0 0 0 2px var(--c-accent) inset;
  background: #FFFBF3;
}
.qz-option-icon { font-size: 24px; line-height: 1; flex: 0 0 auto; }

/* ---------- Analyse ---------- */
.qz-analysis { text-align: center; padding-top: 30px; }
.qz-heart { width: 72px; height: 72px; margin: 0 auto 18px; }
.qz-heart svg { width: 100%; height: 100%; fill: #E0245E; animation: qz-pulse 1s ease-in-out infinite; }
@keyframes qz-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}
.qz-steps {
  list-style: none;
  margin: 10px auto 0;
  padding: 0;
  max-width: 360px;
  text-align: left;
}
.qz-steps li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  font-size: 15px;
  color: var(--c-text-muted);
  opacity: 0.35;
  transition: opacity 0.3s ease, color 0.3s ease;
}
.qz-steps li.is-active { opacity: 1; color: var(--c-text); }
.qz-step-check {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--c-border);
  box-sizing: border-box;
  transition: background 0.25s ease, border-color 0.25s ease;
}
.qz-steps li.is-active .qz-step-check { border-color: var(--c-accent); border-top-color: transparent; animation: qz-spin 0.8s linear infinite; }
.qz-steps li.is-done .qz-step-check {
  animation: none;
  border-color: #1E9E5A;
  background: #1E9E5A url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center / 12px no-repeat;
}
@keyframes qz-spin { to { transform: rotate(360deg); } }

/* ---------- Résultat ---------- */
.qz-result-title {
  font-size: 28px;
  font-weight: 800;
  text-align: center;
  color: var(--c-primary);
  margin: 6px 0 26px;
}
.qz-result-title em { font-style: italic; color: var(--c-accent-dark); }

.fb-card.qz-main-card {
  display: block;
  padding: 26px 20px 20px;
  border: 2px solid var(--c-accent);
  box-shadow: 0 6px 20px rgba(212, 162, 76, 0.18);
}
.qz-compat {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  padding: 4px 14px;
  border-radius: 999px;
  background: var(--c-accent);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.qz-main-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}
.qz-main-logo {
  flex: 0 0 46%;
  background: #F5F6F8;
  border-radius: 10px;
  padding: 14px;
  min-height: 70px;
}
.qz-main-logo img { max-height: 48px; }
.qz-main-score { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 4px; }
.qz-main-rating { font-size: 30px; font-weight: 800; color: var(--c-accent-dark); line-height: 1; }
.qz-main-rating-max { font-size: 14px; font-weight: 700; color: var(--c-text-muted); margin-right: 6px; }
.qz-main-score .qz-stars { flex-basis: 100%; margin-top: 4px; }
.qz-main-reviews { flex-basis: 100%; font-size: 12px; color: var(--c-text-muted); }
.qz-main-title { font-size: 20px; margin-bottom: 6px; }
.qz-main-hook { font-size: 15px; line-height: 1.5; color: #2A2A2A; margin: 0 0 16px; }
.fb-cta.qz-cta {
  box-sizing: border-box;
  font-size: 17px;
  padding: 15px 14px;
  border-radius: 8px;
}
.qz-benefits { margin: 14px 0 0; padding: 0; list-style: none; }
.qz-benefits li { font-size: 14px; }
.qz-benefits li::before {
  background-color: #DDF3E6;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231E9E5A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
}

.qz-box {
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: 10px;
  padding: 18px 20px;
  margin: 0 0 14px;
}
.qz-box-title { font-size: 16px; font-weight: 700; margin: 0 0 8px; color: var(--c-primary); }
.qz-box p { margin: 0; font-size: 15px; line-height: 1.55; }
.qz-stat { display: flex; align-items: center; gap: 14px; }
.qz-stat-value { font-size: 24px; font-weight: 800; color: var(--c-primary); white-space: nowrap; }
.qz-stat-label { font-size: 14px; color: var(--c-text-muted); line-height: 1.4; }
.qz-quote { margin: 0 0 14px; }
.qz-quote blockquote { margin: 8px 0 6px; padding: 0; border: 0; font-size: 15px; font-style: italic; line-height: 1.55; }
.qz-quote figcaption { font-size: 13px; font-weight: 700; color: var(--c-text-muted); }

.qz-alt-title { font-size: 17px; font-weight: 700; margin: 26px 0 12px; text-align: center; }
.qz-alts { display: grid; gap: 10px; }
.qz-alt {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: 10px;
  color: var(--c-text) !important;
  text-decoration: none !important;
  transition: border-color 0.15s ease;
}
.qz-alt:hover { border-color: var(--c-primary); }
.qz-alt-logo {
  flex: 0 0 96px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #F5F6F8;
  border-radius: 8px;
  padding: 6px;
  box-sizing: border-box;
}
.qz-alt-logo img { max-width: 100%; max-height: 36px; }
.qz-alt-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.qz-alt-name { font-weight: 700; font-size: 15px; }
.qz-alt-desc { font-size: 13px; color: var(--c-text-muted); line-height: 1.35; }
.qz-alt-rating { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--c-text-muted); }
.qz-alt-rating .fb-stars svg { width: 12px; height: 12px; }
.qz-alt-cta { flex: 0 0 auto; font-size: 13px; font-weight: 700; color: var(--c-primary); }

.qz-restart-wrap { text-align: center; margin: 22px 0 0; }
.qz-restart {
  border: 0;
  background: none;
  font: inherit;
  font-size: 12px;
  color: var(--c-text-muted);
  text-decoration: underline;
  cursor: pointer;
}
.qz-disclosure { text-align: center; font-size: 11px; color: var(--c-text-muted); margin: 10px 0 0; }

@media (max-width: 420px) {
  .qz-title { font-size: 23px; }
  .qz-question-title { font-size: 19px; }
  .qz-alt-cta { display: none; }
  .qz-main-head { flex-direction: column; align-items: stretch; text-align: center; }
  .qz-main-score { justify-content: center; }
  .qz-main-score .qz-stars { justify-content: center; display: flex; }
}

/* ---------- Desktop ---------- */
.qz-result-grid { display: block; }
@media (min-width: 768px) {
  .qz-body { background: linear-gradient(180deg, #EEF1F7 0%, #F6F7FA 100%); }
  .qz { max-width: 760px; padding-top: 40px; }
  .qz-progress { max-width: 560px; margin: 0 auto 26px; }
  /* Questions dans un panneau blanc, réponses sur 2 colonnes */
  .qz-question,
  .qz-analysis {
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: 14px;
    box-shadow: 0 8px 30px rgba(30, 45, 74, 0.07);
    padding: 40px 44px 44px;
  }
  .qz-title { font-size: 30px; }
  .qz-question-title { font-size: 24px; margin-bottom: 26px; }
  .qz-options { grid-template-columns: 1fr 1fr; gap: 14px; }
  .qz-option {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 10px;
    min-height: 120px;
    padding: 18px 16px;
  }
  .qz-option-icon { font-size: 34px; }
  .qz-option:hover { transform: translateY(-2px); }
  .qz-analysis { padding: 50px 44px; }
}
@media (min-width: 992px) {
  .qz { max-width: 1000px; }
  .qz-question, .qz-analysis, .qz-progress { max-width: 760px; margin-left: auto; margin-right: auto; }
  .qz-progress { max-width: 760px; }
  /* Résultat : carte principale à gauche, explications à droite, alternatives côte à côte */
  .qz-result-title { font-size: 34px; margin-bottom: 34px; }
  .qz-result-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 22px;
    align-items: start;
  }
  .fb-card.qz-main-card { margin-bottom: 0; padding: 32px 28px 26px; }
  .qz-alts { grid-template-columns: 1fr 1fr; gap: 14px; }
  .qz-alt-title { margin-top: 34px; }
}
@media (max-width: 480px) {
  .qz-header-inner { height: 56px; }
  .qz-logo img { height: 26px; }
  .qz-header-tag { display: none; }
}
