/* quiz-engine.css — Styles partagés pour tous les quiz SansMasque */

.container { max-width: 680px; margin: 0 auto; padding: 0 16px 60px; }

.quiz-hero { text-align: center; padding: 40px 20px 30px; }
.quiz-hero-emoji { font-size: 3.5rem; margin-bottom: 12px; }
.quiz-hero h1 { font-size: clamp(1.5rem, 4vw, 2rem); font-weight: 900; color: var(--text); line-height: 1.2; margin-bottom: 10px; }
.quiz-hero p { font-size: .92rem; font-weight: 700; color: var(--text-muted); line-height: 1.6; max-width: 480px; margin: 0 auto; }

#screen-start { text-align: center; }
.start-card { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 24px; padding: 32px 24px; margin-bottom: 20px; box-shadow: var(--card-shadow); }
.start-card h2 { font-size: 1.1rem; font-weight: 900; color: var(--text); margin-bottom: 12px; }
.start-card p { font-size: .88rem; font-weight: 700; color: var(--text-muted); line-height: 1.7; margin-bottom: 20px; }
.start-info { display: flex; justify-content: center; gap: 20px; margin-bottom: 24px; flex-wrap: wrap; }
.start-info-item { font-size: .78rem; font-weight: 800; color: var(--text-dim); display: flex; align-items: center; gap: 6px; }
.btn-start { display: inline-block; padding: 16px 48px; border: none; border-radius: 14px; font-size: 1rem; font-weight: 900; color: white; background: #e84393; box-shadow: 0 6px 24px rgba(232,67,147,.3); cursor: pointer; transition: all .15s; }
.btn-start:hover { transform: translateY(-3px); box-shadow: 0 10px 32px rgba(232,67,147,.4); background: #d63384; }

.progress-wrap { margin-bottom: 24px; }
.progress-bar-bg { height: 6px; background: #eee; border-radius: 50px; overflow: hidden; }
.progress-bar-fill { height: 100%; background: linear-gradient(90deg, #e84393, #fd79a8); border-radius: 50px; transition: width .4s ease; width: 0%; }
.progress-label { font-size: .72rem; font-weight: 800; color: var(--text-dim); text-align: right; margin-top: 6px; }

#screen-quiz { display: none; }
.question-card { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 24px; padding: 28px 24px; margin-bottom: 20px; box-shadow: var(--card-shadow); animation: fadeIn .3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.question-number { font-size: .7rem; font-weight: 900; text-transform: uppercase; letter-spacing: 1px; color: #e84393; margin-bottom: 14px; }
.question-text { font-size: clamp(1rem, 3vw, 1.15rem); font-weight: 900; color: var(--text); line-height: 1.45; margin-bottom: 24px; }

.choices { display: flex; flex-direction: column; gap: 10px; }
.choice-btn { display: block; width: 100%; padding: 16px 20px; border: 2px solid #eee; border-radius: 14px; background: #fafafa; font-size: .92rem; font-weight: 700; color: #444; text-align: left; cursor: pointer; transition: all .2s; line-height: 1.5; }
.choice-btn:hover { background: #fdf2f8; border-color: #f0a8cc; color: var(--text); transform: translateX(4px); }
.choice-btn.selected { background: #fdf2f8; border-color: #e84393; color: #e84393; font-weight: 800; }

#screen-result { display: none; text-align: center; }
.result-card { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 24px; padding: 40px 28px; margin-bottom: 20px; box-shadow: var(--card-shadow); animation: fadeIn .5s ease; }
.result-emoji { font-size: 5.5rem; margin-bottom: 14px; filter: drop-shadow(0 6px 20px rgba(0,0,0,.08)); }
.result-type { font-size: 2rem; font-weight: 900; color: var(--text); margin-bottom: 8px; letter-spacing: -.5px; }
.result-tagline { font-size: 1rem; font-weight: 800; color: #e84393; margin-bottom: 24px; }
.result-desc { font-size: .95rem; font-weight: 700; color: var(--text-muted); line-height: 1.8; max-width: 500px; margin: 0 auto 32px; text-align: left; }
.result-scores { display: flex; justify-content: center; gap: 12px; margin-bottom: 28px; flex-wrap: wrap; }
.result-score-item {
  border-radius: 16px; padding: 12px 18px; text-align: center; min-width: 90px;
  border: 1.5px solid transparent;
  background: #fafafa;
}
.result-score-item.dominant { border-color: currentColor; background: color-mix(in srgb, currentColor 6%, #fff); box-shadow: 0 2px 10px color-mix(in srgb, currentColor 18%, transparent); }
.result-score-label { font-size: .66rem; font-weight: 800; color: var(--text-dim); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 4px; }
.result-score-value { font-size: 1.3rem; font-weight: 900; color: var(--text); }
.result-score-bar { height: 4px; background: #eee; border-radius: 50px; margin-top: 8px; overflow: hidden; }
.result-score-bar-fill { height: 100%; border-radius: 50px; transition: width .6s ease; }

/* ── Actions : compactes, ligne horizontale, priorite au resultat ── */
.result-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 4px;
}
.result-actions-row { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }

.btn-share.restart {
  background: linear-gradient(135deg, #6c5ce7, #a29bfe);
  color: #fff;
  border: none;
  padding: 12px 28px;
  border-radius: 50px;
  font-size: .95rem;
  font-weight: 900;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all .18s;
  font-family: inherit;
  box-shadow: 0 6px 20px rgba(108,92,231,.35);
}
.btn-share.restart:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(108,92,231,.45); }

/* Legacy (si utilise ailleurs) */
.btn-share.primary { background: #e84393; color: white; box-shadow: 0 4px 16px rgba(232,67,147,.25); padding: 12px 28px; border: none; border-radius: 50px; font-size: .9rem; font-weight: 800; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; transition: all .15s; }
.btn-share.primary:hover { transform: translateY(-2px); background: #d63384; }
.btn-share.whatsapp { background: #25d366; color: white; }
.btn-share.twitter { background: #1da1f2; color: white; }

.back-link { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; font-weight: 800; color: var(--text-dim); text-decoration: none; margin-bottom: 16px; transition: color .15s; }
.back-link:hover { color: #e84393; }

@media (max-width: 640px) {
  .quiz-hero { padding: 24px 16px 20px; }
  .question-card { padding: 22px 18px; }
  .result-card { padding: 28px 18px; }
  .result-scores { gap: 10px; }
  .result-score-item { min-width: 85px; padding: 10px 14px; }
}
