/* =====================================================================
   Senkys — Quiz cadeau
   Fond clair et variables de la charte du site (senkys.css) : blanc pour la
   scène, beige en dessous, encre pour le texte, bleu-violet --accent pour tout
   ce qui fait avancer (boutons, sélection, pastilles), VERT pour partir
   acheter chez la boutique — comme partout ailleurs sur le comparateur.
   Deux essais sombres (dégradé violet-rose, puis encre et laiton) ont été
   écartés : illisibles et hors charte. Ne pas y revenir.
   ===================================================================== */

/* ---------- Scène ---------- */
.qz-stage {
  position: relative; overflow: hidden;
  min-height: min(720px, calc(100vh - 120px));
  display: flex; align-items: center; justify-content: center;
  padding: 56px 20px 64px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  color: var(--ink);
}
.qz-shell { width: 100%; max-width: 860px; margin: 0 auto; }
.qz-screen[hidden] { display: none !important; }
.qz-enter { animation: qz-in .4s cubic-bezier(.2,.8,.2,1) both; }
@keyframes qz-in { from { opacity: 0; transform: translateY(14px); } }

/* ---------- Accroche ---------- */
.qz-intro { text-align: center; }
.qz-kicker {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px;
  padding: 6px 14px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
  font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
}
.qz-kicker-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(48,43,99,.45); animation: qz-ping 2.2s infinite; }
@keyframes qz-ping { 70% { box-shadow: 0 0 0 8px rgba(48,43,99,0); } 100% { box-shadow: 0 0 0 0 rgba(48,43,99,0); } }
.qz-h1 {
  margin: 0 0 18px; font-size: clamp(32px, 6vw, 56px); font-weight: 900;
  line-height: 1.05; letter-spacing: -.03em; color: var(--ink);
}
.qz-h1 em, .qz-res-title em { font-style: italic; color: var(--accent); }
.qz-lead { max-width: 58ch; margin: 0 auto 30px; font-size: 17px; line-height: 1.6; color: var(--ink-soft); }
.qz-lead b { color: var(--ink); }
.qz-lead a { color: var(--accent); }
.qz-reassure {
  list-style: none; margin: 26px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px;
  font-size: 13px; font-weight: 600; color: var(--ink-mute);
}
.qz-reassure li::before { content: "✓"; margin-right: 6px; color: var(--accent); font-weight: 900; }

/* ---------- Boutons ---------- */
.qz-go {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 18px 36px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--accent); color: #fff;
  font: inherit; font-size: 18px; font-weight: 800; letter-spacing: -.01em;
  box-shadow: 0 10px 26px rgba(48,43,99,.28);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, opacity .18s ease;
}
.qz-go:hover { transform: translateY(-2px); background: var(--accent-ink); box-shadow: 0 14px 32px rgba(48,43,99,.36); }
.qz-go:disabled { opacity: .4; cursor: default; transform: none; box-shadow: none; }
.qz-go::after {
  content: ""; position: absolute; top: 0; left: -60%; width: 45%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.3), transparent);
  transform: skewX(-20deg); animation: qz-shine 4.5s ease-in-out infinite;
}
.qz-go:disabled::after { display: none; }
@keyframes qz-shine { 0% { left: -60%; } 55%, 100% { left: 135%; } }
.qz-go svg { transition: transform .18s ease; }
.qz-go:hover svg { transform: translateX(4px); }
.qz-go-sm { padding: 14px 26px; font-size: 16px; }

.qz-skip, .qz-btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--border-strong); background: var(--surface);
  color: var(--accent); font: inherit; font-size: 14px; font-weight: 700;
  transition: background .15s ease, border-color .15s ease;
}
.qz-skip:hover, .qz-btn-ghost:hover { background: var(--accent-soft); border-color: var(--accent); }

/* ---------- Question ---------- */
.qz-q-top { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.qz-back {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--ink); cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.qz-back:hover { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.qz-count { font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-mute); }
.qz-bar { height: 4px; border-radius: 99px; background: var(--accent-soft); overflow: hidden; margin-bottom: 34px; }
.qz-bar i {
  display: block; height: 100%; width: 0; border-radius: 99px; background: var(--accent);
  transition: width .6s cubic-bezier(.2,.8,.2,1);
}
.qz-q-title { margin: 0 0 8px; font-size: clamp(26px, 4.4vw, 38px); font-weight: 900; letter-spacing: -.025em; line-height: 1.12; color: var(--ink); outline: none; }
.qz-q-sub { margin: 0 0 28px; font-size: 16px; color: var(--ink-soft); }

.qz-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.qz-opts-many { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.qz-opt {
  position: relative;
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  min-height: 116px; padding: 20px 18px; text-align: left; cursor: pointer;
  border: 1.5px solid var(--border); border-radius: 18px;
  background: var(--surface-alt); color: var(--ink); font: inherit;
  transition: transform .2s cubic-bezier(.2,.8,.2,1), background .2s ease, border-color .2s ease, box-shadow .2s ease;
  animation: qz-pop .45s cubic-bezier(.2,.8,.2,1) both;
  animation-delay: calc(var(--i, 0) * 50ms);
}
@keyframes qz-pop { from { opacity: 0; transform: translateY(12px); } }
.qz-opt:hover { transform: translateY(-3px); border-color: var(--accent); background: var(--surface); box-shadow: 0 12px 28px rgba(28,31,35,.08); }
.qz-opt:focus-visible { outline: 3px solid var(--accent-soft); outline-offset: 2px; border-color: var(--accent); }
.qz-opt.is-on {
  border-color: var(--accent); background: var(--accent-soft);
  box-shadow: 0 10px 24px rgba(48,43,99,.14);
}
.qz-opt-emoji { font-size: 32px; line-height: 1; margin-bottom: 4px; transition: transform .25s cubic-bezier(.3,1.6,.5,1); }
.qz-opt:hover .qz-opt-emoji, .qz-opt.is-on .qz-opt-emoji { transform: scale(1.1); }
.qz-opt-label { font-size: 17px; font-weight: 800; letter-spacing: -.01em; }
.qz-opt-hint { font-size: 13px; line-height: 1.4; color: var(--ink-mute); }
.qz-opt-check {
  position: absolute; top: 12px; right: 12px; display: grid; place-items: center;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--accent); color: #fff; transform: scale(0); transition: transform .25s cubic-bezier(.3,1.6,.5,1);
}
.qz-opt.is-on .qz-opt-check { transform: scale(1); }
.qz-nope { animation: qz-nope .35s ease; }
@keyframes qz-nope { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }

.qz-q-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 28px; }

/* ---------- Champ libre ---------- */
.qz-text { position: relative; }
.qz-textarea {
  width: 100%; min-height: 128px; resize: vertical; padding: 20px 22px 44px;
  border: 1.5px solid var(--border); border-radius: 18px;
  background: var(--surface-alt); color: var(--ink);
  font: inherit; font-size: 17px; line-height: 1.55;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.qz-textarea::placeholder { color: var(--ink-mute); }
.qz-textarea:focus { outline: none; border-color: var(--accent); background: var(--surface); box-shadow: 0 0 0 4px var(--accent-soft); }
.qz-textcount { position: absolute; right: 18px; bottom: 14px; font-size: 12px; color: var(--ink-mute); }
.qz-ai-badge {
  position: absolute; left: 18px; bottom: 12px;
  padding: 3px 10px; border-radius: 99px; font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
  background: var(--accent-soft); color: var(--accent);
}

/* ---------- Chargement ---------- */
.qz-loading { text-align: center; padding: 30px 0; }
.qz-orbit { position: relative; width: 140px; height: 140px; margin: 0 auto 28px; }
.qz-orbit i {
  position: absolute; inset: 0; border-radius: 50%;
  border: 3px solid transparent; border-top-color: var(--accent); border-right-color: var(--accent);
  animation: qz-spin 1.2s linear infinite;
}
.qz-orbit i:nth-child(2) { inset: 16px; border-top-color: var(--brass); border-right-color: transparent; border-left-color: var(--brass); animation-duration: 1.7s; animation-direction: reverse; }
.qz-orbit i:nth-child(3) { inset: 32px; border-top-color: var(--accent-soft); border-right-color: var(--accent-soft); animation-duration: 2.3s; }
.qz-orbit span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 38px; animation: qz-beat 1s ease-in-out infinite; }
@keyframes qz-spin { to { transform: rotate(360deg); } }
@keyframes qz-beat { 50% { transform: scale(1.12); } }
.qz-loading-count { margin: 0 0 8px; font-size: 19px; font-weight: 700; color: var(--ink-soft); }
.qz-loading-count b { font-size: 40px; font-weight: 900; font-variant-numeric: tabular-nums; margin-right: 6px; color: var(--accent); }
.qz-loading-phrase { margin: 0; color: var(--ink-mute); min-height: 1.5em; }

/* ---------- Résultats ---------- */
.qz-res-head { text-align: center; margin-bottom: 30px; }
.qz-res-title { margin: 0 0 12px; font-size: clamp(28px, 4.6vw, 42px); font-weight: 900; letter-spacing: -.03em; line-height: 1.1; color: var(--ink); outline: none; }
.qz-res-sub { color: var(--ink-soft); max-width: 56ch; margin: 0 auto 20px; }
.qz-res-sub a { color: var(--accent); }
.qz-summary {
  display: inline-flex; align-items: flex-start; gap: 10px; max-width: 640px; margin: 4px auto 0;
  padding: 12px 18px; border-radius: 14px; text-align: left;
  background: var(--accent-soft); color: var(--ink-soft);
  font-size: 15px; line-height: 1.5;
}
.qz-summary svg { flex: 0 0 auto; margin-top: 2px; color: var(--accent); }
.qz-summary b { color: var(--accent); }
.qz-note { margin: 14px auto 0; max-width: 56ch; font-size: 14px; color: var(--warn); }

.qz-hero {
  position: relative; display: grid; grid-template-columns: 1fr 1.1fr;
  border-radius: 22px; overflow: hidden;
  background: var(--surface); border: 1.5px solid var(--accent);
  box-shadow: 0 24px 56px rgba(48,43,99,.14);
  animation: qz-in .55s .08s cubic-bezier(.2,.8,.2,1) both;
}
.qz-hero-ribbon {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  padding: 6px 13px; border-radius: 99px; background: var(--accent); color: #fff;
  font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
}
.qz-hero-media { position: relative; display: block; background: #fff; min-height: 320px; border-right: 1px solid var(--border); }
.qz-hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 28px; transition: transform .5s ease; }
.qz-hero:hover .qz-hero-media img { transform: scale(1.04); }
.qz-off {
  position: absolute; right: 14px; top: 14px; padding: 5px 10px; border-radius: 10px;
  background: var(--brass); color: #fff; font-size: 13px; font-weight: 900;
}
.qz-hero-body { padding: 32px 30px; display: flex; flex-direction: column; justify-content: center; gap: 10px; background: var(--surface-alt); }
.qz-brand { margin: 0; font-size: 12px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.qz-hero-title { margin: 0; font-size: 23px; font-weight: 900; line-height: 1.22; letter-spacing: -.02em; }
.qz-hero-title a, .qz-card-title a { color: var(--ink); text-decoration: none; }
.qz-hero-title a:hover, .qz-card-title a:hover { color: var(--accent); }

/* Pastilles ✓ : bleu-violet du site. */
.qz-chips { list-style: none; margin: 2px 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.qz-chips li {
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 99px;
  background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 700;
}
.qz-price-row { display: flex; align-items: baseline; gap: 10px; margin-top: 6px; }
.qz-price { font-size: 36px; font-weight: 900; letter-spacing: -.03em; color: var(--ink); }
.qz-was { color: var(--ink-mute); font-size: 17px; }
.qz-where { margin: 0; font-size: 14px; color: var(--ink-soft); }
.qz-where b { color: var(--ink); }

/* Bouton d'achat : le vert du site, comme toutes les sorties vers une boutique. */
.qz-cta {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  margin-top: 10px; padding: 16px 26px; border-radius: 14px;
  background: var(--ok); color: #fff !important; text-decoration: none !important;
  font-size: 18px; font-weight: 800;
  box-shadow: 0 8px 20px rgba(47,111,74,.28);
  transition: transform .15s ease, background .15s ease;
}
.qz-cta:hover { transform: translateY(-2px); background: #265a3c; }
.qz-cta::after {
  content: ""; position: absolute; top: 0; left: -60%; width: 45%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.35), transparent);
  transform: skewX(-20deg); animation: qz-shine 3s ease-in-out infinite;
}
.qz-cta-sm { margin: 0; padding: 10px 16px; font-size: 14px; border-radius: 10px; box-shadow: none; }
.qz-cta-sm::after { animation-duration: 5s; }
.qz-more { font-size: 14px; font-weight: 700; color: var(--accent); text-align: center; }

.qz-alt-title { margin: 44px 0 16px; font-size: 20px; font-weight: 900; letter-spacing: -.01em; text-align: center; color: var(--ink); }
.qz-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.qz-card {
  display: flex; flex-direction: column; overflow: hidden; border-radius: 18px;
  background: var(--surface); border: 1px solid var(--border);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  animation: qz-pop .5s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(.2s + var(--i, 0) * 60ms);
}
.qz-card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 14px 30px rgba(28,31,35,.1); }
.qz-card-media { position: relative; display: block; aspect-ratio: 1; background: #fff; border-bottom: 1px solid var(--border); }
.qz-card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 14px; }
.qz-card-body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 14px 14px 16px; }
.qz-card-title { margin: 0; font-size: 14px; font-weight: 800; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.qz-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; }
.qz-card-price { font-size: 20px; font-weight: 900; color: var(--ink); }

.qz-res-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }

.qz-confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 5; }
.qz-confetti i {
  position: absolute; top: -12px; width: 8px; height: 13px; border-radius: 2px;
  animation: qz-fall 2s cubic-bezier(.25,.6,.4,1) forwards;
}
@keyframes qz-fall { to { transform: translate(var(--dx), 110vh) rotate(var(--rot)); opacity: .2; } }

/* ---------- Contenu SEO sous la scène ---------- */
.qz-seo { padding-top: 56px; padding-bottom: 64px; max-width: 900px; }
.qz-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 48px; }
.qz-step { padding: 22px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); }
/* Pastilles numérotées : bleu-violet du site. */
.qz-step span {
  display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 12px; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 900;
}
.qz-step h2 { margin: 0 0 6px; font-size: 17px; }
.qz-step p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--ink-soft); }
.qz-seo-h2 { margin: 36px 0 12px; font-size: 24px; letter-spacing: -.01em; }
.qz-seo p { line-height: 1.7; color: var(--ink-soft); }
.qz-faq { border-bottom: 1px solid var(--border); padding: 14px 0; }
.qz-faq summary { cursor: pointer; font-weight: 700; }
.qz-faq p { margin: 10px 0 0; }

/* ---------- Mobile ---------- */
@media (max-width: 720px) {
  .qz-stage { padding: 34px 16px 44px; align-items: flex-start; }
  .qz-opts, .qz-opts-many { grid-template-columns: 1fr 1fr; gap: 10px; }
  .qz-opt { min-height: 100px; padding: 16px 14px; border-radius: 16px; }
  .qz-opt-emoji { font-size: 28px; }
  .qz-opt-label { font-size: 15px; }
  .qz-opt-hint { display: none; }
  .qz-go { padding: 16px 28px; font-size: 17px; }
  .qz-q-actions .qz-go { width: 100%; justify-content: center; }
  .qz-hero { grid-template-columns: 1fr; }
  .qz-hero-media { min-height: 260px; border-right: 0; border-bottom: 1px solid var(--border); }
  .qz-hero-body { padding: 24px 20px; }
  .qz-hero-title { font-size: 20px; }
  .qz-price { font-size: 30px; }
  .qz-cta { width: 100%; }
  .qz-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .qz-card-foot { flex-direction: column; align-items: stretch; }
  .qz-cta-sm { width: 100%; }
  .qz-steps { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .qz-kicker-dot, .qz-go::after, .qz-cta::after, .qz-orbit i, .qz-orbit span,
  .qz-opt, .qz-card, .qz-hero, .qz-enter { animation: none !important; }
  .qz-opt, .qz-go, .qz-card, .qz-bar i { transition: none !important; }
}
