/*
 * Fichier : /assets/css/front-end/jeu/jeu.css
 * Rôle    : style du jeu côté participant — palette et composants de wp-chats-expo (doré du club, cartes arrondies).
 * Lié à   : inc/front/shortcode/jeu/shortcode.php, assets/js/front-end/jeu/jeu.js
 */
.psq {
  /* 2.0.5 : doré assombri pour un texte blanc lisible (contraste 4,7 à 6,7 ; ancien #d19a00 → #b88300 : 2,5 à 3,3) */
  --psq-gold: linear-gradient(135deg, #9a6c00, #7a5500);
  --psq-gold-hover: linear-gradient(135deg, #7a5500, #5f4300);
  --psq-link: #8f6400;
  --psq-link-hover: #5f4300;
  --psq-blue: #2271b1;
  --psq-text: #1d2327;
  --psq-muted: #50575e;
  --psq-label: #3c434a;
  --psq-border: #dce0e5;
  --psq-field: #8c8f94; /* bord des champs : 3,2:1 sur blanc (ancien #c3c4c7 : 1,7) */
  --psq-soft: #f6f7f7;
  max-width: 760px;
  margin: 0 auto;
  color: var(--psq-text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.5;
}
.psq *, .psq *::before, .psq *::after { box-sizing: border-box; }
.psq [hidden] { display: none !important; }
.psq a, .psq .psq__link { color: var(--psq-link); }
.psq a:hover, .psq .psq__link:hover { color: var(--psq-link-hover); }

.psq__card { background: #fff; border: 1px solid var(--psq-border); border-radius: 14px; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.psq__kicker { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #646970; }
.psq .psq__title { margin: 0; font-size: 1.4em; font-weight: 600; line-height: 1.25; color: var(--psq-text); }
.psq.is-started .psq__title { font-size: 1.15em; }
.psq.is-started .psq__intro, .psq.is-started .psq__dates { display: none; }
.psq__dates { color: var(--psq-muted); font-size: .95em; }
.psq__intro { color: var(--psq-muted); }
.psq__test { background: var(--psq-blue); color: #fff; font-weight: 600; text-align: center; border-radius: 6px; padding: 4px 8px; }

.psq__steps { display: flex; gap: 6px; list-style: none; margin: 0 0 14px; padding: 0; }
.psq__steps li { flex: 1; font-size: 12px; color: #646970; padding-top: 8px; position: relative; text-align: center; }
.psq__steps li::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; border-radius: 2px; background: var(--psq-border); }
.psq__steps li.is-done::before { background: #8f6400; }
.psq__steps li.is-current::before { background: #d19a00; }
.psq__steps li.is-current { color: var(--psq-text); font-weight: 600; }

.psq__slide { display: flex; flex-direction: column; gap: 14px; }
.psq__slide form { display: flex; flex-direction: column; gap: 14px; }
.psq__slide--in { animation: psq-in .25s ease-out; }
@keyframes psq-in { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .psq__slide--in { animation: none; } }

.psq__field { display: flex; flex-direction: column; gap: 4px; }
.psq__label { display: block; font-weight: 600; color: var(--psq-label); }
.psq .psq__input { width: 100%; font: inherit; font-size: 16px; padding: 8px 10px; border: 1px solid var(--psq-field); border-radius: 6px; background: #fff; color: var(--psq-text); }
.psq .psq__input:focus-visible { outline: 2px solid var(--psq-blue); outline-offset: 1px; }
.psq .psq__code { font-size: 1.5em; letter-spacing: .3em; text-align: center; max-width: 240px; }
.psq__help { margin: 0; color: var(--psq-muted); font-size: .92em; }
.psq__check { display: flex; gap: 8px; align-items: flex-start; font-weight: normal; cursor: pointer; }
.psq__check input { margin-top: 4px; flex: none; }
.psq__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.psq__fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.psq__box { border: 1px solid var(--psq-border); border-radius: 10px; padding: 12px 14px; }
.psq__req { color: #b32d2e; }

.psq__choices { display: grid; gap: 8px; }
.psq__choices--inline { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); }
.psq .psq__choice { display: flex; align-items: center; gap: 10px; padding: 10px 12px; min-height: 48px; border: 2px solid var(--psq-border); border-radius: 10px; background: #fff; cursor: pointer; font-weight: normal; }
.psq__choice:hover { border-color: #d19a00; }
.psq__choice input { width: 1.15em; height: 1.15em; margin: 0; flex: none; accent-color: #8f6400; }
.psq__choice:has(input:checked) { border-color: #8f6400; background: #fff8e5; }
.psq__choice:has(input:focus-visible) { outline: 2px solid var(--psq-blue); outline-offset: 2px; }

.psq .psq__btn { display: block; width: auto; align-self: flex-start; font: inherit; font-weight: 600; color: #fff; background: var(--psq-gold); border: 0; border-radius: 50px; padding: 10px 22px; cursor: pointer; }
.psq .psq__btn:hover { background: var(--psq-gold-hover); }
.psq .psq__btn:disabled { opacity: .6; cursor: wait; }
.psq .psq__btn:focus-visible { outline: 2px solid var(--psq-text); outline-offset: 2px; }
.psq .psq__btn--go { align-self: stretch; }
.psq .psq__link { background: none; border: 0; padding: 0; font: inherit; text-decoration: underline; cursor: pointer; }
.is-busy { opacity: .75; }

.psq__alert { border-radius: 8px; padding: 10px 12px; margin: 0; }
.psq__alert.is-error { background: #fcf0f1; border: 1px solid #f0b8b9; color: #8a2424; }
.psq__alert.is-ok { background: #edfaef; border: 1px solid #b8e6bf; color: #1d5b29; }
.psq__alert.is-info { background: var(--psq-soft); border: 1px solid var(--psq-border); color: var(--psq-text); }
.psq__alert.is-warn { background: #fcf9e8; border-left: 4px solid #dba617; color: var(--psq-text); }
.psq__alert p { margin: 6px 0 0; }
.psq__exp { color: var(--psq-text); }
.psq__stop { text-align: center; font-weight: 600; padding: 18px 14px; }
.psq__stop p { margin: 0; }

.psq__big { margin: 0; font-size: 1.5em; font-weight: 600; }
.psq__rules { margin: 0; padding-left: 18px; color: var(--psq-muted); }
.psq__qhead { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.psq__qcount { font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: #8f6400; }
.psq__clock { font-variant-numeric: tabular-nums; background: var(--psq-text); color: #fff; border-radius: 999px; padding: 3px 12px; min-width: 6em; text-align: center; }
.psq__clock.is-paused { background: #f0f0f1; color: var(--psq-muted); }
.psq__bar { height: 6px; background: #f0f0f1; border-radius: 3px; overflow: hidden; }
.psq__bar span { display: block; height: 100%; background: #8f6400; transition: width .3s; }
.psq .psq__qlabel { margin: 0; font-size: 1.2em; font-weight: 600; line-height: 1.35; color: var(--psq-text); }
.psq__done { border: 1px solid #b8e6bf; border-radius: 10px; padding: 18px 14px; text-align: center; display: flex; flex-direction: column; gap: 8px; }
.psq__done p { margin: 0; }
.psq__result { font-size: 1.15em; }
.psq__corrections { text-align: left; margin: 8px 0 0; padding-left: 20px; }
.psq__corrections li { margin-bottom: 8px; }

.psq__reglement { border-top: 1px solid #f0f0f1; padding-top: 10px; }
.psq__reglement summary { cursor: pointer; color: var(--psq-link); }
.psq__reglement-texte, .psq-reglement-page { font-size: .95em; }
.psq__reglement-texte h2, .psq-reglement-page h2 { font-size: 1.2em; }
.psq__reglement-texte h3, .psq-reglement-page h3 { font-size: 1.05em; margin: 1em 0 .3em; }
.psq-table-wrap { overflow-x: auto; }
.psq-table-wrap table { border-collapse: collapse; width: 100%; font-size: .92em; }
.psq-table-wrap th, .psq-table-wrap td { border: 1px solid var(--psq-border); padding: 4px 6px; text-align: left; }
.psq-note { font-style: italic; color: #646970; }

@media (max-width: 480px) {
  .psq__card { padding: 16px; border-radius: 10px; }
  .psq .psq__btn { align-self: stretch; text-align: center; }
}
