/* playqr-quiz preview-question v0.23.0 — overlay + device frames */
.pqq-pv-overlay { position: fixed; inset: 0; background: rgba(15,27,45,.88); z-index: 999999; display: flex; align-items: center; justify-content: center; padding: 16px; box-sizing: border-box; }
.pqq-pv-modal { background: #fff; border-radius: 14px; width: 100%; max-width: 1180px; max-height: 95vh; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.pqq-pv-toolbar { display: flex; align-items: center; gap: 14px; padding: 12px 18px; background: #f8fafc; border-bottom: 1px solid #e3eaf3; flex-wrap: wrap; }
.pqq-pv-title { font-size: 16px; color: #0F1B2D; }
.pqq-pv-modes { display: flex; gap: 8px; margin-left: 8px; }
.pqq-pv-mode { padding: 8px 14px; border: 2px solid #cbd5e1; background: #fff; border-radius: 8px; cursor: pointer; font-size: 14px; font-weight: 600; color: #334155; transition: all .15s; }
.pqq-pv-mode:hover { border-color: #94a3b8; }
.pqq-pv-mode.is-active { border-color: #2563eb; background: #eff6ff; color: #1d4ed8; }
.pqq-pv-close { margin-left: auto; background: none; border: none; font-size: 22px; cursor: pointer; color: #5B6B82; padding: 4px 10px; border-radius: 6px; line-height: 1; }
.pqq-pv-close:hover { background: #e3eaf3; color: #0F1B2D; }
.pqq-pv-stage { flex: 1; overflow: auto; padding: 28px 16px; background: #1a1f2e; display: flex; justify-content: center; align-items: flex-start; }
.pqq-pv-frame { background: #fff; border-radius: 24px; box-shadow: 0 8px 40px rgba(0,0,0,.5); border: 10px solid #0F1B2D; overflow: hidden; flex-shrink: 0; position: relative; }
.pqq-pv-frame::before { content: ''; position: absolute; top: 6px; left: 50%; transform: translateX(-50%); width: 60px; height: 5px; background: #1a1f2e; border-radius: 3px; z-index: 2; }
.pqq-pv-frame-phone { width: 375px; height: 812px; }
.pqq-pv-frame-tablet { width: 1024px; height: 768px; }
.pqq-pv-inner { width: 100%; height: 100%; overflow-y: auto; padding: 28px 22px 22px; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; box-sizing: border-box; background: linear-gradient(180deg, #fafbfc 0%, #fff 100%); }
.pqq-pv-meta { font-size: 11px; color: #5B6B82; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 12px; font-weight: 700; }
.pqq-pv-question { font-size: 22px; line-height: 1.35; color: #0F1B2D; margin: 0 0 18px; font-weight: 700; white-space: pre-line; }
.pqq-pv-img { width: 100%; max-height: 260px; object-fit: cover; border-radius: 12px; margin-bottom: 18px; display: block; }
.pqq-pv-yt { width: 100%; height: 220px; border-radius: 12px; margin-bottom: 18px; border: 0; display: block; }
.pqq-pv-answers { display: flex; flex-direction: column; gap: 10px; }
.pqq-pv-ans { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 2px solid #e3eaf3; border-radius: 12px; background: #f8fafc; position: relative; transition: all .15s; }
.pqq-pv-ans.is-correct { border-color: #22c55e; background: #dcfce7; }
.pqq-pv-marker { font-size: 20px; color: #5B6B82; line-height: 1; flex-shrink: 0; }
.pqq-pv-ans.is-correct .pqq-pv-marker { color: #16a34a; }
.pqq-pv-ans-img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.pqq-pv-ans-text { flex: 1; font-size: 15px; color: #0F1B2D; line-height: 1.3; }
.pqq-pv-badge { background: #22c55e; color: #fff; border-radius: 50%; width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; flex-shrink: 0; }
.pqq-pv-empty { padding: 20px; text-align: center; color: #94a3b8; font-style: italic; font-size: 14px; }
.pqq-pv-text-input input { width: 100%; padding: 14px 16px; border: 2px solid #e3eaf3; border-radius: 12px; font-size: 15px; background: #fff; box-sizing: border-box; color: #5B6B82; }
.pqq-pv-accepted { margin-top: 16px; font-size: 13px; color: #5B6B82; line-height: 1.6; }
.pqq-pv-chip { display: inline-block; background: #dcfce7; color: #15803d; padding: 4px 10px; border-radius: 20px; margin: 4px 4px 0 0; font-size: 12px; font-weight: 600; }

/* Bouton "Apercu" (cellule actions) — neutre, s'integre admin WP + Mon Compte */
.pqq-pv-btn { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; background: #fff; border: 1px solid #c3c4c7; border-radius: 4px; color: #2271b1; cursor: pointer; font-size: 13px; line-height: 1.4; text-decoration: none; }
.pqq-pv-btn:hover { background: #f6f7f7; border-color: #8c8f94; }

/* Responsive — quand l'ecran est plus petit que les frames, on scale */
@media (max-width: 1100px) {
	.pqq-pv-frame-tablet { transform: scale(.62); transform-origin: top center; margin-bottom: -300px; }
}
@media (max-width: 760px) {
	.pqq-pv-frame-tablet { transform: scale(.4); margin-bottom: -460px; }
	.pqq-pv-frame-phone { transform: scale(.78); transform-origin: top center; }
}
@media (max-width: 420px) {
	.pqq-pv-frame-phone { transform: scale(.6); transform-origin: top center; }
	.pqq-pv-toolbar { gap: 8px; padding: 10px 12px; }
	.pqq-pv-mode { padding: 6px 10px; font-size: 12px; }
}

/* v0.23.2 — Tablette paysage : 2 colonnes image/reponses */
.pqq-pv-frame-tablet .pqq-pv-body { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.pqq-pv-frame-tablet .pqq-pv-media { margin: 0; }
.pqq-pv-frame-tablet .pqq-pv-media.is-empty { display: none; }
.pqq-pv-frame-tablet .pqq-pv-media .pqq-pv-img,
.pqq-pv-frame-tablet .pqq-pv-media .pqq-pv-yt { margin-bottom: 0; max-height: 380px; height: auto; }
.pqq-pv-frame-tablet .pqq-pv-media .pqq-pv-yt { height: 320px; }
.pqq-pv-frame-tablet .pqq-pv-question { font-size: 24px; }
/* Si pas de media en tablette, les reponses prennent toute la largeur */
.pqq-pv-frame-tablet .pqq-pv-body:has(.pqq-pv-media.is-empty) { grid-template-columns: 1fr; max-width: 720px; margin: 0 auto; }
/* Phone : layout vertical par defaut, on s'assure que le wrapper se comporte en bloc */
.pqq-pv-frame-phone .pqq-pv-body { display: block; }
.pqq-pv-frame-phone .pqq-pv-media { margin-bottom: 18px; }
.pqq-pv-frame-phone .pqq-pv-media.is-empty { display: none; }

/* v0.24.2 : grille 2 cols quand toutes les reponses sont visuelles */
.pqq-pv-answers.is-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pqq-pv-answers.is-grid .pqq-pv-ans { flex-direction: column; align-items: stretch; padding: 10px; gap: 6px; }
.pqq-pv-answers.is-grid .pqq-pv-ans-img { width: 100%; height: 120px; object-fit: contain; background: #fff; border-radius: 8px; }
.pqq-pv-answers.is-grid .pqq-pv-ans-text { font-size: 13px; text-align: center; flex: 0 0 auto; }
.pqq-pv-answers.is-grid .pqq-pv-marker { position: absolute; top: 8px; left: 10px; background: rgba(255,255,255,.95); border-radius: 50%; width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 1px 3px rgba(0,0,0,.15); font-size: 14px; }
.pqq-pv-answers.is-grid .pqq-pv-ans { position: relative; }
.pqq-pv-answers.is-grid .pqq-pv-badge { position: absolute; top: 8px; right: 10px; }
/* Tablette : grille reste 2 cols, images plus grandes */
.pqq-pv-frame-tablet .pqq-pv-answers.is-grid .pqq-pv-ans-img { height: 160px; }
.pqq-pv-frame-tablet .pqq-pv-answers.is-grid .pqq-pv-ans-text { font-size: 15px; }
