/* Quiz DDB — styles (préfixés .ddbq pour ne pas interférer avec le thème) */
.ddbq-root {
	--ddbq-bordeaux: #af0142;
	--ddbq-bordeaux-d: #6d0029;
	--ddbq-jaune: #ffba00;
	--ddbq-ardoise: #344050;
	--ddbq-vert: #4dac27;
	--ddbq-bleu: #1d6fb8;
	--ddbq-c0: #af0142;
	--ddbq-c1: #1d6fb8;
	--ddbq-c2: #f0a800;
	--ddbq-c3: #3f9a1f;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 16px;
	line-height: 1.4;
	color: #1d2430;
	box-sizing: border-box;
	-webkit-tap-highlight-color: transparent;
}
.ddbq-root *, .ddbq-root *::before, .ddbq-root *::after { box-sizing: border-box; }
.ddbq-root h1, .ddbq-root h2, .ddbq-root h3 { font-family: inherit; margin: 0 0 .4em; line-height: 1.2; color: inherit; letter-spacing: 0; text-transform: none; }
.ddbq-root p { margin: 0 0 .6em; }
.ddbq-root img { max-width: 100%; height: auto; }
html.ddbq-lock, html.ddbq-lock body { overflow: hidden !important; }

.ddbq-full {
	position: fixed; inset: 0; z-index: 100000;
	overflow-y: auto; -webkit-overflow-scrolling: touch;
	display: flex; flex-direction: column;
}

/* Couleurs des réponses (forme + couleur : lisible même pour les daltoniens) */
.ddbq-root .ddbq-c0 { background: var(--ddbq-c0); color: #fff; }
.ddbq-root .ddbq-c1 { background: var(--ddbq-c1); color: #fff; }
.ddbq-root .ddbq-c2 { background: var(--ddbq-c2); color: #1d2430; }
.ddbq-root .ddbq-c3 { background: var(--ddbq-c3); color: #fff; }

/* Boutons (spécificité suffisante pour passer devant le thème Astra) */
.ddbq-root .ddbq-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .4em;
	font: inherit; font-weight: 700; font-size: 16px; line-height: 1.2;
	padding: 12px 18px; border-radius: 12px; border: 2px solid transparent;
	cursor: pointer; text-decoration: none; text-align: center; text-transform: none; letter-spacing: normal;
	background: var(--ddbq-ardoise); color: #fff; box-shadow: none; width: auto; min-height: 0;
	transition: transform .08s ease, filter .15s ease, opacity .15s;
}
.ddbq-root .ddbq-btn:hover { filter: brightness(1.08); color: #fff; }
.ddbq-root .ddbq-btn:active { transform: scale(.98); }
.ddbq-root .ddbq-btn:disabled { opacity: .5; cursor: default; transform: none; }
.ddbq-root .ddbq-btn-main { background: var(--ddbq-bordeaux); color: #fff; font-size: 18px; padding: 15px 22px; }
.ddbq-root .ddbq-btn-alt { background: #fff; color: var(--ddbq-ardoise); border-color: #cfd6e0; }
.ddbq-root .ddbq-btn-alt:hover { color: var(--ddbq-ardoise); border-color: var(--ddbq-ardoise); }
.ddbq-root .ddbq-btn-ghost { background: transparent; color: #5b6575; border-color: #d9dee6; }
.ddbq-root .ddbq-btn-ghost:hover { color: #1d2430; }
.ddbq-root .ddbq-btn-danger { background: #fff; color: #b3261e; border-color: #e8b4b0; margin-top: 12px; }
.ddbq-root .ddbq-btn-danger:hover { background: #b3261e; color: #fff; }

.ddbq-root .ddbq-muted { color: #6b7483; }
.ddbq-root .ddbq-small { font-size: 13px; }
.ddbq-root .ddbq-center { text-align: center; }
.ddbq-root .ddbq-accent { color: var(--ddbq-bordeaux); }
.ddbq-root .ddbq-error { color: #b3261e; font-weight: 600; min-height: 1em; }
.ddbq-root .ddbq-warn { color: #8a5a00; background: #fff6dc; border-radius: 8px; padding: 8px 12px; }
.ddbq-root .ddbq-notice { background: #fff6dc; color: #6b4a00; border-radius: 10px; padding: 10px 12px; font-weight: 600; }

/* ====================================================================== */
/* Joueur                                                                  */
/* ====================================================================== */
.ddbq-player { background: linear-gradient(165deg, var(--ddbq-bordeaux) 0%, var(--ddbq-bordeaux-d) 100%); color: #fff; }
.ddbq-ph { display: flex; align-items: center; gap: 12px; padding: 12px 16px; }
.ddbq-ph .ddbq-logo { height: 34px; width: auto; background: #fff; border-radius: 8px; padding: 4px 8px; }
.ddbq-ph-title { font-weight: 800; font-size: 17px; line-height: 1.15; }
.ddbq-pm { flex: 1; width: 100%; max-width: 560px; margin: 0 auto; padding: 8px 14px 24px; display: flex; flex-direction: column; gap: 12px; }
.ddbq-pf { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(0,0,0,.28); font-weight: 700; position: sticky; bottom: 0; }
.ddbq-pf-score { background: var(--ddbq-jaune); color: #1d2430; padding: 3px 12px; border-radius: 999px; }

.ddbq-root .ddbq-card { background: #fff; color: #1d2430; border-radius: 18px; padding: 20px; box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.ddbq-root .ddbq-card h2 { font-size: 22px; font-weight: 800; }
.ddbq-root .ddbq-card h3 { font-size: 16px; font-weight: 800; }
.ddbq-join { display: flex; flex-direction: column; gap: 8px; }
.ddbq-root .ddbq-label { font-weight: 700; font-size: 15px; margin-top: 6px; display: block; color: #1d2430; }
.ddbq-root .ddbq-opt { font-weight: 400; color: #6b7483; }
.ddbq-root input.ddbq-input {
	width: 100%; font: inherit; font-size: 18px; padding: 12px 14px; margin: 0;
	border: 2px solid #d5dbe3; border-radius: 12px; background: #fff; color: #1d2430; box-shadow: none; height: auto;
}
.ddbq-root input.ddbq-input:focus { border-color: var(--ddbq-bordeaux); outline: none; box-shadow: 0 0 0 3px rgba(175,1,66,.15); }
.ddbq-consents { display: flex; flex-direction: column; gap: 8px; transition: opacity .2s; }
.ddbq-consents.ddbq-dim { opacity: .55; }
.ddbq-root .ddbq-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.35; cursor: pointer; color: #1d2430; }
.ddbq-root .ddbq-check input { width: 22px; height: 22px; margin: 0; flex: 0 0 22px; accent-color: var(--ddbq-bordeaux); }
.ddbq-root .ddbq-note { font-size: 12px; color: #6b7483; line-height: 1.4; margin: 4px 0 0; }
.ddbq-root .ddbq-note a { color: var(--ddbq-bordeaux); }
.ddbq-join .ddbq-btn-main { margin-top: 8px; width: 100%; }

.ddbq-big-emoji { font-size: 54px; line-height: 1; margin-bottom: 8px; }
.ddbq-wait p { font-size: 17px; }
.ddbq-dots { display: flex; gap: 8px; justify-content: center; margin-top: 12px; }
.ddbq-dots i { width: 12px; height: 12px; border-radius: 50%; background: var(--ddbq-bordeaux); animation: ddbq-bounce 1.2s infinite ease-in-out; }
.ddbq-dots i:nth-child(2) { animation-delay: .15s; }
.ddbq-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes ddbq-bounce { 0%, 80%, 100% { transform: scale(.5); opacity: .4; } 40% { transform: scale(1); opacity: 1; } }

.ddbq-qhead { display: flex; justify-content: space-between; gap: 8px; }
.ddbq-root .ddbq-pill { background: rgba(255,255,255,.18); color: #fff; padding: 4px 12px; border-radius: 999px; font-weight: 700; font-size: 14px; }
.ddbq-root .ddbq-pill-soft { background: var(--ddbq-jaune); color: #1d2430; }
.ddbq-timer { display: flex; align-items: center; gap: 10px; }
.ddbq-tbar { flex: 1; height: 10px; border-radius: 999px; background: rgba(255,255,255,.2); overflow: hidden; }
.ddbq-tbar i { display: block; height: 100%; background: var(--ddbq-jaune); border-radius: 999px; transition: width .2s linear; }
.ddbq-tbar.ddbq-low i { background: #fff; }
.ddbq-tsec { font-weight: 800; min-width: 3em; text-align: right; font-variant-numeric: tabular-nums; }
.ddbq-root .ddbq-qtext { font-size: 20px; font-weight: 800; color: #fff; margin: 4px 0; }
.ddbq-qimg { border-radius: 14px; max-height: 32vh; object-fit: contain; align-self: center; background: #fff; }

.ddbq-answers { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; flex: 1; min-height: 46vh; }
.ddbq-answers.ddbq-n2 { grid-template-columns: 1fr; }
.ddbq-answers.ddbq-n3 .ddbq-ans:last-child { grid-column: 1 / -1; }
.ddbq-root .ddbq-ans {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
	border: 0; border-radius: 16px; padding: 14px 10px; min-height: 96px; margin: 0;
	font: inherit; font-weight: 800; font-size: 17px; line-height: 1.2; text-align: center; cursor: pointer; text-transform: none; letter-spacing: normal;
	box-shadow: inset 0 -5px 0 rgba(0,0,0,.2); transition: transform .08s;
}
.ddbq-root .ddbq-ans:active { transform: scale(.97); }
.ddbq-root .ddbq-ans:hover { filter: brightness(1.06); }
.ddbq-ans .ddbq-shape { font-size: 30px; line-height: 1; }
.ddbq-sent .ddbq-chosen, .ddbq-card .ddbq-chosen { width: 92px; height: 92px; border-radius: 22px; margin: 0 auto 12px; display: flex; align-items: center; justify-content: center; font-size: 44px; }

.ddbq-result { border-radius: 18px; padding: 22px 18px; text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,.2); }
.ddbq-result h2 { font-size: 26px; font-weight: 900; }
.ddbq-ok { background: #2f8f18; color: #fff; }
.ddbq-ko { background: #fff; color: #1d2430; border: 4px solid #d8364b; }
.ddbq-none { background: #fff; color: #1d2430; }
.ddbq-gain { font-size: 30px; font-weight: 900; margin: 4px 0; }
.ddbq-ok .ddbq-gain { color: var(--ddbq-jaune); }
.ddbq-bonus { font-weight: 700; }
.ddbq-expl { font-size: 15px; }
.ddbq-myrank { font-size: 46px; font-weight: 900; color: var(--ddbq-bordeaux); margin: 0; }
.ddbq-myrank span { font-size: 22px; color: #6b7483; }
.ddbq-rankline { text-align: center; }
.ddbq-podium-me { border: 4px solid var(--ddbq-jaune); }
.ddbq-root .ddbq-minilist { list-style: none; margin: 0; padding: 0; }
.ddbq-minilist li { display: flex; gap: 10px; padding: 7px 4px; border-bottom: 1px solid #eef1f5; }
.ddbq-minilist li.ddbq-me { background: #fff4d1; border-radius: 8px; font-weight: 700; }
.ddbq-ml-rank { width: 1.8em; font-weight: 800; color: var(--ddbq-bordeaux); }
.ddbq-ml-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ddbq-ml-score { font-weight: 700; font-variant-numeric: tabular-nums; }

/* Confettis */
.ddbq-confetti { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 100001; }
.ddbq-confetti i { position: absolute; top: -20px; width: 10px; height: 16px; border-radius: 2px; animation: ddbq-fall linear infinite; opacity: .9; }
@keyframes ddbq-fall { to { transform: translateY(110vh) rotate(720deg); } }

/* ====================================================================== */
/* Écran (vidéoprojecteur, 16:9)                                           */
/* ====================================================================== */
.ddbq-screen {
	background: radial-gradient(ellipse at top left, #3a4659 0%, #1d2533 60%, #141a24 100%);
	color: #fff; font-size: clamp(16px, 1.25vw, 30px); overflow: hidden;
}
.ddbq-sh { display: flex; justify-content: space-between; align-items: center; padding: 1.1vh 2vw; border-bottom: 1px solid rgba(255,255,255,.08); }
.ddbq-sh-left, .ddbq-sh-right { display: flex; align-items: center; gap: 1.2vw; }
.ddbq-logo-pill { background: #fff; border-radius: .7vw; padding: .5vh .8vw; display: flex; }
.ddbq-logo-pill .ddbq-logo { height: 4.6vh; width: auto; display: block; }
.ddbq-sh-title { font-weight: 800; font-size: 1.35em; }
.ddbq-sh-sub { opacity: .7; font-size: .8em; }
.ddbq-root .ddbq-chip { background: rgba(255,255,255,.12); padding: .35em .9em; border-radius: 999px; font-weight: 700; }
.ddbq-root .ddbq-chip-gold { background: var(--ddbq-jaune); color: #1d2430; }
.ddbq-sm { flex: 1; display: flex; align-items: stretch; justify-content: center; padding: 2.4vh 2.4vw; min-height: 0; }
.ddbq-root .ddbq-fs { position: fixed; left: 1vw; text-transform: none; letter-spacing: normal; bottom: 1.4vh; background: rgba(255,255,255,.14); color: #fff; border: 0; border-radius: 999px; padding: .5em 1em; font: inherit; font-size: 14px; cursor: pointer; transition: opacity .4s; z-index: 2; }
.ddbq-root .ddbq-fs.ddbq-hide { opacity: 0; }

/* Salle d'attente */
.ddbq-lobby { display: grid; grid-template-columns: minmax(0, 42fr) minmax(0, 58fr); gap: 3vw; width: 100%; align-items: center; }
.ddbq-lobby-join { background: #fff; color: #1d2430; border-radius: 2vw; padding: 3vh 2vw; text-align: center; box-shadow: 0 2vh 5vh rgba(0,0,0,.35); }
.ddbq-lobby-kicker { font-weight: 800; font-size: 1.3em; margin-bottom: 1.5vh; color: var(--ddbq-bordeaux); }
.ddbq-qr { width: min(26vw, 52vh); margin: 0 auto; }
.ddbq-qr svg, .ddbq-qr-mini svg { display: block; width: 100%; height: auto; }
.ddbq-url { font-weight: 900; font-size: 2em; margin-top: 1.2vh; letter-spacing: .01em; word-break: break-all; }
.ddbq-count { font-size: 1.6em; margin-bottom: 2vh; }
.ddbq-count strong { font-size: 2.6em; color: var(--ddbq-jaune); font-weight: 900; margin-right: .1em; }
.ddbq-names { display: flex; flex-wrap: wrap; gap: .6vw; max-height: 52vh; overflow: hidden; align-content: flex-start; }
.ddbq-name { background: rgba(255,255,255,.12); padding: .4em .9em; border-radius: 999px; font-weight: 700; font-size: 1.05em; }
.ddbq-name.ddbq-new { background: var(--ddbq-jaune); color: #1d2430; animation: ddbq-pop .5s ease; }
@keyframes ddbq-pop { 0% { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.12); } 100% { transform: scale(1); opacity: 1; } }
.ddbq-hint { opacity: .65; margin-top: 3vh; }
.ddbq-screen .ddbq-muted { color: rgba(255,255,255,.65); }

/* Question */
.ddbq-qlayout { display: grid; grid-template-columns: minmax(0, 1fr) 17vw; gap: 2vw; width: 100%; min-height: 0; }
.ddbq-qmain { display: flex; flex-direction: column; gap: 2vh; min-height: 0; }
.ddbq-sq { display: flex; gap: 2vw; align-items: center; justify-content: center; background: rgba(255,255,255,.06); border-radius: 1.6vw; padding: 2.4vh 2vw; flex: 1; min-height: 0; }
.ddbq-root .ddbq-sq-text { font-size: 2.3em; font-weight: 800; text-align: center; margin: 0; color: #fff; }
.ddbq-sq-img { max-height: 34vh; max-width: 40%; border-radius: 1vw; object-fit: contain; background: #fff; }
.ddbq-sq-small { flex: 0 0 auto; padding: 1.6vh 2vw; }
.ddbq-root .ddbq-sq-small .ddbq-sq-text { font-size: 1.6em; }
.ddbq-sq-small .ddbq-sq-img { max-height: 16vh; }
.ddbq-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2vw; }
.ddbq-tiles.ddbq-n3 .ddbq-tile:last-child { grid-column: 1 / -1; }
.ddbq-tile { position: relative; overflow: hidden; display: flex; align-items: center; gap: 1.2vw; border-radius: 1.2vw; padding: 2.6vh 1.6vw; min-height: 12vh; font-weight: 800; font-size: 1.45em; box-shadow: inset 0 -.6vh 0 rgba(0,0,0,.2); }
.ddbq-tile .ddbq-shape { font-size: 1.4em; width: 1.4em; text-align: center; flex: 0 0 auto; position: relative; z-index: 1; }
.ddbq-tile-text { flex: 1; position: relative; z-index: 1; }
.ddbq-tile-count { position: relative; z-index: 1; font-size: 1.3em; display: flex; align-items: center; gap: .4em; }
.ddbq-tile-bar { position: absolute; left: 0; bottom: 0; height: .9vh; background: rgba(255,255,255,.75); transition: width .8s ease; }
.ddbq-st-reveal .ddbq-tile { min-height: 17vh; font-size: 1.6em; }
.ddbq-st-reveal .ddbq-qmain { justify-content: center; }
.ddbq-reveal .ddbq-wrong { opacity: .32; filter: saturate(.5); }
.ddbq-reveal .ddbq-right { outline: .5vh solid #fff; transform: scale(1.02); animation: ddbq-glow 1.6s ease-in-out infinite alternate; }
@keyframes ddbq-glow { from { box-shadow: 0 0 0 0 rgba(255,255,255,.0); } to { box-shadow: 0 0 3vh .5vh rgba(255,255,255,.35); } }
.ddbq-tick { background: #fff; color: #2f8f18; width: 1.6em; height: 1.6em; font-weight: 900; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: .9em; }
.ddbq-qside { display: flex; flex-direction: column; gap: 2vh; align-items: stretch; }
.ddbq-ring { position: relative; width: 100%; aspect-ratio: 1 / 1; max-width: 15vw; margin: 0 auto; }
.ddbq-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ddbq-ring-bg { fill: rgba(255,255,255,.06); stroke: rgba(255,255,255,.14); stroke-width: 8; }
.ddbq-ring-fg { fill: none; stroke: var(--ddbq-jaune); stroke-width: 8; stroke-linecap: round; transition: stroke-dashoffset .2s linear, stroke .3s; }
.ddbq-ring-num { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 3.4em; font-weight: 900; font-variant-numeric: tabular-nums; }
.ddbq-ring.ddbq-low .ddbq-ring-fg { stroke: #ff5a6e; }
.ddbq-ring.ddbq-low .ddbq-ring-num { color: #ff8a98; animation: ddbq-pulse 1s infinite; }
@keyframes ddbq-pulse { 50% { transform: scale(1.08); } }
.ddbq-answered, .ddbq-rate { background: rgba(255,255,255,.08); border-radius: 1vw; padding: 1.6vh 1vw; text-align: center; }
.ddbq-answered span, .ddbq-rate span { display: block; opacity: .7; font-size: .85em; }
.ddbq-answered strong, .ddbq-rate strong { font-size: 2.2em; font-weight: 900; color: var(--ddbq-jaune); font-variant-numeric: tabular-nums; }
.ddbq-closed { text-align: center; font-weight: 900; font-size: 1.4em; color: #ff8a98; }
.ddbq-mini-join { margin-top: auto; background: #fff; color: #1d2430; border-radius: 1vw; padding: 1vh .8vw; text-align: center; font-size: .7em; font-weight: 700; }
.ddbq-qr-mini { width: 60%; margin: 0 auto .4vh; }
.ddbq-sexpl { background: rgba(255,186,0,.12); border-left: .4vw solid var(--ddbq-jaune); border-radius: .8vw; padding: 1.4vh 1.4vw; font-size: 1.05em; }
.ddbq-sexpl strong { color: var(--ddbq-jaune); }
.ddbq-sexpl p { margin: .3em 0 0; }
.ddbq-fast-box { background: rgba(255,255,255,.08); border-radius: 1vw; padding: 1.4vh 1vw; }
.ddbq-fast-title { font-weight: 800; margin-bottom: .6vh; color: var(--ddbq-jaune); }
.ddbq-root .ddbq-fastest { margin: 0; padding-left: 1.4em; }
.ddbq-fastest li { margin: .3em 0; font-weight: 700; }
.ddbq-fastest li em { display: block; font-style: normal; font-weight: 400; opacity: .7; font-size: .8em; }

/* Classement */
.ddbq-board-wrap, .ddbq-final { width: 100%; max-width: 72vw; margin: 0 auto; display: flex; flex-direction: column; }
.ddbq-root .ddbq-stitle { text-align: center; font-size: 2.2em; font-weight: 900; margin-bottom: 2.4vh; color: #fff; }
.ddbq-root .ddbq-board { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1vh; }
.ddbq-board li { display: flex; align-items: center; gap: 1vw; animation: ddbq-slide .5s ease both; }
@keyframes ddbq-slide { from { opacity: 0; transform: translateX(-3vw); } to { opacity: 1; transform: none; } }
.ddbq-b-rank { width: 2.2em; height: 2.2em; border-radius: 50%; background: rgba(255,255,255,.14); display: flex; align-items: center; justify-content: center; font-weight: 900; flex: 0 0 auto; }
.ddbq-board li:nth-child(1) .ddbq-b-rank { background: var(--ddbq-jaune); color: #1d2430; }
.ddbq-board li:nth-child(2) .ddbq-b-rank { background: #d7dde6; color: #1d2430; }
.ddbq-board li:nth-child(3) .ddbq-b-rank { background: #d79b62; color: #1d2430; }
.ddbq-b-bar { background: linear-gradient(90deg, var(--ddbq-bordeaux), #d4245f); border-radius: .8vw; padding: 1.1vh 1.2vw; min-width: 0; transition: width .8s ease; }
.ddbq-b-name { font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.ddbq-b-score { margin-left: auto; font-weight: 900; font-size: 1.2em; font-variant-numeric: tabular-nums; }

/* Podium */
.ddbq-podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6vw; align-items: end; height: 52vh; }
.ddbq-pod { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; animation: ddbq-rise .9s cubic-bezier(.2,.9,.3,1.2) both; }
@keyframes ddbq-rise { from { opacity: 0; transform: translateY(8vh); } to { opacity: 1; transform: none; } }
.ddbq-pod-medal { font-size: 3.2em; line-height: 1; }
.ddbq-pod-name { font-weight: 900; font-size: 1.6em; text-align: center; margin: .3em 0 .1em; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ddbq-pod-score { opacity: .85; margin-bottom: 1vh; font-weight: 700; }
.ddbq-pod-block { width: 100%; border-radius: 1vw 1vw 0 0; display: flex; align-items: flex-start; justify-content: center; padding-top: 1.5vh; font-size: 3em; font-weight: 900; color: rgba(255,255,255,.9); }
.ddbq-pod-1 .ddbq-pod-block { height: 28vh; background: linear-gradient(180deg, #ffcb3d, #e2a100); color: #5a3d00; }
.ddbq-pod-2 .ddbq-pod-block { height: 20vh; background: linear-gradient(180deg, #e6ebf1, #b9c3cf); color: #3a4554; }
.ddbq-pod-3 .ddbq-pod-block { height: 14vh; background: linear-gradient(180deg, #e3a978, #b97a45); color: #4a2c12; }
.ddbq-root .ddbq-rest { columns: 2; column-gap: 3vw; margin: 3vh auto 0; padding: 0 0 0 1.6em; max-width: 60vw; }
.ddbq-rest li { margin: .4em 0; break-inside: avoid; }
.ddbq-rest li span { font-weight: 700; margin-right: .6em; }
.ddbq-rest li b { opacity: .7; font-weight: 600; }

/* ====================================================================== */
/* Pilotage                                                                */
/* ====================================================================== */
.ddbq-pilot { background: #f3f5f8; }
.ddbq-pilot.ddbq-full { background: #f3f5f8; }
.ddbq-pv { max-width: 980px; width: 100%; margin: 0 auto; padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.ddbq-inadmin .ddbq-pv { padding: 16px 0; margin: 0; }
.ddbq-plinks { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ddbq-root .ddbq-link { background: #fff; border: 1px solid #d5dbe3; border-radius: 999px; padding: 6px 14px; text-decoration: none; color: #1d2430; font-weight: 600; font-size: 14px; }
.ddbq-root .ddbq-link:hover { border-color: var(--ddbq-bordeaux); color: var(--ddbq-bordeaux); }
.ddbq-root .ddbq-select { font: inherit; font-size: 14px; border-radius: 999px; padding: 5px 30px 5px 14px; border: 1px solid #d5dbe3; min-height: 34px; max-width: 100%; }
.ddbq-pcard { background: #fff; border-radius: 14px; padding: 16px 18px; box-shadow: 0 1px 3px rgba(20,30,50,.08); border: 1px solid #e4e8ee; }
.ddbq-root .ddbq-pcard h3 { font-size: 16px; font-weight: 800; margin-bottom: 10px; }
.ddbq-ptitle { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.ddbq-root .ddbq-ptitle h2 { font-size: 20px; font-weight: 800; margin: 0; }
.ddbq-badge { border-radius: 999px; padding: 4px 12px; font-weight: 800; font-size: 13px; background: #e9edf2; color: #344050; }
.ddbq-b-open { background: var(--ddbq-jaune); color: #1d2430; }
.ddbq-b-closed { background: #ffd9de; color: #8a1023; }
.ddbq-b-reveal { background: #dff3d6; color: #24620f; }
.ddbq-b-leaderboard { background: #dcebfa; color: #124a7c; }
.ddbq-b-finished { background: var(--ddbq-bordeaux); color: #fff; }
.ddbq-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ddbq-stat { background: #f6f8fb; border-radius: 10px; padding: 10px; text-align: center; }
.ddbq-stat strong { display: block; font-size: 24px; font-weight: 900; color: var(--ddbq-bordeaux); font-variant-numeric: tabular-nums; }
.ddbq-stat span { font-size: 12px; color: #6b7483; }
.ddbq-pactions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.ddbq-pactions .ddbq-btn-main { flex: 1 1 260px; }
.ddbq-ptimer { font-variant-numeric: tabular-nums; opacity: .85; }
.ddbq-next { flex-basis: 100%; margin: 4px 0 0; color: #5b6575; font-size: 14px; }
.ddbq-ok-msg { margin: 0; font-weight: 600; }
.ddbq-pmsg:empty { display: none; }
.ddbq-pmsg { background: #fff6dc; color: #6b4a00; border-radius: 10px; padding: 10px 12px; margin: 0; font-weight: 600; }
.ddbq-prows { display: flex; flex-direction: column; gap: 6px; }
.ddbq-prow { display: grid; grid-template-columns: 30px minmax(0, 1fr) 30% 34px; gap: 10px; align-items: center; padding: 6px 8px; border-radius: 10px; }
.ddbq-prow-ok { background: #e9f7e3; font-weight: 700; }
.ddbq-pshape { width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 15px; }
.ddbq-prow-bar { height: 10px; background: #edf0f4; border-radius: 999px; overflow: hidden; }
.ddbq-prow-bar i { display: block; height: 100%; background: var(--ddbq-ardoise); border-radius: 999px; }
.ddbq-prow-ok .ddbq-prow-bar i { background: var(--ddbq-vert); }
.ddbq-prow-n { text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; }
.ddbq-ptable-wrap { max-height: 420px; overflow: auto; }
.ddbq-root .ddbq-ptable { width: 100%; border-collapse: collapse; font-size: 14px; margin: 0; }
.ddbq-ptable th, .ddbq-ptable td { text-align: left; padding: 7px 8px; border-bottom: 1px solid #eef1f5; }
.ddbq-ptable th { color: #6b7483; font-weight: 600; font-size: 12px; text-transform: uppercase; position: sticky; top: 0; background: #fff; }
.ddbq-root .ddbq-kick { background: none; border: 0; color: #a0a8b5; cursor: pointer; font-size: 15px; padding: 2px 6px; border-radius: 6px; }
.ddbq-root .ddbq-kick:hover { color: #b3261e; background: #fbe9e7; }
.ddbq-pexports { display: flex; flex-wrap: wrap; gap: 8px; }

/* Petits écrans */
@media (max-width: 720px) {
	.ddbq-stats { grid-template-columns: 1fr 1fr 1fr; }
	.ddbq-stat strong { font-size: 19px; }
	.ddbq-prow { grid-template-columns: 26px minmax(0, 1fr) 22% 28px; }
}
@media (max-height: 640px) {
	.ddbq-answers { min-height: 38vh; }
	.ddbq-root .ddbq-ans { min-height: 70px; }
}
@media (prefers-reduced-motion: reduce) {
	.ddbq-root *, .ddbq-confetti i { animation: none !important; transition: none !important; }
}
.ddbq-player .ddbq-pm > .ddbq-muted { color: rgba(255,255,255,.85); }


/* Le plein écran ne doit pas hériter des largeurs/marges imposées par le thème (mise en page « contrainte » d'Astra/Gutenberg). */
.ddbq-root.ddbq-full { max-width: none !important; width: auto !important; margin: 0 !important; padding: 0 !important; inset: 0 !important; left: 0 !important; right: 0 !important; top: 0 !important; bottom: 0 !important; }


/* Écran : tout doit tenir dans la fenêtre, quel que soit son format (16:9, 16:10, fenêtre réduite). */
.ddbq-screen .ddbq-sm { overflow: hidden; }
.ddbq-qlayout { height: 100%; }
.ddbq-qside { min-height: 0; overflow: hidden; }
.ddbq-ring { max-width: min(15vw, 24vh); }
.ddbq-qr-mini { width: min(60%, 12vh); }
.ddbq-tile { min-height: 10vh; padding: 2vh 1.6vw; }
