/* L'INFIDÈLE — Styles
 * Couleur principale : #811939
 */
:root {
  --wine: #811939;
  --wine-deep: #5c0f27;
  --wine-soft: #f5e4ea;
  --bg: #fcf6f8;
  --paper: #ffffff;
  --line: #ecd6de;
  --ink: #2e1119;
  --muted: #80606a;
  --gold: #b0843a;
  --ok: #2c7650;
  --warn: #a35b16;
  --serif: "Palatino Linotype", Palatino, "Book Antiqua", "Iowan Old Style", "Hoefler Text", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 28px;
  --tap: 64px;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
}
*, *::before, *::after { box-sizing: inherit; }

html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.45;
  -webkit-tap-highlight-color: transparent;
}
body.has-actions { padding-bottom: calc(112px + env(safe-area-inset-bottom, 0px)); }

button { font: inherit; color: inherit; cursor: pointer; touch-action: manipulation; }
button:disabled { cursor: not-allowed; }
:focus-visible { outline: 3px solid var(--wine); outline-offset: 3px; }

/* ---------- Barre du haut ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px clamp(16px, 4vw, 40px);
  background: rgba(252, 246, 248, .94);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { background: none; border: 0; padding: 8px 0; }
.brand-name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: .22em;
  color: var(--wine);
}
.menu-btn {
  width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--paper);
  display: grid; place-content: center; gap: 5px;
}
.menu-btn span { display: block; width: 22px; height: 2px; background: var(--wine); border-radius: 2px; }

/* ---------- Écrans ---------- */
main { outline: none; }
.screen {
  max-width: 1000px;
  margin: 0 auto;
  padding: clamp(20px, 4vw, 44px) clamp(16px, 4vw, 40px) 24px;
}
h1 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(28px, 4.6vw, 44px);
  line-height: 1.12;
  letter-spacing: .01em;
  margin: 0 0 10px;
  color: var(--wine-deep);
  text-align: center;
  text-wrap: balance;
}
h2 { font-family: var(--serif); }
.sub {
  text-align: center;
  color: var(--muted);
  font-size: clamp(17px, 2.2vw, 21px);
  margin: 0 auto 28px;
  max-width: 36em;
}

/* ---------- Symboles ---------- */
.sym { display: inline-grid; place-items: center; line-height: 1; font-size: 1.25em; width: 1.4em; height: 1.4em; flex: none; }
.sym img { width: 100%; height: 100%; object-fit: contain; display: block; -webkit-user-drag: none; user-select: none; }
.sym-img { font-size: 1.4em; }
.sym-xl { font-size: 46px; }
.sym-xl.sym-img { font-size: 52px; }
.sym-xxl { font-size: 72px; }
.who { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.who-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Boutons ---------- */
.btn {
  min-height: var(--tap);
  padding: 0 28px;
  border-radius: 999px;
  border: 2px solid transparent;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: .04em;
  white-space: nowrap;
  transition: transform .08s ease, background-color .15s ease, opacity .15s ease;
}
.btn:active:not(:disabled) { transform: scale(.97); }
.btn-primary { background: var(--wine); color: #fff; box-shadow: 0 6px 18px -8px rgba(129, 25, 57, .7); }
.btn-primary:disabled { background: #d9bcc6; box-shadow: none; color: #fff; }
.btn-ghost { background: transparent; color: var(--wine); border-color: transparent; font-weight: 600; letter-spacing: 0; }
.btn-outline { background: var(--paper); color: var(--wine); border-color: var(--wine); }
.btn-danger { background: #a3142f; color: #fff; }
.btn-big {
  display: block; width: 100%; max-width: 560px; margin: 0 auto 28px;
  min-height: 84px; font-size: 21px;
  background: var(--paper); color: var(--wine); border: 2px solid var(--wine);
  border-radius: var(--r-lg);
}
.btn-sm { min-height: 48px; padding: 0 20px; font-size: 16px; }
.lien { background: none; border: 0; color: var(--wine); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; padding: 8px; min-height: 44px; }

/* ---------- Barre d'actions du bas ---------- */
.actions {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 15;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px clamp(16px, 4vw, 40px) calc(14px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, .96);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
}
.actions[hidden] { display: none; }
.actions .btn-primary { min-width: min(320px, 55vw); }
.actions-info { color: var(--muted); font-size: 16px; text-align: center; }
.actions-info strong { color: var(--wine); font-size: 22px; }

/* ---------- Accueil / joueurs ---------- */
.hero { text-align: center; margin-bottom: 8px; }
.signature {
  font-family: var(--serif); font-style: italic;
  color: var(--wine); font-size: 20px; margin: 0 0 14px;
}
.setup-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 14px;
}
.setup-card {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 18px 12px 14px;
  background: var(--paper);
  border: 2px dashed var(--line);
  border-radius: var(--r-md);
  transition: border-color .15s, background-color .15s;
}
.setup-card.filled { border-style: solid; border-color: var(--wine); background: #fff; }
.setup-card > .sym { width: 84px; height: 84px; border-radius: 50%; background: #f7ebec; padding: 10px; font-size: 40px; }
.setup-card .sym-label { font-size: 13px; color: var(--muted); text-align: center; }
.setup-card input {
  width: 100%;
  min-height: 52px;
  margin-top: 4px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--bg);
  text-align: center;
  font: 600 20px var(--sans);
  color: var(--ink);
  padding: 0 8px;
}
.setup-card input::placeholder { color: #c9aab4; font-weight: 400; }
.setup-card input:focus { outline: none; border-color: var(--wine); background: #fff; box-shadow: 0 0 0 3px var(--wine-soft); }

/* ---------- PARTIE n ---------- */
.intro { text-align: center; padding-top: clamp(8px, 4vh, 48px); }
.pastilles { display: flex; justify-content: center; gap: 10px; margin-bottom: 24px; }
.pastille {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  border: 2px solid var(--line); color: var(--muted); font-weight: 700; background: var(--paper);
}
.pastille.done { background: var(--wine-soft); border-color: var(--wine-soft); color: var(--wine); }
.pastille.current { background: var(--wine); border-color: var(--wine); color: #fff; }
.partie-titre {
  font-size: clamp(64px, 13vw, 132px);
  letter-spacing: .06em;
  color: var(--wine);
  margin: 0;
}
.chips { list-style: none; padding: 0; margin: 28px auto 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 760px; }
.chips li { background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 8px 18px 8px 12px; }

/* ---------- En-tête d'étape ---------- */
.step-head { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 18px; }
.step-meta { margin: 0; color: var(--muted); font-size: 15px; }
.step-bar { display: flex; gap: 6px; }
.step-bar span { width: 34px; height: 5px; border-radius: 3px; background: var(--line); }
.step-bar span.on { background: var(--wine); }

/* ---------- Cartes joueurs (sélection) ---------- */
.player-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
}
.pcard {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  min-height: 190px;
  padding: 20px 10px;
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: var(--r-lg);
  transition: transform .1s ease, border-color .15s, background-color .15s;
}
.pcard:active { transform: scale(.97); }
.medaille {
  position: relative;
  width: 104px; height: 104px; border-radius: 50%;
  display: grid; place-items: center;
  background: #f7ebec;
  border: 2px solid #f7ebec;
  transition: background-color .15s, border-color .15s, box-shadow .15s;
}
.check {
  position: absolute; right: -4px; top: -4px;
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: #fff; color: var(--wine);
  font-weight: 800; font-size: 20px;
  border: 2px solid var(--wine);
  opacity: 0; transform: scale(.4);
  transition: opacity .15s, transform .2s cubic-bezier(.3, 1.6, .5, 1);
}
.pname { font-size: 21px; font-weight: 700; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pcard.selected { border-color: var(--wine); background: var(--wine); color: #fff; }
.pcard.selected .medaille { background: #fff; border-color: #fff; box-shadow: 0 0 0 5px rgba(255, 255, 255, .28); }
.pcard.selected .check { opacity: 1; transform: scale(1); }

/* ---------- Votes ---------- */
.voter { text-align: center; margin-bottom: 18px; }
.voter > .sym-img { width: 110px; height: 110px; padding: 18px; border-radius: 50%; background: #f7ebec; }
.voter-name { margin: 4px 0 0; font-size: clamp(34px, 6vw, 54px); color: var(--wine); letter-spacing: .04em; }
.voter-q { font-size: clamp(20px, 2.6vw, 26px); margin: 4px 0 0; color: var(--ink); }
.vote-box {
  max-width: 640px; margin: 0 auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 8px 22px 18px;
}
.vote-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.vote-who { display: flex; flex-direction: column; gap: 4px; min-width: 0; font-size: 22px; }
.vote-tag { font-size: 14px; color: var(--muted); }
.stepper { display: flex; align-items: center; gap: 6px; flex: none; }
.step-btn {
  width: 68px; height: 68px; border-radius: 50%;
  border: 2px solid var(--wine); background: var(--paper); color: var(--wine);
  font-size: 34px; font-weight: 600; line-height: 1;
  display: grid; place-items: center;
}
.step-btn:active:not(:disabled) { background: var(--wine); color: #fff; }
.step-btn:disabled { border-color: var(--line); color: var(--line); }
.step-val { min-width: 54px; text-align: center; font: 700 38px var(--serif); color: var(--ink); }
.stepper.small .step-btn { width: 56px; height: 56px; font-size: 28px; }
.stepper.small .step-val { min-width: 48px; font-size: 28px; }
.jetons-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 16px; color: var(--muted); }
.jetons { display: flex; gap: 8px; }
.jeton { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line); background: var(--bg); }
.jeton.on { background: var(--wine); border-color: var(--wine); }
.statut { margin: 14px 0 0; padding: 12px 16px; border-radius: var(--r-sm); background: var(--bg); font-weight: 600; text-align: center; }
.statut.ok { background: #e8f4ed; color: var(--ok); }
.statut.warn { background: #fbefe2; color: var(--warn); }
.progress-dots { display: flex; justify-content: center; gap: 8px; margin-top: 22px; }
.progress-dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.progress-dots span.done { background: #d9a9b8; }
.progress-dots span.on { background: var(--wine); transform: scale(1.3); }

/* ---------- Pénalités ---------- */
.pen-list {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 12px;
}
.pen-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 10px 12px 10px 16px; font-size: 20px;
}
.pen-row.has { border-color: var(--wine); }
.pen-row.has .step-val { color: var(--wine); }

/* ---------- Vérification ---------- */
.demasques {
  display: flex; flex-direction: column; align-items: center;
  margin: 8px auto 24px; color: var(--muted); font-size: 18px;
}
.demasques-n { font: 700 clamp(56px, 10vw, 88px)/1 var(--serif); color: var(--wine); }
.verif-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; max-width: 820px; margin: 0 auto; }
.verif-bloc { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 18px; }
.verif-titre { display: flex; justify-content: space-between; align-items: center; }
.verif-titre h2 { margin: 0; font-size: 20px; color: var(--wine-deep); }
.verif-list { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 8px; font-size: 21px; }
.verif-list li { display: flex; justify-content: space-between; align-items: center; }
.verif-vide { margin: 8px 0 0; color: var(--muted); }
.pen-badge { font-weight: 700; color: var(--wine); }

/* ---------- Résultats ---------- */
.res-list { list-style: none; padding: 0; margin: 0 auto; max-width: 760px; display: grid; gap: 10px; }
.res-item { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.res-main {
  width: 100%; min-height: 76px;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 18px; background: none; border: 0; text-align: left; font-size: 22px;
}
.res-main .who { flex: 1; }
.role { font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--bg); color: var(--muted); }
.role.infidele { background: var(--wine-soft); color: var(--wine); }
.res-pts { font: 700 28px var(--serif); color: var(--wine); min-width: 92px; text-align: right; }
.res-pts.neg { color: #a3142f; }
.chevron { width: 12px; height: 12px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s; margin-left: 4px; }
.res-item.open .chevron { transform: translateY(4px) rotate(-135deg); }
.res-detail { padding: 0 18px 16px; }
.detail { display: grid; grid-template-columns: 1fr auto; gap: 6px 20px; margin: 0; padding: 14px 16px; background: var(--bg); border-radius: var(--r-sm); font-size: 18px; }
.detail dt { color: var(--muted); }
.detail dd { margin: 0; text-align: right; font-weight: 600; }
.detail small { font-weight: 400; color: var(--muted); }
.detail .tot { border-top: 1px solid var(--line); padding-top: 8px; color: var(--ink); font-weight: 800; }

/* ---------- Classement ---------- */
.podium {
  text-align: center;
  margin: 8px auto 28px; padding: 26px 20px;
  max-width: 640px;
  background: var(--wine); color: #fff;
  border-radius: var(--r-lg);
  box-shadow: 0 0 0 6px var(--paper), 0 0 0 8px var(--gold);
}
.podium-label { margin: 0 0 12px; font-family: var(--serif); font-style: italic; font-size: 22px; color: #f3dca8; }
.podium-names { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px 36px; }
.gagnant { display: flex; flex-direction: column; align-items: center; gap: 6px; font: 700 clamp(28px, 5vw, 42px) var(--serif); }
.gagnant .sym { background: #fff; border-radius: 50%; width: 120px; height: 120px; font-size: 60px; padding: 22px; }
.podium-pts { margin: 14px 0 0; font: 700 26px var(--serif); color: #f3dca8; }

.rank-list { list-style: none; padding: 0; margin: 0 auto; max-width: 760px; display: grid; gap: 10px; }
.rank-row {
  display: flex; align-items: center; gap: 16px;
  min-height: 72px; padding: 10px 20px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md);
  font-size: 22px;
}
.rank-row .who { flex: 1; }
.rang { width: 52px; text-align: center; font: 700 30px/1 var(--serif); color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 2px; }
.rang small { font: 600 11px var(--sans); }
.rank-row.first { border: 2px solid var(--gold); }
.rank-row.first .rang { color: var(--gold); }
.rank-pts { font: 700 26px var(--serif); color: var(--wine); }

.section-titre { text-align: center; color: var(--wine-deep); margin: 40px 0 14px; font-size: 22px; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); max-width: 860px; margin: 0 auto; }
.score-table { border-collapse: collapse; width: 100%; font-size: 18px; }
.score-table th, .score-table td { padding: 12px 14px; text-align: center; border-bottom: 1px solid var(--line); white-space: nowrap; }
.score-table thead th { color: var(--muted); font-weight: 600; font-size: 15px; }
.score-table tbody th { text-align: left; font-weight: 400; }
.score-table tr:last-child th, .score-table tr:last-child td { border-bottom: 0; }
.score-table .total { font-weight: 800; color: var(--wine); font-size: 20px; }
.score-table .vide { color: var(--line); }

/* ---------- Parties ---------- */
.partie-list { list-style: none; padding: 0; margin: 0 auto; max-width: 760px; display: grid; gap: 10px; }
.partie-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 18px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md);
}
.partie-row strong { display: block; font: 700 22px var(--serif); }
.partie-row span { color: var(--muted); font-size: 16px; }
.partie-row:not(.jouee) strong { color: var(--muted); }
.partie-act { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

/* ---------- Menu et dialogues ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(46, 17, 25, .45);
  display: flex; justify-content: flex-end;
}
.overlay[hidden] { display: none; }
.sheet {
  width: min(420px, 100%); height: 100%;
  background: var(--paper);
  padding: calc(18px + env(safe-area-inset-top, 0px)) 22px calc(22px + env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column;
  animation: glisse .2s ease-out;
}
@keyframes glisse { from { transform: translateX(30px); opacity: 0; } }
.sheet-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.close { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg); font-size: 30px; line-height: 1; }
.menu { display: grid; gap: 6px; }
.menu button {
  min-height: 60px; text-align: left; padding: 0 18px;
  background: var(--bg); border: 0; border-radius: var(--r-sm);
  font-size: 19px; font-weight: 600;
}
.menu button.danger { margin-top: 18px; background: #fff; color: #a3142f; border: 2px solid #f0c9d2; }
.sheet-foot { margin-top: auto; font-family: var(--serif); font-style: italic; color: var(--wine); text-align: center; }
.dialog {
  margin: auto; width: min(480px, calc(100% - 32px));
  background: var(--paper); border-radius: var(--r-lg); padding: 26px;
  text-align: center;
}
.dialog h2 { margin: 0 0 8px; color: var(--wine-deep); font-size: 26px; }
.dialog p { color: var(--muted); margin: 0 0 22px; }
.dialog-btns { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }

.toast {
  position: fixed; left: 50%; bottom: calc(126px + env(safe-area-inset-bottom, 0px)); z-index: 60;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  max-width: calc(100% - 32px);
  background: var(--ink); color: #fff; padding: 14px 22px; border-radius: 999px;
  font-weight: 600; text-align: center;
  transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Lot et quiz de départage ---------- */
.podium-lot { margin: 6px 0 0; font-size: 18px; color: #fff; opacity: .92; }
.podium-regle { margin: 18px auto 0; max-width: 30em; font-size: 16px; color: #f6dfe6; }
.btn-gold { margin-top: 18px; background: #f3dca8; color: var(--wine-deep); border-color: #f3dca8; }
.btn-gold:active { background: #fff; }

.quiz-carte {
  max-width: 760px; margin: 0 auto;
  background: var(--paper); border: 2px solid var(--wine); border-radius: var(--r-lg);
  padding: clamp(20px, 3vw, 32px);
  text-align: center;
}
.quiz-question {
  margin: 0;
  font: 700 clamp(24px, 3.4vw, 34px)/1.3 var(--serif);
  color: var(--wine-deep);
  text-wrap: balance;
}
.quiz-reponse { margin-top: 18px; }
.quiz-reponse summary {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px;
  border-radius: 999px; background: var(--bg); color: var(--wine);
  font-weight: 700; cursor: pointer; list-style: none;
}
.quiz-reponse summary::-webkit-details-marker { display: none; }
.quiz-reponse[open] summary { background: var(--wine-soft); }
.quiz-reponse p { margin: 14px 0 0; font: 700 26px var(--serif); color: var(--ok); }
.quiz-changer { margin-top: 8px; font-size: 15px; }
.quiz-qui { text-align: center; color: var(--ink); font-size: clamp(19px, 2.4vw, 23px); margin: 26px 0 14px; }
.quiz-joueurs { max-width: 760px; margin: 0 auto; grid-template-columns: repeat(auto-fit, minmax(150px, 200px)); justify-content: center; }
.quiz-joueurs .pcard { min-height: 160px; }

.quiz-gagnant { text-align: center; padding-top: clamp(12px, 5vh, 56px); }
.quiz-gagnant .podium-label { color: var(--wine); }
.gagnant-medaille {
  width: 150px; height: 150px; margin: 18px auto 12px; border-radius: 50%;
  display: grid; place-items: center; background: var(--wine-soft);
  box-shadow: 0 0 0 6px var(--paper), 0 0 0 8px var(--gold);
}
.gagnant-medaille .sym { width: 96px; height: 96px; }
.quiz-gagnant h1 { font-size: clamp(44px, 8vw, 76px); color: var(--wine); margin: 8px 0 4px; letter-spacing: .04em; }
.quiz-lot { font: italic 400 clamp(22px, 3vw, 28px) var(--serif); color: var(--ink); margin: 0; }

/* ---------- Petits écrans (smartphone) ---------- */
@media (max-width: 600px) {
  body { font-size: 17px; }
  .brand-name { font-size: 18px; }
  .setup-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .sym-xl { font-size: 38px; }
  .player-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .pcard { min-height: 150px; }
  .medaille { width: 80px; height: 80px; }
  .pname { font-size: 18px; }
  .vote-box { padding: 4px 14px 14px; }
  .vote-who { font-size: 18px; }
  .step-btn { width: 56px; height: 56px; font-size: 28px; }
  .step-val { min-width: 40px; font-size: 30px; }
  .pen-list, .verif-grid { grid-template-columns: 1fr; }
  .quiz-joueurs { grid-template-columns: repeat(2, 1fr); }
  .pen-row { font-size: 18px; }
  .res-main, .rank-row { font-size: 18px; }
  .res-pts, .rank-pts { font-size: 22px; min-width: 0; }
  .role { display: none; }
  .actions { gap: 6px; }
  .actions .btn { padding: 0 16px; font-size: 16px; }
  .actions .btn-primary { min-width: 0; flex: 1; }
  .actions-info { font-size: 14px; }
}

/* ---------- Tablette à l'horizontale : tout tenir sans défiler ---------- */
@media (min-width: 601px) and (max-height: 820px) {
  .screen { padding-top: 16px; }
  .step-head { margin-bottom: 8px; gap: 6px; }
  h1 { font-size: clamp(26px, 3.6vw, 36px); margin-bottom: 6px; }
  .sub { margin-bottom: 18px; }
  .pcard { min-height: 156px; padding: 14px 8px; gap: 8px; }
  .medaille { width: 84px; height: 84px; }
  .medaille .sym-xl { font-size: 40px; }
  .medaille .sym-xl.sym-img { font-size: 46px; }
  .voter > .sym-img { width: 84px; height: 84px; padding: 14px; }
  .setup-card > .sym { width: 68px; height: 68px; padding: 8px; }
  .voter { margin-bottom: 12px; }
  .voter .sym-xxl { font-size: 48px; }
  .voter-name { font-size: 38px; }
  .vote-row { padding: 10px 0; }
  .setup-card { padding: 12px 10px 10px; }
  .setup-card .sym-xl { font-size: 36px; }
  .quiz-carte { padding: 16px 22px; }
  .quiz-reponse { margin-top: 12px; }
  .quiz-qui { margin: 16px 0 10px; }
  .quiz-joueurs .pcard { min-height: 132px; padding: 10px 8px; }
  .quiz-joueurs .medaille { width: 72px; height: 72px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
