/* Pages de jeux et de quiz — à charger APRÈS charte.css.
   Style les classes émises par lib/quiz.js (QCMEngine). La couleur d'accent vient de la classe accent-<nom> posée sur <body>. */
body { --bg: #CBDDF0; --edge: #94B4D6; --deep: #1F5C99; }
body.accent-indigo { --bg: #DCD4F0; --edge: #A99BD2; --deep: #4B3A8C; }
body.accent-amber  { --bg: #F4E0AE; --edge: #D2B063; --deep: #7A4A05; }
body.accent-orange { --bg: #F8D0B8; --edge: #DE9C7A; --deep: #A33812; }
body.accent-blue   { --bg: #CBDDF0; --edge: #94B4D6; --deep: #1F5C99; }
body.accent-teal   { --bg: #C3E6D8; --edge: #8CC4AD; --deep: #12755A; }
body.accent-red    { --bg: #F6C6C0; --edge: #DE918A; --deep: #A5231A; }
body.accent-brown  { --bg: #E9D8C6; --edge: #C2A07F; --deep: #6B3F1D; }

.jeu-wrap { max-width: 760px; margin: 0 auto; padding: 1.6rem 1.25rem 3rem; }
.jeu-intro { margin-bottom: 1.2rem; }
.jeu-intro .section-label { margin-bottom: 0.15rem; }
.jeu-intro .section-title { margin: 0 0 0.3rem; }
.jeu-intro .section-sub { margin-bottom: 0; }

.hero-identity { font-size: 0.78rem; color: #BFD0E3; }
.hero-identity button { margin-left: 0.4rem; background: rgba(255,255,255,0.1); border: 0; border-radius: 999px; padding: 0.05rem 0.65rem; font: inherit; font-size: 0.72rem; font-weight: 600; color: #fff; cursor: pointer; box-shadow: inset 0 1px 0 rgba(255,255,255,0.25), 0 2px 0 rgba(0,0,0,0.25); }

/* Question */
.qcm-question { background: linear-gradient(180deg, #FFFFFF, #F4F7FB); border-radius: 16px; padding: 1.1rem 1.2rem 1.2rem; margin-bottom: 1rem; box-shadow: inset 0 2px 0 #FFFFFF, 0 3px 0 #C3CEDB, var(--shadow-soft); }
.q-text { font-size: 1.02rem; font-weight: 600; line-height: 1.4; margin-bottom: 0.3rem; }
.q-hint { font-size: 0.78rem; color: var(--ink-soft); margin-bottom: 0.8rem; }
.q-options { display: flex; flex-direction: column; gap: 0.55rem; }
.q-option { display: flex; align-items: flex-start; gap: 0.6rem; padding: 0.6rem 0.8rem; border-radius: 12px; cursor: pointer; font-size: 0.92rem; line-height: 1.4; background: #fff; box-shadow: inset 0 0 0 1px #D5DDE8, 0 2px 0 #C3CEDB; transition: transform 0.1s, box-shadow 0.1s, background 0.1s; }
.q-option:hover { transform: translateY(1px); box-shadow: inset 0 0 0 1px var(--edge), 0 1px 0 var(--edge); }
.q-option input { margin-top: 0.2rem; flex-shrink: 0; accent-color: var(--deep); }
.q-option.selected { background: var(--bg); box-shadow: inset 0 0 0 1.5px var(--deep), 0 2px 0 var(--edge); }
.q-option.correct { background: #D6F0E6; box-shadow: inset 0 0 0 1.5px #12755A, 0 2px 0 #8CC4AD; }
.q-option.wrong { background: #FBD9D4; box-shadow: inset 0 0 0 1.5px #A5231A, 0 2px 0 #DE918A; }
.q-feedback { display: none; margin-top: 0.8rem; padding: 0.65rem 0.85rem; border-radius: 12px; font-size: 0.86rem; line-height: 1.5; }
.q-feedback.show { display: block; }
.q-feedback.ok { background: #D6F0E6; color: #0E5A44; }
.q-feedback.nok { background: #FBD9D4; color: #7A1A12; }

/* Boutons de jeu (même rendu que .btn de la charte) */
.survie-validate, .survie-next, .survie-end, .survie-replay,
.chaine-validate, .chaine-replay, .chaine-ready-btn, .chaine-pass {
  display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 0.9rem; border: 0; border-radius: 12px; padding: 0.6rem 1.3rem;
  font: inherit; font-weight: 600; font-size: 0.92rem; color: #fff; cursor: pointer; text-decoration: none;
  background: linear-gradient(180deg, var(--navy-hi), var(--navy));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.25), 0 3px 0 #07142A, 0 6px 10px -6px rgba(15,35,64,0.3);
  transition: transform 0.1s, box-shadow 0.1s; }
.survie-validate:active, .survie-next:active, .survie-end:active, .survie-replay:active,
.chaine-validate:active, .chaine-replay:active, .chaine-ready-btn:active, .chaine-pass:active { transform: translateY(3px); box-shadow: inset 0 1px 0 rgba(255,255,255,0.25), 0 0 0 #07142A; }
.survie-validate:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.survie-end { background: linear-gradient(180deg, #C9432F, #A5231A); box-shadow: inset 0 1px 0 rgba(255,255,255,0.25), 0 3px 0 #6E140D, 0 6px 10px -6px rgba(15,35,64,0.3); }
.survie-next { margin-right: 0.5rem; }

/* Mode survie : barre de statut, chrono, bilan */
.survie-status { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 1.1rem; background: var(--bg); border-radius: 14px; padding: 0.6rem 1rem; margin-bottom: 0.9rem; font-size: 0.85rem; color: var(--ink); box-shadow: inset 0 2px 0 rgba(255,255,255,0.8), 0 3px 0 var(--edge); }
.survie-status strong { font-family: var(--f-title); font-size: 1.15rem; color: var(--deep); }
.survie-quota { margin-left: auto; font-size: 0.78rem; color: var(--ink-soft); }
.survie-timer { text-align: center; font-family: var(--f-title); font-weight: 700; font-size: 1.6rem; color: #A5231A; background: #FBD9D4; border-radius: 12px; padding: 0.25rem; margin-bottom: 0.8rem; font-variant-numeric: tabular-nums; box-shadow: inset 0 2px 0 rgba(255,255,255,0.7), 0 3px 0 #DE918A; }
.survie-summary { background: linear-gradient(180deg, #FFFFFF, #F4F7FB); border-radius: 16px; padding: 1.8rem 1.4rem; text-align: center; box-shadow: inset 0 2px 0 #FFFFFF, 0 3px 0 #C3CEDB, var(--shadow-soft); }
.survie-summary h3 { font-family: var(--f-title); font-size: 1.6rem; line-height: 1.1; margin-bottom: 0.7rem; }
.survie-summary p { font-size: 0.95rem; margin-bottom: 0.4rem; }
.survie-lb-note { font-size: 0.82rem; color: var(--ink-soft); }

/* Signalement de question */
.q-report { margin-top: 0.9rem; padding-top: 0.6rem; border-top: 1px solid #E1E7EF; }
.report-toggle, .survie-report-toggle, .chaine-report-toggle { background: none; border: 0; padding: 0.2rem 0; font: inherit; font-size: 0.78rem; color: var(--ink-soft); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.report-toggle:hover, .survie-report-toggle:hover, .chaine-report-toggle:hover { color: #A5231A; }
.report-panel { margin-top: 0.6rem; padding: 0.8rem; display: flex; flex-direction: column; gap: 0.5rem; background: #EEF2F7; border-radius: 12px; box-shadow: inset 0 3px 6px rgba(15,35,64,0.1); }
.report-panel select { width: 100%; padding: 0.5rem 0.6rem; border: 0; border-radius: 10px; background: #fff; font: inherit; font-size: 0.85rem; color: var(--ink); box-shadow: inset 0 2px 4px rgba(15,35,64,0.12); }
.report-panel textarea { min-height: 2.6rem; background: #fff; }
.report-send, .survie-report-send, .chaine-report-send { align-self: flex-start; border: 0; border-radius: 10px; padding: 0.45rem 1rem; font: inherit; font-size: 0.82rem; font-weight: 600; color: #fff; background: #A5231A; cursor: pointer; box-shadow: 0 3px 0 #6E140D; }
.report-send:active, .survie-report-send:active, .chaine-report-send:active { transform: translateY(3px); box-shadow: none; }
.report-sent, .q-report-closed { font-size: 0.8rem; color: var(--ink-soft); margin-top: 0.5rem; }
@media (prefers-reduced-motion: reduce) { .q-option, .survie-validate, .survie-next, .survie-end, .survie-replay { transition: none; } }

/* ===== Compatibilité avec lib/quiz.js : variables historiques utilisées en style inline ===== */
:root { --c-teal: #12755A; --c-red: #A5231A; --c-amber: #BA7517; --c-gray-text: #5A6B80; --c-gray-border: #C3CEDB; --radius: 14px; }

/* ===== Écrans, progression ===== */
#screen-main { display: block; }
#screen-score { display: none; flex-direction: column; }
.jeu-progress { margin-bottom: 1.1rem; }
.jeu-progress-row { display: flex; justify-content: space-between; font-size: 0.78rem; font-weight: 600; color: var(--ink-soft); margin-bottom: 0.3rem; }
.jeu-progress-track { height: 12px; border-radius: 999px; background: #E1E7EF; overflow: hidden; box-shadow: inset 0 2px 4px rgba(15,35,64,0.15); }
.jeu-progress-fill { height: 100%; border-radius: 999px; background: linear-gradient(180deg, var(--edge), var(--deep)); transition: width 0.3s; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.btn-row .btn, .btn-row .btn-link { margin-top: 0.4rem; }
.btn-ghost { display: inline-flex; align-items: center; gap: 0.4rem; text-decoration: none; background: linear-gradient(180deg, #FFFFFF, #EEF2F7); color: var(--ink); box-shadow: inset 0 2px 0 #FFFFFF, 0 3px 0 #C3CEDB; }
.btn-teal { background: linear-gradient(180deg, #1F9A78, #12755A); box-shadow: inset 0 1px 0 rgba(255,255,255,0.25), 0 3px 0 #0A4A39; }
a.btn { display: inline-flex; align-items: center; gap: 0.4rem; text-decoration: none; }
.btn .i, .survie-validate .i, .survie-replay .i, .chaine-pass .i, .chaine-ready-btn .i, .report-toggle .i, .survie-report-toggle .i, .chaine-report-toggle .i { vertical-align: -0.14em; }

/* ===== Résultat / bilan ===== */
.score-body { max-width: 620px; margin: 0 auto; padding: 1.6rem 1.25rem 3rem; text-align: center; width: 100%; }
.wave { font-size: 2.6rem; color: var(--deep); display: flex; justify-content: center; margin-bottom: 0.2rem; }
.logo-title { font-family: var(--f-title); font-size: 1.7rem; font-weight: 700; margin-bottom: 1rem; }
.score-circle { width: 120px; height: 120px; border-radius: 50%; margin: 0 auto 0.8rem; display: flex; align-items: center; justify-content: center; font-family: var(--f-title); font-size: 2.2rem; font-weight: 700; box-shadow: inset 0 3px 0 rgba(255,255,255,0.35), 0 5px 0 rgba(15,35,64,0.25); }
.score-mention { font-size: 1.1rem; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 0.4rem; }
.score-detail { font-size: 0.88rem; color: var(--ink-soft); margin: 0.3rem 0 1rem; }
.score-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.7rem; margin-top: 1rem; text-align: center; }
.score-item { background: linear-gradient(180deg, #FFFFFF, #F4F7FB); border-radius: 14px; padding: 0.8rem 0.6rem; box-shadow: inset 0 2px 0 #FFFFFF, 0 3px 0 #C3CEDB; }
.score-item .val { font-family: var(--f-title); font-size: 1.35rem; font-weight: 700; line-height: 1.2; display: flex; align-items: center; justify-content: center; gap: 0.3rem; flex-wrap: wrap; }
.score-item .lbl { font-size: 0.74rem; color: var(--ink-soft); margin-top: 0.15rem; }
.qcm-question + .qcm-question { margin-top: 0.9rem; }
.rang .i { font-size: 1.1em; }
.rang-1 .i { color: #C8961A; } .rang-2 .i { color: #7B8794; } .rang-3 .i { color: #A8672E; }
.score-mention .i, .survie-summary h3 .i, .chaine-summary h3 .i, .chaine-setup h3 .i { color: var(--deep); font-size: 1.1em; vertical-align: -0.12em; }
.survie-summary p .i, .chaine-summary p .i { vertical-align: -0.12em; }
.survie-lb-note .i, .chaine-lb-note .i, .report-sent .i { color: #12755A; vertical-align: -0.12em; }
.q-feedback .i { vertical-align: -0.14em; }
.survie-palier-note { text-align: center; font-size: 0.82rem; font-weight: 700; color: #BA7517; margin-bottom: 0.5rem; }
.survie-status .i, .survie-timer .i { vertical-align: -0.14em; }

/* ===== Chaîne collective (accent = body.accent-*) ===== */
.chaine-setup, .chaine-summary { background: linear-gradient(180deg, #FFFFFF, #F4F7FB); border-radius: 16px; padding: 1.5rem; max-width: 480px; margin: 0 auto; box-shadow: inset 0 2px 0 #FFFFFF, 0 3px 0 #C3CEDB, var(--shadow-soft); }
.chaine-summary { text-align: center; }
.chaine-setup h3, .chaine-summary h3 { font-family: var(--f-title); font-size: 1.4rem; line-height: 1.1; margin-bottom: 0.6rem; color: var(--ink); }
.chaine-setup-hint { font-size: 0.85rem; color: var(--ink-soft); line-height: 1.5; margin-bottom: 1.1rem; }
.chaine-label { display: block; font-size: 0.78rem; font-weight: 700; color: var(--ink); margin: 1rem 0 0.35rem; }
.chaine-setup input[type="text"] { width: 100%; padding: 0.6rem 0.75rem; border: 0; border-radius: 10px; font: inherit; font-size: 0.9rem; background: #fff; box-shadow: inset 0 2px 4px rgba(15,35,64,0.14); }
.chaine-roster-list { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.5rem 0; min-height: 1.6rem; }
.chaine-roster-chip { display: inline-flex; align-items: center; gap: 0.35rem; background: var(--bg); color: var(--ink); border-radius: 999px; padding: 0.3rem 0.4rem 0.3rem 0.8rem; font-size: 0.82rem; font-weight: 600; box-shadow: 0 2px 0 var(--edge); }
.chaine-roster-chip button { border: 0; background: none; color: var(--deep); cursor: pointer; font-size: 0.8rem; padding: 0.1rem 0.3rem; }
.chaine-roster-add { display: flex; gap: 0.5rem; }
.chaine-roster-add input { flex: 1; }
.chaine-roster-add button { margin-top: 0; border: 0; border-radius: 10px; padding: 0.55rem 1rem; font: inherit; font-weight: 600; background: var(--bg); color: var(--ink); cursor: pointer; box-shadow: 0 3px 0 var(--edge); }
#chaine-start-btn, .chaine-validate, .chaine-next, .chaine-end, .chaine-replay, .chaine-joker-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; margin-top: 0.8rem; border: 0; border-radius: 12px; padding: 0.6rem 1.2rem; font: inherit; font-weight: 600; font-size: 0.9rem; cursor: pointer; }
#chaine-start-btn, .chaine-validate, .chaine-next, .chaine-replay { width: 100%; color: #fff; background: linear-gradient(180deg, var(--navy-hi), var(--navy)); box-shadow: inset 0 1px 0 rgba(255,255,255,0.25), 0 3px 0 #07142A; }
#chaine-start-btn:disabled, .chaine-validate:disabled { opacity: 0.45; cursor: not-allowed; }
.chaine-end { width: 100%; color: #fff; background: linear-gradient(180deg, #C9432F, #A5231A); box-shadow: inset 0 1px 0 rgba(255,255,255,0.25), 0 3px 0 #6E140D; }
.chaine-joker-btn { background: #F4E0AE; color: #4A3008; box-shadow: 0 3px 0 #D2B063; }
.chaine-joker-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.chaine-pass { background: none; color: var(--ink-soft); font-size: 0.75rem; padding: 0.35rem 0.8rem; margin: 0 0 0 0.5rem; box-shadow: inset 0 0 0 1.5px #C3CEDB; }
.chaine-status { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin-bottom: 0.8rem; font-size: 0.82rem; }
.chaine-status span { background: #fff; border-radius: 999px; padding: 0.3rem 0.8rem; box-shadow: inset 0 0 0 1px #D5DDE8, 0 2px 0 #C3CEDB; }
.chaine-status .chaine-team { font-weight: 700; color: var(--deep); }
.chaine-turn { font-size: 0.95rem; margin-bottom: 0.6rem; }
.chaine-turn strong { color: var(--deep); }
.chaine-concertation { display: flex; align-items: center; gap: 0.6rem; background: #BA7517; color: #fff; border-radius: 14px; padding: 0.6rem 1rem; margin-bottom: 0.8rem; font-size: 0.9rem; font-weight: 700; box-shadow: 0 3px 0 #7A4A05; }
.chaine-concertation strong { font-variant-numeric: tabular-nums; font-size: 1.1rem; }
.chaine-ready-btn { margin: 0 0 0 auto; background: #fff; color: #412402; border: 0; border-radius: 999px; padding: 0.3rem 0.9rem; font-size: 0.78rem; font-weight: 700; box-shadow: 0 2px 0 rgba(0,0,0,0.25); }
.chaine-visual { display: flex; flex-wrap: wrap; align-items: center; gap: 0.15rem; margin-bottom: 1rem; }
.chaine-link { font-size: 0.75rem; font-weight: 700; padding: 0.25rem 0.65rem; border-radius: 999px; }
.chaine-link-ok { background: #D6F0E6; color: #0E5A44; }
.chaine-link-saved { background: #F4E0AE; color: #4A3008; }
.chaine-link-broken { background: #FBD9D4; color: #7A1A12; }
.chaine-sep { font-size: 0.75rem; opacity: 0.5; display: inline-flex; }
.chaine-summary .chaine-visual { justify-content: center; margin: 1rem 0; }
.chaine-summary p { font-size: 0.9rem; margin-bottom: 0.5rem; }
.chaine-lb-note { font-size: 0.8rem; color: var(--ink-soft); }

/* ===== Pages SSUAP / tronc commun : bandeau d'avertissement, carte d'intro, impression ===== */
.qcm-wrap { margin-top: 0.4rem; }
body > .footer { max-width: 760px; margin: 2.5rem auto 3rem; padding: 1.2rem 1.25rem 0; }
.disclaimer-banner { display: flex; gap: 0.6rem; align-items: flex-start; background: linear-gradient(180deg, #FFF6DC, #FAEDC8); border-radius: 14px; padding: 0.85rem 1rem; margin-bottom: 1.2rem; font-size: 0.82rem; color: #4A3008; line-height: 1.55; box-shadow: inset 0 2px 0 rgba(255,255,255,0.8), 0 3px 0 #D2B063; }
.disclaimer-banner .icon { flex-shrink: 0; font-size: 1.15rem; color: #7A4A05; display: inline-flex; margin-top: 0.1rem; }
.intro-card { background: linear-gradient(180deg, #FFFFFF, #F4F7FB); border-radius: 16px; padding: 1.2rem 1.3rem; margin-bottom: 1.2rem; box-shadow: inset 0 2px 0 #FFFFFF, 0 3px 0 #C3CEDB, var(--shadow-soft); }
.intro-card h2 { display: flex; align-items: center; gap: 0.5rem; font-family: var(--f-title); font-size: 1.45rem; line-height: 1.1; margin-bottom: 0.4rem; }
.intro-card h2 .i { color: var(--deep); font-size: 1.3rem; }
.intro-card p { font-size: 0.88rem; color: var(--ink-soft); line-height: 1.55; }
.error-card { background: #FBD9D4; color: #7A1A12; border-radius: 14px; padding: 1.1rem 1.2rem; text-align: center; font-size: 0.9rem; box-shadow: 0 3px 0 #DE918A; }
.error-card .i { vertical-align: -0.14em; }
.print-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 0.9rem; }
.btn-print { display: inline-flex; align-items: center; gap: 0.4rem; border: 0; border-radius: 12px; padding: 0.5rem 1rem; font: inherit; font-size: 0.82rem; font-weight: 600; color: var(--ink); cursor: pointer; background: linear-gradient(180deg, #FFFFFF, #EEF2F7); box-shadow: inset 0 2px 0 #FFFFFF, 0 3px 0 #C3CEDB; }
.btn-print:active { transform: translateY(3px); box-shadow: none; }
.print-header { display: none; }
.main-wrap #screen-score { max-width: 480px; margin: 2.2rem auto; background: linear-gradient(180deg, #FFFFFF, #F4F7FB); border-radius: 16px; padding: 2rem 1.5rem; text-align: center; box-shadow: inset 0 2px 0 #FFFFFF, 0 3px 0 #C3CEDB, var(--shadow-soft); }
#screen-score.show { display: block; }
.score-circle.teal { background: #12755A; color: #fff; } .score-circle.amber { background: #BA7517; color: #fff; } .score-circle.red { background: #A5231A; color: #fff; }
.locked-card { background: linear-gradient(180deg, #FFFFFF, #F4F7FB); border-radius: 16px; padding: 2rem 1.5rem; text-align: center; box-shadow: inset 0 2px 0 #FFFFFF, 0 3px 0 #C3CEDB, var(--shadow-soft); }
.locked-card .big-emoji { font-size: 2.6rem; color: #12755A; display: flex; justify-content: center; margin-bottom: 0.6rem; }
.locked-card .locked-score { font-family: var(--f-title); font-size: 2rem; font-weight: 700; color: #12755A; margin: 0.4rem 0; }
@media print {
  body { background: #fff; }
  .hero, .btn-row, .print-actions, #screen-score, .q-report, .q-report-closed, .jeu-progress { display: none !important; }
  .jeu-wrap { max-width: 100%; padding: 0; }
  .intro-card, .disclaimer-banner { display: none; }
  .print-header { display: block; margin-bottom: 1rem; border-bottom: 2px solid #0F2340; padding-bottom: 0.6rem; }
  .print-header h1 { font-size: 1.1rem; }
  .print-header p { font-size: 0.78rem; margin-top: 0.2rem; }
  .qcm-question { break-inside: avoid; box-shadow: none; border: 1px solid #C3CEDB; }
  .q-option, .q-option:hover, .q-option.selected { box-shadow: inset 0 0 0 1px #C3CEDB; background: #fff; transform: none; }
}

/* ===== Logi'drop (ssuap/logidrop.php) : mise Flouze, blocs et rendu des logigrammes (QCMEngine.renderFlowchart / renderListDrag) ===== */
.hero-in.has-flouze { grid-template-columns: 1fr auto auto; }
.flouze-block { text-align: right; }
.flouze-caption { font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.06em; color: #BFD0E3; font-weight: 600; }
.flouze-balance { font-family: var(--f-title); font-size: 1.7rem; font-weight: 700; line-height: 1.05; font-variant-numeric: tabular-nums; color: var(--blason-gold); }
.flouze-best { font-size: 0.7rem; color: #BFD0E3; }
@media (max-width: 640px) { .hero-in.has-flouze { grid-template-columns: 1fr auto; } .hero-in.has-flouze .hero-logo { display: none; } }
.card { background: linear-gradient(180deg, #FFFFFF, #F4F7FB); border-radius: 16px; padding: 1.2rem 1.3rem; margin-bottom: 1.1rem; box-shadow: inset 0 2px 0 #FFFFFF, 0 3px 0 #C3CEDB, var(--shadow-soft); }
.card h1, .card h2 { display: flex; align-items: center; gap: 0.5rem; font-family: var(--f-title); font-size: 1.45rem; line-height: 1.1; margin-bottom: 0.4rem; }
.card h1 .i, .card h2 .i { color: var(--deep); }
.card p { font-size: 0.88rem; color: var(--ink-soft); line-height: 1.55; }
.block-meta { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--deep); margin-bottom: 0.25rem; }
.block-title { font-family: var(--f-title); font-size: 1.3rem; font-weight: 700; line-height: 1.15; margin-bottom: 0.3rem; }
.block-hint { font-size: 0.8rem; color: var(--ink-soft); margin-bottom: 1rem; line-height: 1.5; }
.bet-row { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; margin: 1rem 0 0.4rem; }
.bet-row input { width: 110px; font: inherit; font-size: 1rem; font-weight: 700; padding: 0.5rem 0.6rem; border: 0; border-radius: 10px; background: #fff; box-shadow: inset 0 2px 4px rgba(15,35,64,0.14); }
.bet-quick { border: 0; border-radius: 999px; padding: 0.35rem 0.9rem; font: inherit; font-size: 0.78rem; font-weight: 600; cursor: pointer; background: linear-gradient(180deg, #FFFFFF, #EEF2F7); box-shadow: inset 0 2px 0 #FFFFFF, 0 2px 0 #C3CEDB; }
.bet-quick:active { transform: translateY(2px); box-shadow: none; }
.bet-error { color: #A5231A; font-size: 0.78rem; min-height: 1.1rem; }
.btn-primary:disabled { opacity: 0.45; cursor: not-allowed; }
.result { margin-top: 1rem; padding: 0.9rem 1rem; border-radius: 14px; font-size: 0.88rem; line-height: 1.5; }
.result.ok { background: #D6F0E6; color: #0E5A44; box-shadow: 0 3px 0 #8CC4AD; }
.result.ko { background: #FBD9D4; color: #7A1A12; box-shadow: 0 3px 0 #DE918A; }
.result .i { vertical-align: -0.14em; }
.result .delta { font-weight: 700; }
.explanation { margin-top: 0.7rem; padding: 0.7rem 0.8rem; background: #EEF2F7; border-radius: 12px; font-size: 0.82rem; line-height: 1.5; color: var(--ink-soft); box-shadow: inset 0 2px 4px rgba(15,35,64,0.08); }
.missing-list { margin-top: 0.6rem; font-size: 0.8rem; }
.missing-list strong { display: block; margin-bottom: 0.25rem; }
.missing-list div { padding: 0.35rem 0.6rem; margin-bottom: 0.3rem; border: 1.5px dashed #BA7517; border-radius: 10px; background: #FAEDC8; color: #4A3008; }
.gameover { text-align: center; }
.gameover .big { font-family: var(--f-title); font-size: 2.2rem; font-weight: 700; color: #A5231A; margin: 0.4rem 0; }
.ld-locked { pointer-events: none; }
.ld-scroll { overflow-x: auto; padding-bottom: 0.3rem; }
.ld-flow-diagram { display: flex; flex-direction: column; align-items: stretch; gap: 0.4rem; margin: 0 auto 1.2rem; max-width: 100%; min-width: min-content; }
.ld-flow-connector { text-align: center; color: var(--ink-soft); font-size: 1rem; line-height: 1.4; }
.ld-flow-decision { background: #fff; border-radius: 12px; padding: 0.55rem 0.85rem; font-size: 0.82rem; font-weight: 600; text-align: center; box-shadow: inset 0 0 0 1.5px #C3CEDB; }
.ld-flow-branches { display: flex; gap: 0.5rem; align-items: flex-start; }
.ld-flow-branch { flex: 1 1 0; min-width: 150px; display: flex; flex-direction: column; gap: 0.3rem; align-items: stretch; }
.ld-flow-branch-label { align-self: center; font-size: 0.66rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; padding: 1px 9px; border-radius: 999px; text-align: center; }
.ld-flow-branch-label.yes { background: #D6F0E6; color: #0E5A44; }
.ld-flow-branch-label.no { background: #FBD9D4; color: #7A1A12; }
.ld-flow-merge-pointer { text-align: center; font-size: 0.74rem; font-weight: 700; color: #4A3008; background: #FAEDC8; border-radius: 10px; padding: 0.3rem 0.5rem; }
.ld-flow-merge-section { margin-top: 0.8rem; padding-top: 0.6rem; border-top: 2px dashed #C3CEDB; display: flex; flex-direction: column; gap: 0.4rem; }
.ld-flow-merge-heading { font-size: 0.76rem; font-weight: 700; color: #4A3008; text-align: center; }
.ld-dropzone { width: 100%; min-height: 42px; border-radius: 12px; background: var(--bg); display: flex; align-items: center; justify-content: center; text-align: center; padding: 0.5rem 0.7rem; font-size: 0.82rem; font-weight: 600; color: var(--ink); cursor: pointer; border: 2px dashed var(--deep); transition: background 0.12s, border-color 0.12s; }
.ld-dropzone:empty::before { content: attr(data-placeholder); color: var(--deep); opacity: 0.65; font-weight: 500; }
.ld-dropzone.filled { border-style: solid; background: #fff; }
.ld-dropzone.correct { border-color: #12755A; background: #D6F0E6; color: #0E5A44; }
.ld-dropzone.wrong { border-color: #A5231A; background: #FBD9D4; color: #7A1A12; }
.ld-expected { font-size: 0.74rem; color: #0E5A44; background: #D6F0E6; border-radius: 10px; padding: 0.3rem 0.5rem; text-align: center; }
.ld-pool-label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-soft); margin: 0.4rem 0 0.5rem; }
.ld-pool { display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0.9rem; background: #fff; border-radius: 14px; box-shadow: inset 0 2px 4px rgba(15,35,64,0.1); }
.ld-pool:empty::after { content: "Toutes les étiquettes sont placées."; font-size: 0.8rem; color: var(--ink-soft); font-style: italic; }
.ld-chip { padding: 0.5rem 0.85rem; border: 0; border-radius: 999px; font-size: 0.82rem; font-weight: 500; cursor: pointer; background: linear-gradient(180deg, #FFFFFF, #EEF2F7); box-shadow: inset 0 2px 0 #FFFFFF, 0 2px 0 #C3CEDB; }
.ld-chip:hover { box-shadow: inset 0 2px 0 #FFFFFF, 0 2px 0 var(--edge); }
.ld-chip.selected { background: var(--bg); color: var(--ink); font-weight: 700; box-shadow: inset 0 0 0 1.5px var(--deep), 0 2px 0 var(--edge); }
.ld-target-list { background: #fff; border-radius: 14px; padding: 1rem; margin-bottom: 1rem; min-height: 60px; box-shadow: inset 0 2px 4px rgba(15,35,64,0.1); }
.ld-target-placeholder { font-size: 0.82rem; color: var(--ink-soft); font-style: italic; }
.ld-target-item { display: flex; align-items: center; gap: 0.5rem; padding: 0.55rem 0.75rem; border-radius: 12px; font-size: 0.85rem; margin-bottom: 0.4rem; cursor: pointer; background: #EEF2F7; box-shadow: inset 0 0 0 1px #D5DDE8; }
.ld-target-item:last-child { margin-bottom: 0; }
.ld-target-item.correct { background: #D6F0E6; color: #0E5A44; box-shadow: inset 0 0 0 1.5px #12755A; }
.ld-target-item.wrong { background: #FBD9D4; color: #7A1A12; box-shadow: inset 0 0 0 1.5px #A5231A; }
.ld-rm { margin-left: auto; font-size: 0.72rem; color: var(--ink-soft); }
