/* Décembre ensemble — styles du calendrier et des popups (repris de la démo validée) */
:root {
  --bg: #2e1a52; --bg-deep: #22123f; --tile: #e6e5ec; --ink: #2e1a52;
  --accent: #7a00e6; --accent-dark: #5d00b0; --accent-soft: #b98cff; --lilac: #e7dcfb;
  --text: #f4f1fa; --muted: #b7acd0;
  --surface: #ffffff; --page: #f5f4f8; --line: #e2dfea; --ink-2: #5e5673; --ink-3: #7a7290;
  --good: #0a7a4f; --good-bg: #e2f5ec; --bad: #b3261e; --bad-bg: #fbe9e7; --warn: #8a5a00; --warn-bg: #fdf1d8;
  --gap: clamp(6px, 1.2vw, 12px); --r: clamp(28px, 6vw, 72px);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { min-height: 100vh; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; color: var(--ink); background: var(--page); }
body[data-view="front"] { background: var(--bg); color: var(--text); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
html.noscroll { overflow: hidden; }
:focus-visible { outline: 3px solid var(--accent-soft); outline-offset: 2px; }

/* --- Barre de démo --- */
.demobar { position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; padding: 8px 16px; background: #150a2b; color: #fff; font-size: 14px; }

.demobar select, .demobar button { background: #2a1a4a; color: #fff; border: 1px solid #4a3577; border-radius: 999px; padding: 5px 12px; }
.demobar label { color: #c9bfdf; }

/* --- Calendrier collaborateur --- */

  
  

.reveal { position: absolute; inset: 0; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 8px; border: 0; background: var(--accent); color: #fff; text-align: center; cursor: pointer; }
.reveal svg { width: 34%; max-width: 56px; height: auto; }
.reveal .type { font-size: clamp(11px, 1.4vw, 14px); font-weight: 600; line-height: 1.15; }

canvas.cover { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: grab; transition: opacity .45s ease; }
canvas.cover:active { cursor: grabbing; }
.revealed > canvas.cover { opacity: 0; pointer-events: none; }

.toast { text-align: center; position: fixed; z-index: 20; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: #fff; color: var(--ink); padding: 10px 18px; border-radius: 999px; font-size: 14px; font-weight: 500; box-shadow: 0 10px 30px rgba(0,0,0,.3); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* --- Vue agrandie --- */
#zoom { border: 0; margin: 0; padding: 16px; width: 100%; height: 100%; max-width: none; max-height: none; background: transparent; color: var(--text); }
#zoom[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; }
#zoom::backdrop { background: rgba(20,10,40,.88); }
.zoom-tile { --r: clamp(56px, 20vw, 130px); position: relative; overflow: hidden; isolation: isolate; width: min(80vw, 48vh, 420px); aspect-ratio: 1 / 1.1; background: var(--tile); user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.zoom-tile .reveal { gap: 12px; padding: 24px; cursor: default; }
.zoom-tile .reveal svg { width: 26%; max-width: 96px; }
.zoom-tile .reveal .type { font-size: clamp(18px, 5vw, 26px); }

.zoom-hint { margin: 0; font-size: 15px; color: var(--muted); text-align: center; }
.zoom-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.zoom-secondary, .zoom-cta, .zoom-close { font-weight: 600; border-radius: 999px; padding: 10px 20px; }
.zoom-secondary { color: var(--text); background: transparent; border: 1px solid #6a55a0; }
.zoom-cta { color: var(--ink); background: #fff; border: 0; }
.zoom-close { position: absolute; top: max(16px, env(safe-area-inset-top)); right: 16px; width: 44px; height: 44px; padding: 0; font-size: 22px; line-height: 1; color: var(--text); background: rgba(255,255,255,.08); border: 1px solid #6a55a0; }

/* --- Popup événement --- */
#evt { border: 0; padding: 0; width: min(760px, calc(100% - 32px)); max-height: calc(100dvh - 32px); border-radius: 0 0 0 48px; background: var(--tile); color: var(--ink); overflow: auto; }
#evt::backdrop { background: rgba(20,10,40,.72); }
@media (max-width: 560px) { #evt { width: 100%; max-width: 100%; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; } }

.evt-body { padding: 20px 24px 32px; position: relative; overflow: hidden; }
.intro { margin: 0 0 16px; line-height: 1.5; }
.note { font-size: 12px; color: var(--ink-3); margin: 8px 0 0; }
.banner { display: flex; gap: 8px; align-items: center; padding: 10px 14px; border-radius: 12px; background: var(--lilac); font-size: 14px; font-weight: 500; margin-bottom: 16px; }
.btn { display: inline-block; font-weight: 600; background: var(--ink); color: #fff; border: 0; border-radius: 999px; padding: 10px 20px; text-decoration: none; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid #b9b2cc; }
.btn.primary { background: var(--accent); }
.btn.small { padding: 6px 14px; font-size: 13px; }
.player { position: relative; aspect-ratio: 16 / 9; border-radius: 0 0 0 40px; overflow: hidden; background: linear-gradient(135deg, #3d1a78, #7a00e6); display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; text-align: center; gap: 8px; padding: 16px; }
.player .play { width: 64px; height: 64px; border-radius: 50%; background: rgba(255,255,255,.18); display: grid; place-items: center; font-size: 26px; }
.player small { opacity: .85; }
.player iframe, .player video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.photos { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.photos figure { margin: 0; background: #fff; padding: 8px 8px 12px; box-shadow: 0 2px 8px rgba(46,26,82,.15); }
.photos img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.photos figcaption { font-size: 13px; line-height: 1.35; margin-top: 8px; }

.word { font-size: clamp(30px, 8vw, 52px); font-weight: 700; letter-spacing: -.02em; text-align: center; color: var(--accent-dark); padding: 24px 8px; background: #fff; border-radius: 0 0 0 32px; margin-bottom: 16px; overflow-wrap: anywhere; }

.diff-imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
@media (max-width: 560px) { .diff-imgs { grid-template-columns: 1fr; } }
.diff-imgs figure { margin: 0; position: relative; }
.diff-imgs img { display: block; width: 100%; }
.diff-imgs figcaption { font-size: 12px; font-weight: 600; margin-top: 4px; }
.diff-list { list-style: none; margin: 12px 0; padding: 0; display: grid; gap: 6px; }
.diff-list li { display: flex; gap: 8px; font-size: 14px; }
.q-count { font-size: 13px; color: var(--ink-2); margin: 0 0 6px; font-weight: 600; }

.opts { display: grid; gap: 8px; }
.opts button { min-height: 48px; text-align: left; padding: 10px 16px; background: #fff; border: 1px solid #b9b2cc; border-radius: 12px; font-weight: 500; }
@media (hover: hover) { .opts button:hover { border-color: var(--accent); } }

.dilemma { margin-bottom: 22px; }

.like { display: inline-flex; gap: 8px; align-items: center; min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 1px solid #b9b2cc; background: #fff; font-weight: 600; }
.like[aria-pressed="true"] { border-color: var(--accent); background: var(--lilac); }
.like-heart { font-size: 18px; line-height: 1; color: var(--ink-3); }
.like[aria-pressed="true"] .like-heart { color: var(--accent); }
.like .count { font-weight: 500; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.fly-heart { position: absolute; font-style: normal; line-height: 1; color: var(--accent); pointer-events: none; animation: fly-heart 1.25s cubic-bezier(.15,.7,.3,1) forwards; }
.fly-heart:nth-child(3n) { color: var(--accent-soft); }
@keyframes fly-heart { 0% { transform: translate(-50%, -50%) scale(.3); opacity: 0; } 12% { opacity: 1; } 70% { opacity: 1; } 100% { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) rotate(var(--rot)) scale(1.15); opacity: 0; } }
.help { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; margin: 8px 0 12px; }
.help-btn { flex: none; width: 28px; height: 28px; padding: 0; border-radius: 50%; border: 1px solid var(--accent); background: #fff; color: var(--accent-dark); font-weight: 700; line-height: 1; position: relative; }
.help-btn::after { content: ""; position: absolute; inset: -8px; }  /* zone de clic de 44 px */
.help-btn[aria-expanded="true"] { background: var(--accent); color: #fff; }
.help-text { flex: 1 1 200px; margin: 3px 0 0; font-size: 14px; line-height: 1.45; }
.diff-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }

.counter { flex: none; padding: 4px 14px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 700; font-variant-numeric: tabular-nums; }
.counter.full { background: var(--accent); }
.diff-list li { flex-wrap: wrap; align-items: center; }
.diff-list .help { margin: 0; }
.diff-score { flex: none; display: flex; align-items: center; gap: 10px; }
.errors { font-size: 13px; font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.stage { position: relative; aspect-ratio: 64 / 42; overflow: hidden; user-select: none; -webkit-user-select: none; background: #fff; }
.stage img { display: block; width: 100%; height: 100%; object-fit: cover; }
.stage.playable { cursor: crosshair; }
/* Image entière (jamais rognée) : zones et clics sont relatifs à .stage-in, la surface exacte de l'image affichée */
#evt .stage img { object-fit: contain; }
.stage-in { position: absolute; z-index: 1; left: 50%; top: 50%; width: 100%; height: 100%; transform: translate(-50%, -50%); pointer-events: none; }

.zone { position: absolute; aspect-ratio: 1; transform: translate(-50%, -50%); border: 3px solid var(--accent); border-radius: 50%; background: rgba(122,0,230,.14); box-shadow: 0 0 0 2px #fff; pointer-events: none; }
.zone.missed { border-style: dashed; border-color: var(--bad); background: rgba(179,38,30,.1); }

/* Clic raté : grande croix rouge cernée de blanc, bien visible environ 1,2 s puis effacée */
.miss { position: absolute; z-index: 2; transform: translate(-50%, -50%); color: var(--bad); font-weight: 800; font-size: clamp(44px, 9vw, 72px); line-height: 1; pointer-events: none;
  text-shadow: 0 0 3px #fff, 0 0 3px #fff, 0 0 6px #fff, 0 2px 10px rgba(0,0,0,.35); animation: miss 1.6s ease-out forwards; }
@keyframes miss {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.4); }
  12% { opacity: 1; transform: translate(-50%, -50%) scale(1.15); }
  22% { transform: translate(-50%, -50%) scale(1); }
  75% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(.9); }
}
@media (prefers-reduced-motion: reduce) { canvas.cover, .toast { transition: none; } }

/* --- Backoffice --- */

.back { font-size: 14px; color: var(--accent-dark); text-decoration: none; display: inline-block; margin-bottom: 10px; }

/* --- Avancement --- */

/* ===== Charte de la maquette validée (polices et couleurs Sanofi) ===== */
@font-face { font-family: 'Sanofi Sans'; src: url('../fonts/SanofiSans-Light.woff2?v=50547a20') format('woff2'), url('../fonts/SanofiSans-Light.ttf?v=be9627be') format('truetype'); font-weight: 300; font-style: normal; font-display: block; }
@font-face { font-family: 'Sanofi Sans'; src: url('../fonts/SanofiSans-LightItalic.woff2?v=f3ddb58e') format('woff2'), url('../fonts/SanofiSans-LightItalic.ttf?v=252f68b1') format('truetype'); font-weight: 300; font-style: italic; font-display: block; }
@font-face { font-family: 'Sanofi Sans'; src: url('../fonts/SanofiSans-Regular.woff2?v=b57a1b3e') format('woff2'), url('../fonts/SanofiSans-Regular.ttf?v=6ef6f4c8') format('truetype'); font-weight: 400; font-style: normal; font-display: block; }
@font-face { font-family: 'Sanofi Sans'; src: url('../fonts/SanofiSans-Bold.woff2?v=b4d020df') format('woff2'), url('../fonts/SanofiSans-Bold.ttf?v=50d12065') format('truetype'); font-weight: 700; font-style: normal; font-display: block; }
@font-face { font-family: 'Sanofi Serif'; src: url('../fonts/SanofiSerif-Regular.woff2?v=eb8ecb8b') format('woff2'), url('../fonts/SanofiSerif-Regular.ttf?v=2f744a6b') format('truetype'); font-weight: 400; font-style: normal; font-display: block; }
@font-face { font-family: 'Sanofi Serif'; src: url('../fonts/SanofiSerif-Italic.woff2?v=7de6c43a') format('woff2'), url('../fonts/SanofiSerif-Italic.ttf?v=dafd3f8d') format('truetype'); font-weight: 400; font-style: italic; font-display: block; }
:root { --sf-ink: #2d1b46; --sf-violet: #7a26e6; --sf-lilac: #d3b7fc; --sf-card: #f6f2fb; --sf-night: #2a174f; --sf-muted: #6b5a8a; }
body { font-family: 'Sanofi Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* --- Plateau --- */
body[data-view="front"] { background: #26133f; }
.stage-front { min-height: 100dvh; display: grid; place-items: center; align-content: center; }   /* lignes groupées : la mention reste près du plateau */
.board-legal { position: relative; margin: -40px 16px 30px; font-size: 12px; color: rgba(255, 255, 255, .5); text-align: center; }
/* Les bords gauche et droit de l'image se fondent dans le fond de la page */
.board { position: relative; background-size: 100% 100%;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%); mask-image: linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%); }
/* Contour fin du calendrier (le trait épais de l'image a été retiré) */
.board-clip { position: absolute; overflow: hidden; box-shadow: 0 0 0 1px rgba(222, 208, 250, .62); }
.board-cells { position: absolute; }
.patch { position: absolute; display: block; pointer-events: none; }
.cell { position: absolute; margin: 0; padding: 0; border: 0; background: transparent; cursor: pointer; transition: background .15s; }
@media (hover: hover) { .cell:hover { background: rgba(255,255,255,.1); } }
.cell:focus-visible { outline: 3px solid #fff; outline-offset: -3px; }
/* Jours passés : l'assombrissement déborde d'1 px pour couvrir les joints du dessin entre deux cases */
.cell.past { background: rgba(24,10,48,.6); box-shadow: 0 0 0 1px rgba(24,10,48,.6); }
@media (hover: hover) { .cell.past:hover { box-shadow: 0 0 0 1px rgba(24,10,48,.38); } 
   .cell.past:hover { background: rgba(24,10,48,.38); } }
/* Case du jour : halo intérieur qui respire, reflet lumineux qui passe, petite étoile qui scintille */
.cell.today::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  box-shadow: inset 0 0 26px 4px rgba(211,183,252,.75), inset 0 0 70px rgba(255,255,255,.2);
  background: linear-gradient(115deg, transparent 36%, rgba(255,255,255,.32) 50%, transparent 64%) no-repeat;
  background-size: 260% 100%; background-position: 160% 0;
  animation: today-glow 3.6s ease-in-out infinite, today-sheen 3s cubic-bezier(.45,0,.25,1) infinite .6s; }
.cell.today:not(.done)::before { content: "✦"; position: absolute; top: 9%; right: 11%; pointer-events: none; color: #fff; line-height: 1;
  font-size: clamp(13px, 2vw, 26px); text-shadow: 0 0 8px #fff, 0 0 18px var(--sf-lilac); animation: today-twinkle 2.8s ease-in-out infinite; }
.board > .sparkle { position: absolute; z-index: 3; pointer-events: none; border-radius: 50%; background: #fff; box-shadow: 0 0 3px rgba(255,255,255,.9), 0 0 7px 1px rgba(211,183,252,.55); }
.board > .sparkle.star { border-radius: 0; background: none; box-shadow: none; }
.board > .sparkle.star::before { content: "✦"; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-size: 9px; line-height: 1; color: #fff; text-shadow: 0 0 4px rgba(255,255,255,.8), 0 0 8px rgba(211,183,252,.6); }

/* Plateau vectoriel : seuls les numéros des jours passés s'estompent, comme sur la maquette */
.board-vec { position: absolute; display: block; pointer-events: none; }
.board-nums { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.board-nums text { font-family: 'Sanofi Serif', Georgia, serif; font-weight: 400; transition: opacity .3s; }
.board-nums .light { fill: rgb(241, 237, 253); }
.board-nums .dark { fill: rgb(34, 14, 93); }
.board-nums .past { opacity: .32; }
.board.vec .cell.past, .board.vec .cell.past:hover { background: transparent; box-shadow: none; }
@media (hover: hover) { .board.vec .cell.past:hover { background: rgba(255,255,255,.06); } }
.board.vec .board-clip { box-shadow: none; }
@keyframes today-glow { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes today-sheen { 0% { background-position: 160% 0; } 45%, 100% { background-position: -60% 0; } }
@keyframes today-twinkle { 0%, 100% { opacity: .35; transform: scale(.7) rotate(0deg); } 45% { opacity: 1; transform: scale(1.15) rotate(20deg); } 60% { opacity: .9; transform: scale(1) rotate(15deg); } }
@media (prefers-reduced-motion: reduce) { .cell.today::after, .cell.today::before { animation: none; } .cell.today::after { opacity: 1; background: none; } }
.cell.done::before { content: "✓"; position: absolute; right: 8%; top: 6%; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; color: #fff; background: var(--sf-violet); }

/* --- Vue agrandie --- */
.zoom-tile { aspect-ratio: auto; border-radius: 16px; box-shadow: 0 30px 80px rgba(0,0,0,.45); container-type: size; background: var(--sf-card); }
.zoom-tile .reveal { gap: 4cqmin; padding: 7cqmin; color: var(--sf-ink); cursor: default;
  background: radial-gradient(circle 34cqmin at 0% 100%, var(--sf-lilac) 98%, transparent 100%), var(--sf-card); }
.reveal-date { font-size: clamp(10px, 5cqmin, 15px); text-transform: uppercase; letter-spacing: .1em; color: var(--sf-muted); font-weight: 700; }
/* Logo limité en largeur ET en hauteur : il tient dans toutes les formes de case (larges, hautes, petites) */
.reveal-logo { width: auto; height: auto; max-width: min(86%, 320px); max-height: 46cqh; min-height: 0; object-fit: contain; flex: 0 1 auto; }
.zoom-tile .reveal > * { flex-shrink: 1; min-height: 0; max-width: 100%; }
.reveal-game, .game-title { font-weight: 700; text-transform: uppercase; letter-spacing: -.03em; line-height: .95; color: #250b4b; text-shadow: 0.100em 0.000em 0 var(--sf-card), 0.092em 0.038em 0 var(--sf-card), 0.071em 0.071em 0 var(--sf-card), 0.038em 0.092em 0 var(--sf-card), 0.000em 0.100em 0 var(--sf-card), -0.038em 0.092em 0 var(--sf-card), -0.071em 0.071em 0 var(--sf-card), -0.092em 0.038em 0 var(--sf-card), -0.100em 0.000em 0 var(--sf-card), -0.092em -0.038em 0 var(--sf-card), -0.071em -0.071em 0 var(--sf-card), -0.038em -0.092em 0 var(--sf-card), -0.000em -0.100em 0 var(--sf-card), 0.038em -0.092em 0 var(--sf-card), 0.071em -0.071em 0 var(--sf-card), 0.092em -0.038em 0 var(--sf-card); }  /* contour arrondi, sans pointes sur les angles */
.reveal-game { font-size: clamp(18px, 11cqmin, 44px); }
.reveal-title { font-family: 'Sanofi Serif', Georgia, serif; font-style: italic; color: var(--sf-violet); font-size: clamp(15px, 8cqmin, 30px); line-height: 1.1; }
.zoom-hint { font-size: 16px; }
#zoom::backdrop { background: rgba(26,10,52,.5); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }

/* --- Popups --- */
#evt { padding: 72px clamp(20px, 6vw, 96px) 28px; background: transparent; border-radius: 0; width: min(1200px, 100%); max-width: 100%; max-height: 100dvh; overflow: auto; }
#evt::backdrop { background: rgba(26,10,52,.5); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
@media (max-width: 560px) { #evt { width: 100%; height: auto; max-height: 100dvh; margin: auto; padding: 56px 10px 16px; border-radius: 0; } }
.pop { position: relative; margin-inline: auto; background: var(--sf-card); color: var(--sf-ink); border-radius: 28px; padding: 44px clamp(18px, 4vw, 48px) 22px; }
.pop.has-logo { padding-top: max(56px, 8.5%); }
.pop--game { max-width: 880px; overflow: hidden; overflow: clip; overflow-clip-margin: 200px;
  background: radial-gradient(circle at 0% 100%, #c9acff 0 12%, transparent 12.3%), linear-gradient(180deg, var(--sf-card) 0 55%, #ece3fb 78%, #d2bdf7 100%); }
.pop--game::after { content: ""; position: absolute; right: 0; bottom: 0; width: 280px; height: 180px; pointer-events: none; border-radius: 0 0 28px 0;
  background: repeating-conic-gradient(from 0deg at 75% 100%, rgba(255,255,255,.85) 0deg .5deg, transparent .5deg 7deg);
  -webkit-mask: radial-gradient(circle at 75% 100%, #000 0 45%, transparent 75%); mask: radial-gradient(circle at 75% 100%, #000 0 45%, transparent 75%); }
.pop > * { position: relative; z-index: 1; }
#evt > .fly-heart { position: fixed; z-index: 6; }
/* contenu des jeux au-dessus du décor rayonnant de la carte */
.pop--game .evt-body > * { position: relative; z-index: 1; }
.participants { position: relative; z-index: 2; box-shadow: 0 0 0 5px rgba(246,242,251,.85); }
.pop-brand { position: absolute; left: 0; top: 0; width: 100%; height: 0; z-index: 3; pointer-events: none; }
.pop-brand img { position: absolute; left: 0; top: 0; display: block; height: auto; width: calc(var(--lw, 30) * 1%); }
.game-title { position: absolute; left: clamp(16px, 5%, 48px); top: 0; transform: translateY(-62%); font-size: clamp(22px, 3.6vw, 44px); white-space: nowrap; }
.pop-close, #zoom .zoom-close { position: absolute; right: -10px; top: -10px; z-index: 4; width: 52px; height: 52px; padding: 0; border-radius: 50%; border: 1px solid rgba(45,27,70,.12); background: #fff; color: transparent; font-size: 0; box-shadow: 0 4px 14px rgba(42,23,79,.18); transition: transform .2s; }
#zoom .zoom-close { position: fixed; right: 16px; top: max(16px, env(safe-area-inset-top)); }
.pop-close::before, .pop-close::after, #zoom .zoom-close::before, #zoom .zoom-close::after { content: ""; position: absolute; left: 50%; top: 50%; width: 24px; height: 4px; border-radius: 2px; background: var(--sf-ink); transform: translate(-50%, -50%) rotate(45deg); }
.pop-close::after, #zoom .zoom-close::after { transform: translate(-50%, -50%) rotate(-45deg); }
@media (hover: hover) { .pop-close:hover, #zoom .zoom-close:hover { transform: scale(1.06); } }

#evt .evt-body { padding: 0; overflow: visible; }
.spark { display: block; position: relative; height: 14px; max-width: 220px; margin: 8px 0 14px; background: linear-gradient(var(--sf-lilac), var(--sf-lilac)) left center / calc(100% - 18px) 1px no-repeat; }
.spark::after { content: "✦"; position: absolute; right: 0; top: -4px; font-size: 16px; color: var(--sf-ink); }
.pop--media .spark { background-position: right center; }
.pop--media .spark::after { right: auto; left: 0; }
.pop--game .spark { margin: 4px auto 18px; max-width: 180px; }
.banner { justify-content: center; text-align: center; background: #fff; }

/* Vidéo et photos : texte, média, colonne de décor */
.media { display: grid; grid-template-columns: minmax(170px, .8fr) 2fr; gap: 6px clamp(16px, 3vw, 32px); align-items: start; margin-right: calc(13% + 8px); }
.media .pop-title { grid-column: 1 / -1; }
#evt .evt-body { position: static; }
.pop-title { margin: 0; font-weight: 700; font-size: clamp(26px, 3.2vw, 40px); line-height: 1.05; letter-spacing: -.01em; }
.pop-title em, .diff-title em, .q-pill em { font-family: 'Sanofi Serif', Georgia, serif; font-style: italic; font-weight: 400; color: var(--sf-violet); }
.media-text p { margin: 0; font-size: 15px; line-height: 1.5; color: #4b3d63; white-space: pre-line; }   /* retours à la ligne saisis dans le backoffice */
#evt .player { aspect-ratio: 16 / 9; border-radius: 6px; border: 2px solid var(--sf-ink); background: #fff; color: var(--sf-muted); }
#evt .player .play { width: 58px; height: 58px; border: 2px solid #b7a9cf; background: none; position: relative; }
#evt .player .play::after { content: ""; position: absolute; left: 22px; top: 17px; border: 11px solid transparent; border-left: 16px solid #b7a9cf; border-right: 0; }
#evt .player small { font-size: 13px; opacity: 1; max-width: 70%; }
.photo { margin: 0; }
.photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 0 0 0 60px; }
.photo { position: relative; }
/* Légende en surimpression : bandeau violet clair translucide, pleine largeur, collé en bas de la photo */
.photo-caption { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; margin: 0; padding: 8px 14px;
  background: rgba(211,183,252,.72); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); color: var(--sf-ink);
  font-size: 13px; line-height: 1.35; text-align: center; pointer-events: none; }
.photo-caption[hidden] { display: none; }
.photo-nav { position: absolute; z-index: 3; top: 50%; width: 38px; height: 38px; margin-top: -19px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.88); box-shadow: 0 2px 8px rgba(20,10,40,.3); cursor: pointer; }
.photo-nav::after { content: ""; position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; border: solid var(--sf-ink); border-width: 2px 2px 0 0; }
.photo-nav.prev { left: 10px; } .photo-nav.prev::after { transform: translate(-30%, -50%) rotate(-135deg); }
.photo-nav.next { right: 10px; } .photo-nav.next::after { transform: translate(-70%, -50%) rotate(45deg); }
.photo-nav:hover { background: #fff; }
.thumbs { display: flex; gap: 8px; margin-top: 8px; }
.thumbs button { padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; width: 64px; }
.thumbs img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.pop .media-deco { position: absolute; right: 0; top: 0; bottom: 0; width: 13%; display: grid; grid-template-rows: repeat(4, 1fr); border-radius: 0 28px 28px 0; overflow: hidden; z-index: 0; }
.media-deco i:nth-child(1) { background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='xMidYMid slice'><g stroke='%23fff' stroke-opacity='0.75' stroke-width='0.9' vector-effect='non-scaling-stroke'><line x1='50.00' y1='47.50' x2='50.0' y2='-250.0' vector-effect='non-scaling-stroke'/><line x1='50.39' y1='47.53' x2='96.9' y2='-246.3' vector-effect='non-scaling-stroke'/><line x1='50.77' y1='47.62' x2='142.7' y2='-235.3' vector-effect='non-scaling-stroke'/><line x1='51.13' y1='47.77' x2='186.2' y2='-217.3' vector-effect='non-scaling-stroke'/><line x1='51.47' y1='47.98' x2='226.3' y2='-192.7' vector-effect='non-scaling-stroke'/><line x1='51.77' y1='48.23' x2='262.1' y2='-162.1' vector-effect='non-scaling-stroke'/><line x1='52.02' y1='48.53' x2='292.7' y2='-126.3' vector-effect='non-scaling-stroke'/><line x1='52.23' y1='48.87' x2='317.3' y2='-86.2' vector-effect='non-scaling-stroke'/><line x1='52.38' y1='49.23' x2='335.3' y2='-42.7' vector-effect='non-scaling-stroke'/><line x1='52.47' y1='49.61' x2='346.3' y2='3.1' vector-effect='non-scaling-stroke'/><line x1='52.50' y1='50.00' x2='350.0' y2='50.0' vector-effect='non-scaling-stroke'/><line x1='52.47' y1='50.39' x2='346.3' y2='96.9' vector-effect='non-scaling-stroke'/><line x1='52.38' y1='50.77' x2='335.3' y2='142.7' vector-effect='non-scaling-stroke'/><line x1='52.23' y1='51.13' x2='317.3' y2='186.2' vector-effect='non-scaling-stroke'/><line x1='52.02' y1='51.47' x2='292.7' y2='226.3' vector-effect='non-scaling-stroke'/><line x1='51.77' y1='51.77' x2='262.1' y2='262.1' vector-effect='non-scaling-stroke'/><line x1='51.47' y1='52.02' x2='226.3' y2='292.7' vector-effect='non-scaling-stroke'/><line x1='51.13' y1='52.23' x2='186.2' y2='317.3' vector-effect='non-scaling-stroke'/><line x1='50.77' y1='52.38' x2='142.7' y2='335.3' vector-effect='non-scaling-stroke'/><line x1='50.39' y1='52.47' x2='96.9' y2='346.3' vector-effect='non-scaling-stroke'/><line x1='50.00' y1='52.50' x2='50.0' y2='350.0' vector-effect='non-scaling-stroke'/><line x1='49.61' y1='52.47' x2='3.1' y2='346.3' vector-effect='non-scaling-stroke'/><line x1='49.23' y1='52.38' x2='-42.7' y2='335.3' vector-effect='non-scaling-stroke'/><line x1='48.87' y1='52.23' x2='-86.2' y2='317.3' vector-effect='non-scaling-stroke'/><line x1='48.53' y1='52.02' x2='-126.3' y2='292.7' vector-effect='non-scaling-stroke'/><line x1='48.23' y1='51.77' x2='-162.1' y2='262.1' vector-effect='non-scaling-stroke'/><line x1='47.98' y1='51.47' x2='-192.7' y2='226.3' vector-effect='non-scaling-stroke'/><line x1='47.77' y1='51.13' x2='-217.3' y2='186.2' vector-effect='non-scaling-stroke'/><line x1='47.62' y1='50.77' x2='-235.3' y2='142.7' vector-effect='non-scaling-stroke'/><line x1='47.53' y1='50.39' x2='-246.3' y2='96.9' vector-effect='non-scaling-stroke'/><line x1='47.50' y1='50.00' x2='-250.0' y2='50.0' vector-effect='non-scaling-stroke'/><line x1='47.53' y1='49.61' x2='-246.3' y2='3.1' vector-effect='non-scaling-stroke'/><line x1='47.62' y1='49.23' x2='-235.3' y2='-42.7' vector-effect='non-scaling-stroke'/><line x1='47.77' y1='48.87' x2='-217.3' y2='-86.2' vector-effect='non-scaling-stroke'/><line x1='47.98' y1='48.53' x2='-192.7' y2='-126.3' vector-effect='non-scaling-stroke'/><line x1='48.23' y1='48.23' x2='-162.1' y2='-162.1' vector-effect='non-scaling-stroke'/><line x1='48.53' y1='47.98' x2='-126.3' y2='-192.7' vector-effect='non-scaling-stroke'/><line x1='48.87' y1='47.77' x2='-86.2' y2='-217.3' vector-effect='non-scaling-stroke'/><line x1='49.23' y1='47.62' x2='-42.7' y2='-235.3' vector-effect='non-scaling-stroke'/><line x1='49.61' y1='47.53' x2='3.1' y2='-246.3' vector-effect='non-scaling-stroke'/></g></svg>") center / cover, var(--sf-night); }
.media-deco i:nth-child(2) { background: radial-gradient(circle at 0% 100%, var(--sf-lilac) 0 calc(68% - .6px), var(--sf-violet) calc(68% + .6px)); }
.media-deco i:nth-child(3) { background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='xMidYMax slice'><g stroke='%23fff' stroke-opacity='0.65' stroke-width='0.9' vector-effect='non-scaling-stroke'><line x1='50.00' y1='97.50' x2='50.0' y2='-200.0' vector-effect='non-scaling-stroke'/><line x1='50.35' y1='97.52' x2='91.8' y2='-197.1' vector-effect='non-scaling-stroke'/><line x1='50.69' y1='97.60' x2='132.7' y2='-188.4' vector-effect='non-scaling-stroke'/><line x1='51.02' y1='97.72' x2='172.0' y2='-174.1' vector-effect='non-scaling-stroke'/><line x1='51.32' y1='97.88' x2='209.0' y2='-154.4' vector-effect='non-scaling-stroke'/><line x1='51.61' y1='98.08' x2='242.8' y2='-129.8' vector-effect='non-scaling-stroke'/><line x1='51.86' y1='98.33' x2='272.9' y2='-100.7' vector-effect='non-scaling-stroke'/><line x1='52.07' y1='98.60' x2='298.7' y2='-67.8' vector-effect='non-scaling-stroke'/><line x1='52.25' y1='98.90' x2='319.6' y2='-31.5' vector-effect='non-scaling-stroke'/><line x1='52.38' y1='99.23' x2='335.3' y2='7.3' vector-effect='non-scaling-stroke'/><line x1='52.46' y1='99.57' x2='345.4' y2='47.9' vector-effect='non-scaling-stroke'/><line x1='52.50' y1='99.91' x2='349.8' y2='89.5' vector-effect='non-scaling-stroke'/><line x1='52.49' y1='100.26' x2='348.4' y2='131.4' vector-effect='non-scaling-stroke'/><line x1='52.43' y1='100.60' x2='341.1' y2='172.6' vector-effect='non-scaling-stroke'/><line x1='52.32' y1='100.94' x2='328.2' y2='212.4' vector-effect='non-scaling-stroke'/><line x1='52.17' y1='101.25' x2='309.8' y2='250.0' vector-effect='non-scaling-stroke'/><line x1='51.97' y1='101.54' x2='286.4' y2='284.7' vector-effect='non-scaling-stroke'/><line x1='51.74' y1='101.80' x2='258.4' y2='315.8' vector-effect='non-scaling-stroke'/><line x1='51.47' y1='102.02' x2='226.3' y2='342.7' vector-effect='non-scaling-stroke'/><line x1='51.17' y1='102.21' x2='190.8' y2='364.9' vector-effect='non-scaling-stroke'/><line x1='50.86' y1='102.35' x2='152.6' y2='381.9' vector-effect='non-scaling-stroke'/><line x1='50.52' y1='102.45' x2='112.4' y2='393.4' vector-effect='non-scaling-stroke'/><line x1='50.17' y1='102.49' x2='70.9' y2='399.3' vector-effect='non-scaling-stroke'/><line x1='49.83' y1='102.49' x2='29.1' y2='399.3' vector-effect='non-scaling-stroke'/><line x1='49.48' y1='102.45' x2='-12.4' y2='393.4' vector-effect='non-scaling-stroke'/><line x1='49.14' y1='102.35' x2='-52.6' y2='381.9' vector-effect='non-scaling-stroke'/><line x1='48.83' y1='102.21' x2='-90.8' y2='364.9' vector-effect='non-scaling-stroke'/><line x1='48.53' y1='102.02' x2='-126.3' y2='342.7' vector-effect='non-scaling-stroke'/><line x1='48.26' y1='101.80' x2='-158.4' y2='315.8' vector-effect='non-scaling-stroke'/><line x1='48.03' y1='101.54' x2='-186.4' y2='284.7' vector-effect='non-scaling-stroke'/><line x1='47.83' y1='101.25' x2='-209.8' y2='250.0' vector-effect='non-scaling-stroke'/><line x1='47.68' y1='100.94' x2='-228.2' y2='212.4' vector-effect='non-scaling-stroke'/><line x1='47.57' y1='100.60' x2='-241.1' y2='172.6' vector-effect='non-scaling-stroke'/><line x1='47.51' y1='100.26' x2='-248.4' y2='131.4' vector-effect='non-scaling-stroke'/><line x1='47.50' y1='99.91' x2='-249.8' y2='89.5' vector-effect='non-scaling-stroke'/><line x1='47.54' y1='99.57' x2='-245.4' y2='47.9' vector-effect='non-scaling-stroke'/><line x1='47.62' y1='99.23' x2='-235.3' y2='7.3' vector-effect='non-scaling-stroke'/><line x1='47.75' y1='98.90' x2='-219.6' y2='-31.5' vector-effect='non-scaling-stroke'/><line x1='47.93' y1='98.60' x2='-198.7' y2='-67.8' vector-effect='non-scaling-stroke'/><line x1='48.14' y1='98.33' x2='-172.9' y2='-100.7' vector-effect='non-scaling-stroke'/><line x1='48.39' y1='98.08' x2='-142.8' y2='-129.8' vector-effect='non-scaling-stroke'/><line x1='48.68' y1='97.88' x2='-109.0' y2='-154.4' vector-effect='non-scaling-stroke'/><line x1='48.98' y1='97.72' x2='-72.0' y2='-174.1' vector-effect='non-scaling-stroke'/><line x1='49.31' y1='97.60' x2='-32.7' y2='-188.4' vector-effect='non-scaling-stroke'/><line x1='49.65' y1='97.52' x2='8.2' y2='-197.1' vector-effect='non-scaling-stroke'/></g></svg>") center bottom / cover, #3b1d74; }
.media-deco i:nth-child(4) { background: radial-gradient(circle at 100% 0%, #9c6bff 0 calc(64% - .6px), var(--sf-night) calc(64% + .6px)); }
@media (max-width: 760px) { .media { grid-template-columns: 1fr; margin-right: 0; } .pop .media-deco { display: none; } }

/* Pied de popup : « J'aime ! » et participants */
.pop-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 20px; }
#evt .like { display: inline-flex; align-items: center; gap: 10px; min-height: 0; padding: 5px 16px 5px 5px; border-radius: 999px; background: #fff; border: 1px solid #ddd0f0; color: var(--sf-ink); font-weight: 400; }
#evt .like em { font-family: 'Sanofi Serif', Georgia, serif; font-size: 18px; }
#evt .like-heart { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; color: #fff; background: var(--sf-ink); }
#evt .like[aria-pressed="true"] { border-color: var(--sf-violet); background: #f1e8ff; }
#evt .like[aria-pressed="true"] .like-heart { background: var(--sf-violet); color: #fff; }
.participants { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 76px; height: 76px; border-radius: 50%; background: var(--sf-ink); color: #fff; font-size: 10px; line-height: 1.15; }
.participants b { font-size: 20px; }

/* Questions et réponses */
.q-count { text-align: center; color: var(--sf-muted); }
.q-title { margin: 0; text-align: center; font-weight: 700; font-size: clamp(21px, 2.8vw, 32px); line-height: 1.15; }
.q-title.small { margin: 22px 0 8px; text-align: left; font-size: 17px; }
.word { margin: 0; padding: 0; background: none; text-align: center; font-family: 'Sanofi Serif', Georgia, serif; font-style: italic; font-weight: 400; font-size: clamp(30px, 5vw, 52px); letter-spacing: 0; color: var(--sf-violet); border-radius: 0; }
.word-prompt { margin: 0; text-align: center; font-weight: 700; font-size: 20px; }
.q-pill { display: table; margin: 0 auto 20px; padding: 8px 24px; border-radius: 999px; background: var(--sf-ink); color: #fff; font-size: 18px; font-weight: 700; }
.q-pill em { color: var(--sf-lilac); }
.opts.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; max-width: 660px; margin: 6px auto 8px; }
.opts .opt { min-height: 48px; padding: 11px 20px; border: 0; border-radius: 999px; background: var(--sf-ink); color: #fff; font-size: 14px; line-height: 1.25; text-align: center; transition: background .15s; }
@media (hover: hover) { .opts .opt:hover { background: var(--sf-violet); border: 0; } }
.opts.opts--list { grid-template-columns: 1fr; margin: 0; }
.opts--list .opt { text-align: left; padding-left: 6px; display: flex; align-items: center; gap: 10px; }
.opts--list .opt b { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--sf-lilac); color: var(--sf-ink); }
.mystery { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; align-items: center; }
.mystery-img { margin: 0; }
.mystery .res-list:not(.res-list--letters) .res-row { grid-template-columns: 1fr 9.6em 28px; gap: 4px 8px; }
.mystery .res-list:not(.res-list--letters) .res-tags { grid-column: 1 / -1; flex-direction: row; justify-content: flex-start; }
.mystery .res-list:not(.res-list--letters) .res-tags:empty { display: none; }
.mystery .res-list:not(.res-list--letters) .res-num { grid-row: auto; }
.mystery .res-list:not(.res-list--letters) .res-bar { grid-column: 1 / -1; order: 5; height: 6px; }
.mystery .res-list:not(.res-list--letters) .res-opt { order: 2; } .mystery .res-list:not(.res-list--letters) .res-num { order: 3; } .mystery .res-list:not(.res-list--letters) .res-help { order: 4; }
.mystery-img img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 22px; background: var(--sf-night); }
@media (max-width: 640px) { .opts.opts, .mystery { grid-template-columns: 1fr; } }

/* Résultats d'un QCM */
.res-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 10px; }
.res-row { display: grid; grid-template-columns: 104px minmax(150px, 1.3fr) minmax(60px, 1fr) 9.6em 30px; gap: 10px; align-items: center; }
.res-tags { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.res-tag { font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.res-tag.ok { background: var(--sf-violet); color: #fff; }
.res-tag.mine { background: #fff; color: var(--sf-ink); border: 1px solid var(--sf-ink); }
.res-opt { padding: 9px 16px; border-radius: 999px; background: var(--sf-ink); color: #fff; font-size: 13px; line-height: 1.25; }
.is-correct .res-opt { background: var(--sf-violet); }
.is-mine .res-opt { box-shadow: 0 0 0 3px var(--sf-lilac); }
.res-bar { display: block; height: 10px; border-radius: 999px; background: #ddd2f0; overflow: hidden; }
.res-bar i { display: block; height: 100%; border-radius: 999px; background: var(--sf-ink); transition: width .6s ease; }
.is-correct .res-bar i { background: var(--sf-violet); }
.res-num { font-size: 12px; white-space: nowrap; padding: 4px 10px; border-radius: 999px; background: #fff; font-variant-numeric: tabular-nums; display: flex; justify-content: flex-end; gap: 4px; }
.res-num b { display: inline-block; min-width: 3.4em; text-align: right; }
.res-num b { color: var(--sf-violet); }
@media (max-width: 640px) {
  .res-row { grid-template-columns: 1fr 9.6em 30px; }
  .res-tags { grid-column: 1 / -1; flex-direction: row; justify-content: flex-start; }
  .res-tags:empty { display: none; }
  .res-opt { grid-column: 1 / -1; }
}
.score { text-align: center; font-size: 18px; margin: 0 0 4px; }
.pop-next { text-align: center; margin-top: 18px; }
#evt .btn.primary { background: var(--sf-violet); }

/* Bulle d'explication */
.help.help { position: relative; display: inline-block; margin: 0; }
#evt .help-btn { width: 28px; height: 28px; border: 0; background: var(--sf-violet); color: #fff; }
#evt .help-btn[aria-expanded="true"] { background: var(--sf-ink); }
.help .help-text { position: absolute; right: 0; top: calc(100% + 8px); z-index: 5; width: min(260px, 70vw); margin: 0; padding: 12px 14px; border-radius: 14px; background: #fff; color: var(--sf-ink); font-size: 12px; line-height: 1.45; box-shadow: 0 12px 30px rgba(42,23,79,.25); }
/* La ligne dont l'explication est ouverte passe au-dessus des lignes suivantes */
.res-row:has(.help-btn[aria-expanded="true"]), .pop--game .evt-body > :has(.help-btn[aria-expanded="true"]) { position: relative; z-index: 10; }
.help .help-text b { display: block; margin-bottom: 4px; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }

/* Jeu des différences */
.diff-head { margin-bottom: 14px; }
.diff-title { margin: 0; font-weight: 700; font-size: clamp(20px, 2.4vw, 28px); }
.pop--diff .spark { display: none; }
#evt .counter { font-size: 16px; padding: 6px 16px; background: var(--sf-ink); }
#evt .counter.full { background: var(--sf-violet); }
.diff-imgs { position: relative; gap: 16px; }
#evt .stage { aspect-ratio: 4 / 3; border-radius: 8px; border: 0; box-shadow: 0 0 16px 2px rgba(255, 255, 255, .8), 0 6px 22px rgba(42, 23, 79, .2); }   /* pas de cadre : halo léger qui détache l’image du fond */
.diff-result { position: absolute; inset: 0; z-index: 2; width: fit-content; height: fit-content; margin: auto; padding: 8px 48px; border-radius: 999px; border: 3px solid var(--sf-violet); background: rgba(211,183,252,.78); font-family: 'Sanofi Serif', Georgia, serif; font-style: italic; font-size: clamp(32px, 5vw, 56px); color: var(--sf-ink); }
.diff-result.lost { background: rgba(255,255,255,.78); border-color: var(--sf-ink); }

/* Tu préfères */
.vote-title { margin: 0; text-align: center; }
.vote-title em { font-family: 'Sanofi Serif', Georgia, serif; font-style: italic; font-weight: 400; font-size: clamp(28px, 4vw, 44px); color: var(--sf-violet); }
.dilemma + .dilemma { margin-top: 26px; }
.vote-list { display: grid; gap: 14px; max-width: 640px; margin: 0 auto; }
.vote-row.voted { display: grid; grid-template-columns: minmax(0, 1.3fr) 1fr; gap: 16px; align-items: center; }
.vote-opt { width: 100%; white-space: pre-line; padding: 14px 20px; border: 0; border-radius: 18px; background: var(--sf-violet); color: #fff; font-size: 14px; font-weight: 700; line-height: 1.3; }
.vote-opt.alt { background: var(--sf-ink); }
.vote-opt:disabled { cursor: default; }
.vote-opt.mine { box-shadow: 0 0 0 3px var(--sf-lilac); }
.vote-res { display: grid; grid-template-columns: 4.2em 1fr; gap: 4px 10px; align-items: center; font-variant-numeric: tabular-nums; }
.vote-res .res-bar { grid-column: 1 / -1; height: 12px; }
.vote-res b { font-size: 20px; text-align: left; }
.vote-res small { text-align: right; }
.vote-res small { font-size: 11px; color: var(--sf-muted); }
@media (max-width: 560px) { .vote-row.voted { grid-template-columns: 1fr; } }

/* ===== Transitions ===== */
@keyframes pop-in { from { opacity: 0; transform: translateY(16px) scale(.97); } }
@keyframes pop-out { to { opacity: 0; transform: translateY(10px) scale(.97); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes fade-out { to { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
@keyframes grow { from { transform: scaleX(0); } }
@keyframes zone-in { from { opacity: 0; transform: translate(-50%, -50%) scale(.3); } 60% { transform: translate(-50%, -50%) scale(1.12); } }
@keyframes bump { 40% { transform: scale(1.18); } }
@keyframes bravo { from { opacity: 0; transform: scale(.6); } 60% { transform: scale(1.06); } }
#evt[open] .pop { animation: pop-in .42s cubic-bezier(.2,.8,.2,1); }
#evt[open]::backdrop, #zoom[open]::backdrop { animation: fade-in .3s ease; }
#evt.closing .pop, #zoom.closing .zoom-tile, #zoom.closing .zoom-hint, #zoom.closing .zoom-actions, #zoom.closing .zoom-close { animation: pop-out .22s ease-in forwards; }
#evt.closing::backdrop, #zoom.closing::backdrop { animation: fade-out .22s ease-in forwards; }
/* Passage d'un écran à l'autre : seul le contenu fait un fondu ; « J'aime » et participants restent fixes dans leurs coins
   (une transformation sur le conteneur les ferait sauter : leur position absolue se rapporterait alors au contenu) */
.evt-body > * { transition: opacity .18s ease, transform .18s ease; }
.evt-body.swapping > :not(.pop-foot) { opacity: 0; transform: translateY(-6px); }
.anim-in { animation: rise .45s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i, 0) * 70ms); }
.res-bar i { transform-origin: left center; animation: grow .9s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i, 0) * 70ms + 150ms); }
.opts .opt, .vote-opt { transition: background .2s, transform .2s, opacity .25s, box-shadow .2s; }
@media (hover: hover) { .opts .opt:not(:disabled):hover, .vote-opt:not(:disabled):hover { transform: translateY(-2px); } }
.opts .opt.chosen, .vote-opt.chosen { background: var(--sf-violet); transform: scale(1.03); box-shadow: 0 0 0 4px var(--sf-lilac); }
.opts .opt.dimmed, .vote-opt.dimmed { opacity: .45; }
.opts .opt:disabled { cursor: default; }
.zone.new { animation: zone-in .5s cubic-bezier(.2,.8,.2,1) both; }
.counter.bump { animation: bump .4s ease; }
.diff-result { animation: bravo .6s cubic-bezier(.2,.8,.2,1) both; }
.zoom-tile.revealed .reveal > * { animation: rise .5s cubic-bezier(.2,.8,.2,1) both; }
.zoom-tile.revealed .reveal > :nth-child(2) { animation-delay: .08s; }
.zoom-tile.revealed .reveal > :nth-child(3) { animation-delay: .16s; }
.zoom-cta:not([hidden]) { animation: rise .45s .2s cubic-bezier(.2,.8,.2,1) both; }
.help-text:not([hidden]) { animation: rise .25s ease both; }
@media (prefers-reduced-motion: reduce) {
  #evt[open] .pop, .anim-in, .res-bar i, .zone.new, .counter.bump, .diff-result, .zoom-tile.revealed .reveal > *, .zoom-cta, .help-text, #evt[open]::backdrop, #zoom[open]::backdrop { animation: none; }
}

/* ===== Popups de jeu : gabarits de la maquette validée =====
   Les tailles suivent la largeur de la carte (cqw), dans les mêmes rapports que la maquette. */
.pop.pop--game { container-type: inline-size; max-width: 1040px; padding: 5.2% 5.5% 2.4%; border-radius: clamp(24px, 5vw, 58px);
  /* Fond calé en bas sur toute la largeur (jamais recadré sur les côtés) ; si la carte s'allonge, le haut se prolonge de sa couleur */
  background: rgb(244, 242, 246) center bottom / 100% auto no-repeat; overflow: visible; }
/* « Déjà participé » : on retire l'espace réservé au titre masqué, le bandeau remonte */
.pop--game:has(.banner) > .sr-only { position: absolute; }
.pop--game .evt-body > .banner:first-child { margin-top: -1cqw; }
.pop.pop--game::after { display: none; }
/* Proportions de la carte de la maquette (16:9 environ) ; le contenu part du haut, comme sur les maquettes */
.pop.pop--game { display: flex; flex-direction: column; justify-content: flex-start; aspect-ratio: 1013.6 / 566.11; padding: 6% 5.5% 4%; }
.pop-brand .game-title-img { position: absolute; top: 0; left: calc(var(--tl) * 1%); width: calc(var(--tw) * 1%); display: block; height: auto; }
.pop.pop--game { background-image: var(--card-bg); }
.pop--game .q-count { font-size: clamp(16px, 2.05cqw, 21px); margin: 0 0 .6cqw; }
.pop--game .q-title { font-size: clamp(20px, 3.9cqw, 40px); letter-spacing: -.01em; }
.pop--game .q-title em, .pop--game .q-title.small em { font-family: 'Sanofi Serif', Georgia, serif; font-style: italic; font-weight: 400; color: var(--sf-violet); }
.pop--game .q-title.small { font-size: clamp(15px, 1.9cqw, 19px); margin: 2.4cqw 0 1cqw; text-align: center; }
.pop--game .word { font-size: clamp(32px, 6.8cqw, 70px); line-height: 1.05; }
.pop--game .word-prompt { font-size: clamp(18px, 3.3cqw, 34px); }
.pop--game .spark { max-width: 30cqw; margin: .4cqw auto 2.2cqw; }
.pop--game .score { font-size: clamp(15px, 2cqw, 20px); }
/* Réponses à choisir */
.pop--game .opts.opts { max-width: none; width: 88cqw; margin: 3.2cqw auto 0; gap: 1cqw; }
.pop--game .opts .opt { min-height: clamp(48px, 9.3cqw, 92px); padding: 1cqw 3.4cqw; font-size: clamp(14px, 1.75cqw, 18px); line-height: 1.25; }
.pop--game .opts.opts--list { width: auto; gap: 1.1cqw; }
.pop--game .opts--list .opt { min-height: clamp(38px, 4.2cqw, 44px); padding: 0 2cqw 0 0; gap: 1.6cqw; }
.pop--game .opts--list .opt b { width: clamp(38px, 4.8cqw, 50px); height: auto; align-self: stretch; border-radius: 999px; font-size: clamp(15px, 2.1cqw, 22px); }
/* Résultats : pastille blanche = réponse + barre + votes */
.pop--game .res-list { width: 88cqw; margin: 1.4cqw auto 0; gap: clamp(8px, 1.15cqw, 12px); }
.pop--game .res-row { grid-template-columns: 13cqw 1fr 3.4cqw; gap: 1.2cqw; }
.pop--game .res-tags { align-items: flex-end; }
.pop--game .res-tag { padding: .45cqw 1.3cqw; border: 0; border-radius: 999px; background: #a47cf3; color: #fff; font-size: clamp(12px, 1.35cqw, 15px); font-weight: 400; white-space: nowrap; }
.res-pill { display: grid; grid-template-columns: 21.5cqw 1fr auto; align-items: center; gap: 1.2cqw; min-height: clamp(40px, 4.8cqw, 50px); padding: .35cqw; border: .3cqw solid transparent; border-radius: 999px; background: #fff; }
.is-mine .res-pill { border-color: var(--sf-violet); }
.pop--game .res-opt { align-self: stretch; display: flex; align-items: center; justify-content: center; padding: 1.1cqw 2.6cqw; border-radius: 999px; background: var(--sf-ink); color: #fff; text-align: center; font-size: clamp(12px, 1.3cqw, 15px); line-height: 1.15; box-shadow: none; }
.pop--game .is-correct .res-opt { background: var(--sf-violet); }
.pop--game .res-bar { height: clamp(12px, 2.4cqw, 24px); background: #e4ddf6; }
.pop--game .res-bar i { background: var(--sf-ink); }
.pop--game .is-correct .res-bar i { background: var(--sf-violet); }
.pop--game .res-num { width: 10.6em; display: flex; align-items: center; justify-content: flex-end; gap: .9cqw; padding: 0 1.4cqw 0 0; background: none; font-size: clamp(12px, 1.6cqw, 16px); font-weight: 700; color: var(--sf-ink); }
.pop--game .res-num b { min-width: 3.2em; text-align: left; color: var(--sf-violet); }
.res-sep { display: inline-block; width: 1px; height: clamp(14px, 2cqw, 20px); background: var(--sf-violet); }
.pop--game .res-help .help-btn { width: clamp(24px, 2.8cqw, 30px); height: clamp(24px, 2.8cqw, 30px); }
/* Photo mystère : lettre + barre + %, étiquettes à droite */
.pop--game .res-list--letters { width: auto; margin: 0; gap: 1.1cqw; }
.pop--game .res-list--letters .res-row { grid-template-columns: minmax(0, 32cqw) auto 3cqw; }
.pop--game .res-list--letters .res-tags { align-items: flex-start; }
.res-list--letters .res-pill { grid-template-columns: auto 1fr auto; gap: 1.4cqw; min-height: clamp(34px, 3.8cqw, 40px); padding: 0 1.6cqw 0 0; border: 0; background: var(--sf-ink); }
.res-list--letters .is-correct .res-pill { min-height: clamp(42px, 4.9cqw, 52px); background: var(--sf-violet); }
.res-letter { align-self: stretch; display: grid; place-items: center; width: clamp(34px, 4.6cqw, 48px); border-radius: 999px; background: var(--sf-lilac); color: var(--sf-ink); font-weight: 700; font-size: clamp(15px, 2cqw, 22px); }
.pop--game .res-list--letters .res-bar { height: clamp(10px, 1.9cqw, 20px); background: rgba(255,255,255,.12); }
.pop--game .res-list--letters .res-bar i { background: #b9add4; }
.pop--game .res-list--letters .is-correct .res-bar i { background: #fff; }
.res-pct { min-width: 3.2em; text-align: right; color: #fff; font-size: clamp(13px, 1.9cqw, 20px); font-variant-numeric: tabular-nums; }
.pop--game .mystery { grid-template-columns: 38cqw 1fr; gap: 3cqw; margin-top: 1cqw; }
.pop--game .mystery-img img { border-radius: 4cqw; }
.pop--game .q-pill { padding: 1cqw 5cqw; font-size: clamp(16px, 2.9cqw, 30px); margin-bottom: 3cqw; }
/* Tu préfères */
.pop--game .vote-title em { font-size: clamp(30px, 6cqw, 62px); }
.pop--game .vote-list { width: 76cqw; max-width: none; gap: 1.2cqw; }
.pop--game .vote-row.voted { grid-template-columns: 46cqw 1fr; gap: 1.2cqw; align-items: start; }
.pop--game .vote-opt { min-height: clamp(64px, 11cqw, 112px); padding: 1.6cqw 2cqw; border-radius: 0 3cqw 3cqw 3cqw; font-size: clamp(14px, 2.15cqw, 22px); }
.vote-res { display: flex; flex-direction: column; align-items: flex-start; gap: .9cqw; }
.vote-bar { display: block; width: 100%; height: clamp(26px, 3.5cqw, 34px); padding: .55cqw .9cqw; border-radius: 999px; background: var(--sf-violet); }
.vote-bar i { display: block; height: 100%; border-radius: 999px; background: #cbb2fb; transform-origin: left center; animation: grow .9s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i, 0) * 70ms + 150ms); }
.vote-num { display: flex; flex-direction: column; padding: .5cqw 1.5cqw; border-radius: 1.6cqw; background: rgba(255,255,255,.7); color: var(--sf-violet); line-height: 1.05; }
.vote-num b { font-size: clamp(18px, 2.7cqw, 28px); }
.vote-num small { font-size: clamp(11px, 1.3cqw, 13px); font-weight: 700; color: var(--sf-violet); }
/* Pied : « J'aime ! » et participants */
.pop--game .pop-foot { margin-top: 2cqw; }
#evt .like { padding: 4px 18px 4px 4px; border: 0; background: rgba(255,255,255,.72); }
#evt .like em { font-size: clamp(18px, 2.9cqw, 30px); }
#evt .like-heart { width: clamp(30px, 3.6cqw, 38px); height: clamp(30px, 3.6cqw, 38px); background: var(--sf-ink); }
#evt .like-heart svg { width: 52%; fill: none; stroke: #fff; stroke-width: 2.2; }
#evt .like[aria-pressed="true"] { background: #fff; }
#evt .like[aria-pressed="true"] .like-heart svg { fill: #fff; }
#evt > .fly-heart { color: var(--sf-violet); }
.participants { box-shadow: none; width: clamp(66px, 8.8cqw, 90px); height: clamp(66px, 8.8cqw, 90px); font-size: clamp(9px, .95cqw, 11px); gap: 1px; }
.participants b { font-size: clamp(18px, 2.7cqw, 28px); line-height: 1; }
.participants svg { width: clamp(16px, 2cqw, 22px); margin-top: 2px; opacity: .9; }
@container (max-width: 640px) {
  .pop--game .res-list, .pop--game .vote-list, .pop--game .opts.opts { width: 100%; }
  .pop--game .opts.opts { grid-template-columns: 1fr; }
  .pop--game .res-row { grid-template-columns: 1fr 30px; }
  .pop--game .res-tags { grid-column: 1 / -1; flex-direction: row; justify-content: flex-start; }
  .pop--game .res-tags:empty { display: none; }
  .res-pill { grid-template-columns: 1fr auto; border-radius: 22px; }
  .pop--game .res-opt { grid-column: 1 / -1; min-height: 40px; }
  .pop--game .res-list--letters .res-row { grid-template-columns: 1fr auto 28px; }
  .pop--game .mystery, .pop--game .vote-row.voted { grid-template-columns: 1fr; }
}

.score-final { text-align: center; padding: 2cqw 0 1cqw; }
.score-big { margin: 0; font-family: 'Sanofi Serif', Georgia, serif; font-style: italic; color: var(--sf-violet); font-size: clamp(48px, 9cqw, 96px); line-height: 1; }
.score-big span { font-size: .5em; color: var(--sf-ink); }
.score-label { margin: .4cqw 0 2cqw; font-weight: 700; font-size: clamp(15px, 2cqw, 20px); }
.pop--game .banner { margin-bottom: 1.4cqw; }
.pop--game .vote-title em { line-height: 1.1; }
/* ===== Espaces et tailles mesurés sur chaque maquette (1 cqw = 1 % de la largeur utile de la carte) ===== */
/* Quiz : question basse, grand espace avant les réponses */
/* Quiz : contenu centré verticalement, autant d'air en haut qu'en bas, quelle que soit la longueur de la question */
.pop.pop--quiz { justify-content: center; padding-top: 6.5%; padding-bottom: 6.5%; }
.pop--quiz .evt-body { padding-top: 0 !important; }
.pop--quiz > .sr-only { position: absolute; }
.pop--quiz .q-title { font-size: clamp(20px, 4.8cqw, 48px); }
.pop--quiz .opts.opts { width: 85cqw; margin-top: 6.5cqw; gap: 1.6cqw 1cqw; }
.pop--quiz .opts .opt { min-height: clamp(48px, 8.9cqw, 88px); font-size: clamp(14px, 2.5cqw, 24px); }
/* Mot mystère : mot en grand, réponses larges sur deux lignes */
.pop--mot .evt-body { padding-top: 1cqw !important; }
.pop--mot .word { font-size: clamp(32px, 8cqw, 80px); }
.pop--mot .word-prompt { font-size: clamp(18px, 3.6cqw, 36px); }
.pop--mot .opts.opts { width: 98cqw; margin-top: 4cqw; gap: 1.5cqw 1.1cqw; }
.pop--mot .opts .opt { min-height: clamp(52px, 10.4cqw, 104px); padding: 1cqw 3cqw; font-size: clamp(13px, 2.2cqw, 22px); }
/* Photo mystère : bandeau question, photo et réponses côte à côte qui remplissent la carte */
.pop--game .q-pill { display: block; width: fit-content; min-width: 56cqw; margin: 0 auto 6cqw; padding: clamp(9px, 2cqw, 20px) 5cqw; line-height: 1.1; text-align: center; font-size: clamp(17px, 3.8cqw, 38px); }
.pop--mystere .mystery { grid-template-columns: 43cqw 41cqw; justify-content: center; align-items: center; gap: 4cqw; margin-top: 0; }
.pop--mystere .mystery-img img { aspect-ratio: 4 / 3; border-radius: 5cqw; }
.pop--mystere .opts.opts--list { gap: 2cqw; }
/* Réponses centrées verticalement sur la photo : pas de marge héritée des autres jeux */
.pop--mystere .mystery .opts { margin-top: 0; margin-bottom: 0; }
.pop--mystere .opts--list .opt { min-height: clamp(40px, 6.4cqw, 64px); padding: 0 2cqw 0 0; gap: 2.7cqw; font-size: clamp(14px, 2.5cqw, 25px); }
.pop--mystere .opts--list .opt b { width: clamp(42px, 8.3cqw, 84px); font-size: clamp(17px, 3.8cqw, 38px); }
.pop--mystere .res-list--letters { gap: 1.6cqw; }
.pop--mystere .res-list--letters .res-row { grid-template-columns: minmax(0, 1fr) auto 3cqw; }
.pop--mystere .res-list--letters .res-pill { min-height: clamp(36px, 5cqw, 50px); }
.pop--mystere .res-list--letters .is-correct .res-pill { min-height: clamp(44px, 6.4cqw, 64px); }
/* Tu préfères : titre, cartes de choix plus étroites et plus hautes */
.pop--vote .vote-title em { font-size: clamp(30px, 7.5cqw, 72px); }
.pop--vote .spark { margin-bottom: 1.6cqw; }
.pop--vote .pop-foot { margin-top: 1.4cqw; }
.pop--vote .vote-list { width: 56cqw; gap: 1.4cqw; }
.pop--vote .vote-row.voted { grid-template-columns: 56cqw 1fr; }
.pop--vote .vote-list:has(.voted) { width: 88cqw; }
.pop--vote .vote-opt { min-height: clamp(68px, 13.4cqw, 130px); font-size: clamp(14px, 2.6cqw, 25px); }
/* Différences : titre et compteur plus grands, images qui occupent la largeur */
.pop--diff .diff-head { margin-bottom: 4cqw; }
.pop--diff .diff-title { font-size: clamp(20px, 4.9cqw, 46px); }
.pop--diff .counter { font-size: clamp(18px, 4.2cqw, 40px) !important; padding: .6cqw 3.4cqw !important; }
.pop--diff .diff-imgs { gap: 4.6cqw; }

@container (max-width: 640px) {
  .pop--mystere .mystery { grid-template-columns: 1fr; }
  .pop--mot .opts.opts, .pop--quiz .opts.opts, .pop--vote .vote-list, .pop--vote .vote-list:has(.voted) { width: 100%; }
  .pop--game .q-pill { min-width: 0; }
}
/* Tu préfères : résultat en pastille blanche (barre + votes + %), comme les autres jeux */
.vote-res--pill.vote-res--pill { display: flex; flex-direction: row; align-items: center; gap: 1.6cqw; padding: .9cqw 1.6cqw .9cqw 1.2cqw; border-radius: 999px; background: #fff; box-shadow: 0 2px 10px rgba(42,23,79,.09); }
.vote-res--pill .res-bar { flex: 1; grid-column: auto; height: clamp(12px, 2.2cqw, 22px); margin: 0; background: #e4ddf6; }
.vote-res--pill .res-bar i { background: var(--sf-ink); }
.vote-res--pill.is-mine .res-bar i { background: var(--sf-violet); }
.vote-res--pill .res-num { width: auto; display: flex; align-items: center; gap: .9cqw; padding: 0; background: none; white-space: nowrap; font-size: clamp(12px, 1.6cqw, 16px); font-weight: 700; color: var(--sf-ink); }
.vote-res--pill .res-num b { font-size: inherit; min-width: 3.2em; text-align: left; color: var(--sf-violet); }
/* Grand écran : présentation de la maquette desktop ; téléphone/tablette : pastille */
.vote-res--pill { display: none !important; }
/* Photo mystère : lettre dans une forme lilas arrondie à gauche, courbe à droite */
.pop--game .opts--list .opt b, .pop--game .res-letter { border-radius: 37% 0 39% 37% / 50% 0 100% 50%; padding-right: 8%; background: var(--sf-lilac); color: var(--sf-ink); font-weight: 700; }
.pop--game .opts--list .opt b { width: clamp(52px, 7cqw, 72px); }
.pop--mystere .opts--list .opt b { width: clamp(56px, 8.6cqw, 86px); }
.pop--game .res-letter { width: clamp(46px, 6.2cqw, 64px); }

/* Différences : « ? » à droite du libellé, bulle calée sur la largeur de la liste (jamais hors de la carte) */
.diff-list li { position: relative; flex-wrap: nowrap; align-items: flex-start; justify-content: space-between; }
.diff-list li > .diff-label { flex: 1; }
.diff-list li > .diff-mark { flex: none; width: 1.1em; }
.diff-list li > .diff-mark.no { font-size: 1.45em; line-height: 1; width: .85em; }
.diff-list li { line-height: 1.22; gap: .35em; }
.diff-list.diff-list { gap: .7em; }
.diff-list li .help { position: static; flex: none; }
.diff-list li .help .help-text { left: 0; right: 0; width: auto; top: calc(100% + 6px); }
.diff-list li:has(.help-btn[aria-expanded="true"]) { z-index: 10; }
.diff-result { white-space: nowrap; }

/* Explications : bulle plus large, arrière-plan légèrement flouté pour la détacher */
.help .help-text { width: min(400px, 86vw); font-size: 14px; padding: 14px 18px; background: rgba(255,255,255,.9); -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2); box-shadow: 0 14px 36px rgba(42,23,79,.28); }
.diff-list li .help .help-text { left: -14px; right: -14px; }

/* Écrans intermédiaires à l'horizontale (tablette, petite fenêtre) : popups desktop, mais moins larges */
@media (min-aspect-ratio: 19/20) and (max-aspect-ratio: 162/100) {
  .pop.pop--game, .pop.pop--media { max-width: min(80vw, 860px); }
}

/* ===== Téléphone : gabarits des maquettes mobiles (carte verticale, 1 cqw = 1 % de la largeur de la carte) ===== */
@media (max-width: 600px), (max-width: 1100px) and (orientation: portrait) {
  #evt { width: 100%; height: 100dvh; max-height: 100dvh; margin: 0; padding: max(64px, 15vw) 0 max(24px, 6vw); display: none; }
  #evt[open] { display: flex; flex-direction: column; }
  #evt .pop { margin: auto; }
  .pop.pop--game { width: min(max(264px, 72vw), calc(100vw - 40px), 470px); max-width: none; flex: none;
    aspect-ratio: 743.6 / 1204.6; padding: 0; border-radius: 11.5% 11.5% 6.5% 6.5% / 7.1% 7.1% 4% 4%;
    background: url("../cards/mobile.svg?v=8e42eb51") center bottom / 100% auto no-repeat rgb(241, 238, 243); }
  .pop-brand .game-title-img { width: min(calc(var(--tw) * 1.5%), 84%); left: calc(var(--tl) * 1.3%); }
  .pop > .sr-only { position: absolute; }
  #evt .pop--game .evt-body { padding: 12cqw 6.5cqw 25cqw; }
  #evt .pop--mystere .evt-body, #evt .pop--diff .evt-body { padding-top: 13cqw; }
  /* Vidéo et photos : gabarits des maquettes mobiles (--pw = largeur de la carte) */
  .pop.pop--media { --pw: min(max(286px, 76vw), calc(100vw - 32px), 480px); width: var(--pw); max-width: none; flex: none; display: flex; flex-direction: column;
    aspect-ratio: 805.5 / 866.5; padding: calc(var(--pw) * .14) calc(var(--pw) * .164) calc(var(--pw) * .045) calc(var(--pw) * .056);
    border-radius: 1.7% 7% 7% 7% / 1.6% 6.5% 6.5% 6.5%; background: var(--sf-card); }
  .pop.pop--media::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: inherit;
    background: url("../cards/media-entre.svg?v=00a7d7b2") center / 100% 100% no-repeat; }
  .pop .media-deco { display: none; }
  #evt .pop--media .evt-body { z-index: auto; }
  .pop--media .pop-brand { z-index: 4; }
  .pop--media .pop-brand img { width: calc(var(--lw, 30) * var(--lk, 1.5) * 1%); }
  .pop--rub-entre { --lk: 1.76; }
  .pop--rub-chroniques , .pop--rub-decembre { --lk: 1.48; }
  .pop--media .pop-close { top: -9px; right: -9px; width: 32px; height: 32px; border: 0; background: #e4e1ea; box-shadow: 0 2px 8px rgba(20,10,40,.25); z-index: 5; }
  .pop--media .pop-close::before, .pop--media .pop-close::after { width: 46%; height: 1.5px; }
  .pop--media .media { display: block; margin: 0; }
  .pop--media .pop-title { font-size: max(20px, calc(var(--pw) * .064)); line-height: 1.1; }
  .pop--media .spark { width: calc(var(--pw) * .28); max-width: none; margin: calc(var(--pw) * .02) 0 calc(var(--pw) * .032); }   /* même espace titre / étoile / texte */
  .pop--media .media-text p { font-size: max(12px, calc(var(--pw) * .036)); line-height: 1.22; color: var(--sf-ink); }
  .pop--media .media-main { margin: calc(var(--pw) * .04) 0 0 calc(var(--pw) * .042); width: calc(var(--pw) * .69); }
  #evt .pop--media .player { border: 1px solid rgba(45,27,70,.14); border-radius: 0; }
  #evt .pop--media .player small { display: none; }
  #evt .pop--media .player .play { width: 40px; height: 40px; border-width: 2px; border-color: #d4d0da; }
  #evt .pop--media .player .play::after { left: 15px; top: 11px; border-width: 8px; border-left-width: 12px; border-left-color: #d4d0da; }
  .pop--media .pop-foot { position: relative; z-index: 3; margin-top: auto; padding-top: calc(var(--pw) * .05); }
  #evt .pop--media .like { padding: 0; gap: calc(var(--pw) * .025); background: none; }
  #evt .pop--media .like em { font-size: max(16px, calc(var(--pw) * .047)); }
  #evt .pop--media .like-heart { width: max(28px, calc(var(--pw) * .07)); height: max(28px, calc(var(--pw) * .07)); background: var(--sf-ink); }
  /* Il était une fois : carte haute, photo en pleine largeur sous le texte, bandeau sombre en bas */
  .pop.pop--rub-ieuf { --lk: 1.68; --pw: min(max(270px, 68vw), calc(100vw - 40px), 440px); aspect-ratio: 695 / 1145.4;
    padding: calc(var(--pw) * .21) calc(var(--pw) * .094) 0; border-radius: 16.6% / 10.1%; }
  .pop--rub-ieuf .pop-close { top: calc(var(--pw) * .058); right: calc(var(--pw) * .078); width: max(30px, calc(var(--pw) * .075)); height: max(30px, calc(var(--pw) * .075)); border: 1.5px solid var(--sf-ink); background: transparent; box-shadow: none; }
  .pop--rub-ieuf .media-text p { font-size: max(11px, calc(var(--pw) * .033)); margin-right: calc(var(--pw) * .19); }
  .pop--rub-ieuf .media-main { margin: calc(var(--pw) * .1) 0 0 calc(var(--pw) * -.061); width: calc(var(--pw) * .93); }
  .pop--rub-ieuf .photo img { aspect-ratio: 1.35; border-radius: 0; }
  .pop--rub-ieuf .thumbs { display: none; }
  /* Flèches plus petites et remontées ; légende à l'écart du décor qui mord sur la gauche de la photo */
  .photo-nav { width: 30px; height: 30px; margin-top: -15px; }
  .photo-nav::after { width: 7px; height: 7px; }
  .pop--rub-ieuf .photo-nav.prev { left: calc(var(--pw) * .1); }
  .photo-caption { font-size: 12px; padding: 5px 10px; }
  /* Légende sous les bulles du décor (comme la photo), texte resserré pour rester dans la partie visible */
  .pop--rub-ieuf .photo-caption { z-index: 1; padding: 5px calc(var(--pw) * .12) 5px calc(var(--pw) * .16); }
  .pop--rub-ieuf .pop-foot { margin: 0; padding: 0 calc(var(--pw) * .02) calc(var(--pw) * .01) 0; height: calc(var(--pw) * .17); justify-content: flex-end; align-items: center; }
  #evt .pop--rub-ieuf .like, #evt .pop--rub-ieuf .like[aria-pressed="true"] { flex-direction: row-reverse; background: none; border: 0; box-shadow: none; }
  #evt .pop--rub-ieuf .like em { color: #d9cdf3; }
  #evt .pop--rub-ieuf .like-heart { background: #c7a9f2; }
  #evt .pop--rub-ieuf .like-heart svg { stroke: var(--sf-ink); }
  #evt .pop--rub-ieuf .like[aria-pressed="true"] .like-heart svg { fill: var(--sf-ink); }
  /* Croix : dans la carte, cercle fin */
  .pop--game .pop-close { top: 4.3cqw; right: 5.6cqw; width: max(32px, 9.1cqw); height: max(32px, 9.1cqw); border: 1.5px solid var(--sf-ink); background: rgba(255,255,255,.45); box-shadow: none; }
  .pop--game .pop-close::before, .pop--game .pop-close::after { width: 50%; height: max(2px, .7cqw); }
  .pop--game .banner { font-size: max(12.5px, 3.5cqw); line-height: 1.3; margin: -6cqw 0 4.5cqw; padding: 2cqw 10cqw; justify-content: center; text-align: center; }
  /* Questions */
  .pop--game .q-count { font-size: max(13px, 3.9cqw); margin-bottom: 1cqw; }
  .pop--game .q-title, .pop--quiz .q-title { font-size: max(19px, 7.6cqw); line-height: 1.12; }
  .pop--game .spark { max-width: 34cqw; margin: 3cqw 13cqw 0 auto; }
  .pop--game .opts.opts, .pop--quiz .opts.opts, .pop--mot .opts.opts { grid-template-columns: 1fr; width: 72.6cqw; margin: 9cqw auto 0; gap: 4.3cqw; }
  .pop--game .opts .opt, .pop--quiz .opts .opt { min-height: max(46px, 15.3cqw); padding: 1cqw 5cqw; font-size: max(14px, 4.6cqw); }
  #evt .pop--quiz .evt-body { padding-top: 13cqw !important; }
  #evt .pop--mot .evt-body { padding-top: 17cqw !important; }
  .pop--mot .word { font-size: max(22px, 7cqw); }
  .pop--mot .word-prompt { font-size: max(15px, 4.6cqw); }
  .pop--mot .opts.opts { width: 82cqw; gap: 3.4cqw; margin-top: 7cqw; }
  .pop--mot .opts .opt { min-height: max(48px, 14.6cqw); font-size: max(12px, 3.5cqw); padding: 1cqw 3cqw; }
  /* Résultats : réponse en pastille, puis petite pastille blanche barre + votes */
  .pop--game .res-list { width: 100%; margin-top: 7cqw; gap: 2.6cqw; }
  .pop--game .res-row { grid-template-columns: 15cqw 56cqw 6cqw; gap: 0 2cqw; justify-content: center; align-items: start; }
  .pop--game .res-tags, .pop--game .res-tags:empty { display: flex; grid-column: 1; flex-direction: column; align-items: flex-end; gap: 1cqw; padding-top: 3.4cqw; }
  .pop--game .res-tag { font-size: max(8px, 2.2cqw); padding: .5cqw 1.6cqw; }
  .pop--game .res-help { padding-top: 2.6cqw; }
  .pop--game .res-help .help-btn { width: max(22px, 5.4cqw); height: max(22px, 5.4cqw); }
  .pop--game .res-pill { grid-column: 2; grid-template-columns: 6cqw 1fr auto 6cqw; row-gap: 1.6cqw; column-gap: 1.6cqw; min-height: 0; padding: 0; border: 0; border-radius: 0; background: none; }
  .pop--game .res-pill::before { content: ""; grid-row: 2; grid-column: 2 / 4; margin: 0 -1.6cqw; border-radius: 999px; background: #fff; }
  .pop--game .res-opt { grid-column: 1 / -1; min-height: max(38px, 11.3cqw); padding: 1cqw 4cqw; font-size: max(12px, 3.8cqw); }
  .pop--game .is-mine .res-opt { box-shadow: 0 0 0 max(2px, .6cqw) var(--sf-violet); }
  .pop--game .res-bar { grid-row: 2; grid-column: 2; align-self: center; height: max(8px, 2.6cqw); margin: 1cqw 0; }
  .pop--game .res-num { grid-row: 2; grid-column: 3; width: auto; padding: 0; gap: 1cqw; font-size: max(9px, 2.6cqw); }
  .pop--game .res-num b { min-width: 0; }
  .res-sep { height: max(10px, 2.8cqw); }
  .pop--game .pop-next { margin-top: 5cqw; }
  .pop--game .pop-next .btn { font-size: max(14px, 4cqw); }
  /* Pied : « J'aime ! » en bas à gauche, participants en bas à droite */
  .pop--game .pop-foot { position: absolute; left: 6cqw; right: 1.6cqw; bottom: 9cqw; margin: 0; align-items: flex-end; z-index: 2; }
  #evt .pop--game .like { padding: .7cqw 3.4cqw .7cqw .7cqw; gap: 2.4cqw; }
  #evt .pop--game .like em { font-size: max(16px, 5.4cqw); }
  #evt .pop--game .like-heart { width: max(28px, 8.6cqw); height: max(28px, 8.6cqw); }
  .pop--game .participants { width: max(42px, 10.6cqw); height: max(42px, 10.6cqw); font-size: max(6.5px, 1.6cqw); }
  .pop--game .participants b { font-size: max(11px, 3cqw); letter-spacing: -.02em; }
  .pop--game .participants svg { width: max(12px, 3.4cqw); }
  /* Tu préfères */
  .pop--vote .vote-title em { font-size: max(32px, 10.5cqw); }
  #evt .pop--vote .evt-body { padding-top: 15cqw; }
  .pop--vote .spark { margin-bottom: 9cqw; }
  .pop--vote .vote-list, .pop--vote .vote-list:has(.voted) { width: 81cqw; gap: 4cqw; }
  .pop--vote .vote-row.voted { grid-template-columns: 1fr; gap: 2cqw; }
  .pop--vote .vote-opt { min-height: max(64px, 22.6cqw); padding: 2cqw 4cqw; border-radius: 6.5cqw 6.5cqw 0 6.5cqw; font-size: max(13px, 4cqw); }
  .pop--vote .vote-bar { width: 42cqw; height: max(14px, 4.6cqw); padding: .8cqw; }
  .pop--vote .vote-num { padding: 1cqw 2.4cqw; border-radius: 3cqw; }
  .pop--vote .vote-num b { font-size: max(13px, 3.8cqw); }
  .pop--vote .vote-num small { font-size: max(8px, 2cqw); }
  /* Photo mystère */
  .pop--game .q-pill { min-width: 0; width: 71.5cqw; margin: 0 auto 4.6cqw; padding: 2.4cqw 3cqw; font-size: max(14px, 4.8cqw); }
  .pop--mystere .mystery { grid-template-columns: 1fr; gap: 5cqw; justify-items: center; }
  .pop--mystere .mystery-img { width: 74cqw; }
  .pop--mystere .mystery-img img { aspect-ratio: 1.31; border-radius: 8cqw; }
  .pop--mystere .mystery > div { width: 68cqw; }
  .pop--mystere .opts.opts--list { width: 100%; margin: 0; gap: 3cqw; }
  .pop--mystere .opts--list .opt { min-height: max(32px, 9cqw); font-size: max(12px, 3.4cqw); gap: 2.4cqw; line-height: 1.15; }
  .pop--mystere .opts--list .opt b { width: max(32px, 9cqw); font-size: max(14px, 4.6cqw); }
  .pop--mystere .mystery > div:has(.res-list--letters) { width: 90cqw; }
  .pop--mystere .res-list--letters { width: 100%; gap: 2cqw; }
  .pop--mystere .res-list--letters .res-row { grid-template-columns: 15cqw 1fr 6cqw; gap: 0 1.6cqw; align-items: center; }
  .pop--mystere .res-list--letters .res-tag { white-space: normal; text-align: right; line-height: 1.1; }
  .pop--mystere .res-list--letters .res-tags { order: -1; padding-top: 0; }
  .pop--mystere .res-list--letters .res-pill { grid-column: auto; grid-template-columns: auto 1fr auto; column-gap: 2.4cqw; padding: 0 3cqw 0 0; border-radius: 999px; background: var(--sf-ink); min-height: max(30px, 8cqw); }
  .pop--mystere .res-list--letters .res-pill::before { display: none; }
  .pop--mystere .res-list--letters .is-correct .res-pill { min-height: max(38px, 10.2cqw); background: var(--sf-violet); }
  .pop--mystere .res-list--letters .res-letter { grid-area: 1 / 1; }
  .pop--mystere .res-list--letters .res-bar { grid-area: 1 / 2; margin: 0; min-width: 10cqw; }
  .pop--mystere .res-list--letters .res-pct { grid-area: 1 / 3; }
  .pop--mystere .res-letter { width: max(30px, 8.6cqw); font-size: max(14px, 4.6cqw); }
  .pop--mystere .res-pct { font-size: max(12px, 3.8cqw); }
  /* Différences : images l'une sous l'autre, compteur en bas à droite */
  .pop--diff .evt-body > .diff-head { position: static; justify-content: center; margin-bottom: 4.6cqw; }
  #evt .pop--diff .evt-body { padding-top: 15cqw; }
  .pop--diff .diff-title { font-size: max(17px, 6.2cqw); text-align: center; }
  .pop--diff .diff-imgs { grid-template-columns: 1fr; width: 66.7cqw; margin: 0 auto; gap: 4.8cqw; }
  .pop--diff .diff-score { position: absolute; right: 7cqw; bottom: 9.4cqw; z-index: 3; display: flex; flex-direction: column; align-items: flex-end; gap: 1cqw; }
  .pop--diff .counter { font-size: max(16px, 5.4cqw) !important; padding: 1cqw 4cqw !important; }
  .pop--diff .errors { font-size: max(10px, 2.6cqw); color: var(--sf-ink); }
  /* Résultats quiz / mot mystère : étiquettes en bulle à cheval sur le haut de la réponse,
     pastille blanche centrée sous la réponse avec barre + « N votes | % » */
  .pop--game .res-list:not(.res-list--letters) { gap: 6.4cqw; margin-top: 8cqw; }
  .pop--game .res-list:not(.res-list--letters) .res-row { position: relative; grid-template-columns: 78cqw; gap: 0; justify-content: center; }
  .pop--game .res-list:not(.res-list--letters) .res-tags { position: absolute; z-index: 2; left: 50%; top: 0; transform: translate(-50%, -55%); white-space: nowrap; flex-direction: row; gap: 3cqw; padding: 0; }
  .pop--game .res-list:not(.res-list--letters) .res-tags:empty { display: none; }
  .pop--game .res-list:not(.res-list--letters) .res-tag { font-size: max(10px, 2.8cqw); padding: .8cqw 2.6cqw; box-shadow: 0 0 0 max(2px, .6cqw) rgb(241, 238, 243); }
  .pop--game .res-list:not(.res-list--letters) .res-pill { grid-column: 1; grid-template-columns: 6% 1fr auto 6%; row-gap: 3.4cqw; column-gap: 2.4cqw; }
  .pop--game .res-list:not(.res-list--letters) .res-pill::before { align-self: stretch; margin: -1.8cqw -4.2cqw; box-shadow: 0 2px 10px rgba(42,23,79,.09); }
  .pop--game .res-list:not(.res-list--letters) .res-opt { min-height: max(44px, 13cqw); padding: max(14px, 4cqw) 5cqw max(10px, 3cqw); font-size: max(14px, 4.4cqw); }
  /* Bulle d'explication centrée sous la ligne, et non calée sur le « ? » */
  .pop--game .res-list:not(.res-list--letters) .help .help-text { right: auto; left: 50%; top: calc(100% + max(46px, 13.5cqw)); width: 94cqw; translate: calc(-50% - 39cqw) 0; font-size: max(12px, 3.4cqw); }
  .pop--game .res-list:not(.res-list--letters) .res-bar { height: max(10px, 3.6cqw); margin: .6cqw 0; min-width: 22cqw; }
  .pop--game .res-list:not(.res-list--letters) .res-num { font-size: max(12px, 3.5cqw); gap: 1.6cqw; }
  .pop--game .res-list:not(.res-list--letters) .res-num b { color: var(--sf-violet); }
  .pop--game .res-list:not(.res-list--letters) .res-help { position: absolute; z-index: 2; left: calc(50% + 39cqw); top: max(22px, 6.5cqw); transform: translate(-50%, -50%); padding: 0; }
  .pop--game .res-list:not(.res-list--letters) .res-help .help-btn { box-shadow: 0 0 0 max(2px, .7cqw) rgb(241, 238, 243); }
  /* Tu préfères (mobile) : pastille sous le choix */
  .pop--vote .vote-res--desk { display: none !important; }
  .pop--vote .vote-res--pill { display: flex !important; }
  .pop--vote .vote-res--pill.vote-res--pill { width: 86%; margin: 0 auto; gap: 2.4cqw; padding: 1.6cqw 3cqw 1.6cqw 2.4cqw; }
  .pop--vote .vote-res--pill .res-bar { height: max(10px, 3.6cqw); }
  .pop--vote .vote-res--pill .res-num { font-size: max(12px, 3.5cqw); gap: 1.6cqw; }
  .pop--vote .vote-row.voted { gap: 2.6cqw; }
  /* Lettres de la photo mystère (mobile) */
  .pop--mystere .opts--list .opt { padding: 0 3cqw 0 0; }
  .pop--mystere .opts--list .opt b { width: max(44px, 12.5cqw); }
  .pop--mystere .res-letter { width: max(40px, 11cqw); }
  /* Titres vidéo/photo : retour à la ligne avant la bulle du haut ; vidéo alignée sur le texte */
  .pop--rub-entre .pop-title, .pop--rub-chroniques .pop-title , .pop--rub-decembre .pop-title { max-width: calc(var(--pw) * .52); }
  .pop--rub-ieuf .pop-title { margin-right: calc(var(--pw) * .16); }
  .pop--rub-entre .media-main, .pop--rub-chroniques .media-main , .pop--rub-decembre .media-main { margin-left: 0; width: 100%; }
  /* Fin de partie : le compteur se place à gauche du badge des participants */
  .pop--diff:has(.participants) .diff-score { right: 20cqw; }
  .pop--diff:has(.participants) .errors { display: none; }
  /* « Bravo ! » / « Perdu ! » sur une ligne */
  .pop--diff .diff-result { font-size: max(26px, 9cqw); padding: 1.4cqw 7cqw; }
  /* Cartes vidéo/photo : hauteur fixe au ratio de la maquette (le décor n'est jamais déformé) ;
     la vidéo ou la photo prend la place restante */
  .pop.pop--rub-ieuf { aspect-ratio: auto; height: calc(var(--pw) * 1145.4 / 695); }
  #evt .pop--media .evt-body { flex: 1; min-height: 0; display: flex; flex-direction: column; }
  .pop--media .media { flex: 1; min-height: 0; display: flex; flex-direction: column; }
  .pop--media .media-main { flex: 1 1 auto; min-height: 0; display: flex; align-items: flex-start; }
  .pop--rub-ieuf .media-main .photo { flex: 1; height: 100%; display: flex; }
  /* Retours à la ligne saisis dans le backoffice (comme sur ordinateur) */
  .pop--rub-ieuf .media-text p { white-space: pre-line; }
  /* Texte en entier : la photo prend la place restante (au moins la moitié de la largeur en hauteur) ;
     au-delà, le texte défile en dernier recours */
  .pop--rub-ieuf .media-text { flex: 0 1 auto; min-height: 0; overflow-y: auto; }
  .pop--rub-ieuf .media-main { position: relative; flex: 1 0 0; min-height: calc(var(--pw) * .36); }
  /* Bulle de gauche (calque à part du décor) accrochée au haut de la photo : toujours sous le texte, quelle que soit sa longueur */
  .pop--rub-ieuf .media-main::before { content: ""; position: absolute; z-index: 3; pointer-events: none;
    left: calc(var(--pw) * -.033); top: calc(var(--pw) * -.079); bottom: 0; width: calc(var(--pw) * 212 / 695);
    background: url("../cards/media-ieuf-left.svg?v=2") left top / 100% auto no-repeat; }
  .pop--rub-ieuf .photo img { aspect-ratio: auto; width: 100%; height: 100%; object-fit: cover; }
  .pop--media .pop-foot { flex: none; }
  /* Distance des textes aux bulles */
  .pop--rub-entre .pop-title, .pop--rub-chroniques .pop-title , .pop--rub-decembre .pop-title { max-width: calc(var(--pw) * .46); }
  .pop--rub-entre .media-text p, .pop--rub-chroniques .media-text p , .pop--rub-decembre .media-text p { margin-right: calc(var(--pw) * .02); }
  .pop--rub-ieuf .pop-title { margin-right: calc(var(--pw) * .18); }
  .pop--rub-ieuf .media-text p { margin-right: calc(var(--pw) * .17); font-size: max(11px, calc(var(--pw) * .031)); line-height: 1.22; }
  .pop.pop--rub-ieuf { padding-top: calc(var(--pw) * .175); }
  .pop--rub-ieuf .spark { margin-bottom: calc(var(--pw) * .005); }
  .pop--rub-ieuf .media-main { margin-top: calc(var(--pw) * .09); }
  /* Entre nous / Chroniques : la carte peut s'allonger ; décor en deux parties fixées en haut et en bas,
     colonne de droite prolongée par sa couleur — aucune forme n'est déformée */
  .pop--rub-entre .media-main, .pop--rub-chroniques .media-main , .pop--rub-decembre .media-main { display: block; flex: none; }
  .pop.pop--rub-entre, .pop.pop--rub-chroniques , .pop.pop--rub-decembre { background: linear-gradient(to left, rgb(37, 39, 91) 10.8%, transparent 10.8%), var(--sf-card); }
  .pop.pop--rub-entre::after, .pop.pop--rub-chroniques::after , .pop.pop--rub-decembre::after { background: url("../cards/media-entre-top.svg?v=5a65f4a1") center top / 100% auto no-repeat; }
  .pop.pop--rub-entre::before, .pop.pop--rub-chroniques::before , .pop.pop--rub-decembre::before { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: inherit;
    background: url("../cards/media-entre-bottom.svg?v=c6a8af8d") center bottom / 100% auto no-repeat; }
  .pop--rub-entre .pop-title, .pop--rub-chroniques .pop-title , .pop--rub-decembre .pop-title { max-width: calc(var(--pw) * .5); }
  /* Photo mystère (résultats) : mêmes règles que le quiz — bulles centrées à cheval sur le haut, « ? » à cheval sur la droite */
  .pop--mystere .mystery > div:has(.res-list--letters) { width: 80cqw; }
  .pop--mystere .res-list--letters { gap: 5cqw; padding-top: 2cqw; }
  .pop--mystere .res-list--letters .res-row { position: relative; grid-template-columns: 1fr; gap: 0; }
  .pop--mystere .res-list--letters .res-tags { position: absolute; z-index: 2; left: 50%; top: 0; transform: translate(-50%, -55%); flex-direction: row; gap: 3cqw; padding: 0; order: 0; white-space: nowrap; }
  .pop--mystere .res-list--letters .res-tags:empty { display: none; }
  .pop--mystere .res-list--letters .res-tag { white-space: nowrap; font-size: max(10px, 2.8cqw); padding: .8cqw 2.6cqw; box-shadow: 0 0 0 max(2px, .6cqw) rgb(241, 238, 243); }
  .pop--mystere .res-list--letters .res-pill { grid-column: 1; }
  .pop--mystere .res-list--letters .res-row:has(.help-btn) .res-pill { padding-right: 7.5cqw; }
  .pop--mystere .res-list--letters .res-help { position: absolute; z-index: 2; right: 0; top: 50%; transform: translate(50%, -50%); padding: 0; }
  .pop--mystere .res-list--letters .res-help .help-btn { box-shadow: 0 0 0 max(2px, .7cqw) rgb(241, 238, 243); }
  .pop--mystere .res-list--letters .help .help-text { right: auto; left: 50%; width: 94cqw; translate: calc(-50% - 40cqw) 0; font-size: max(12px, 3.4cqw); }
  .diff-list li .help .help-text { left: -4cqw; right: -4cqw; }

  .pop.pop--quiz { justify-content: flex-start; padding: 0; }
}

/* ===== Photo mystère, grand écran : résultats lisibles après coup (texte dans la case),
   bonne réponse mise en avant, bulles de lettres colorées et jamais déformées ===== */
.res-label { display: none; }
@media (min-width: 601px) and (orientation: landscape), (min-width: 1101px) {
  /* Moins d'espace au-dessus de la question : le titre masqué ne prend plus de place */
  .pop--mystere > .sr-only { position: absolute; }
  .pop.pop--mystere { padding-top: 4.4%; }
  .pop--mystere .res-list--letters { gap: 1.9cqw; }
  .pop--mystere .res-list--letters .res-row { position: relative; display: flex; align-items: center; gap: 1.2cqw; }
  .pop--mystere .res-list--letters .res-pill { display: flex; align-items: center; gap: 1.4cqw; width: 88%; flex: none;
    min-height: clamp(38px, 5.2cqw, 52px); padding: 0 1.8cqw 0 0; border: 0; border-radius: 999px; background: var(--sf-ink); color: #fff; }
  .pop--mystere .res-list--letters .is-correct .res-pill { width: 100%; min-height: clamp(46px, 6.6cqw, 66px); background: var(--sf-violet); }
  /* Bulle de lettre : forme de la maquette (gauche arrondie, courbe en bas à droite), largeur fixe.
     Bonne réponse et réponse donnée : lilas ; autres : couleur de la case, cernée d'un trait lilas */
  .pop--mystere .res-list--letters .res-letter { flex: none; align-self: stretch; width: clamp(54px, 7cqw, 72px); padding: 0 8% 0 0;
    border-radius: 37% 0 39% 37% / 50% 0 100% 50%; display: grid; place-items: center; font-size: clamp(16px, 2.6cqw, 28px); font-weight: 700;
    background: transparent; color: var(--sf-lilac); box-shadow: inset 0 0 0 1.5px var(--sf-lilac); }
  .pop--mystere .res-list--letters .is-correct .res-letter { width: clamp(64px, 8.6cqw, 88px); font-size: clamp(19px, 3.2cqw, 34px); }
  .pop--mystere .res-list--letters .is-correct .res-letter,
  .pop--mystere .res-list--letters .is-mine .res-letter { background: var(--sf-lilac); color: var(--sf-ink); box-shadow: none; }
  .pop--mystere .res-list--letters .res-label { display: block; flex: 1 1 auto; min-width: 0; font-size: clamp(13px, 1.75cqw, 18px); line-height: 1.15; }
  .pop--mystere .res-list--letters .is-correct .res-label { font-weight: 700; font-size: clamp(14px, 1.95cqw, 20px); }
  .pop--mystere .res-list--letters .res-bar { flex: 0 0 22%; margin: 0; }
  .pop--mystere .res-list--letters .res-pct { flex: none; min-width: 3.2em; font-size: clamp(13px, 1.9cqw, 20px); }
  .pop--mystere .res-list--letters .is-correct .res-pct { font-size: clamp(15px, 2.3cqw, 24px); }
  /* Étiquettes à cheval sur le haut de la case, à droite : jamais hors du cadre */
  .pop--mystere .res-list--letters .res-tags { position: absolute; z-index: 2; top: 0; right: calc(12% + 2cqw); transform: translateY(-58%);
    display: flex; flex-direction: row; gap: .6cqw; padding: 0; }
  .pop--mystere .res-list--letters .is-correct .res-tags { right: 2cqw; }
  .pop--mystere .res-list--letters .res-tags:empty { display: none; }
  .pop--mystere .res-list--letters .res-tag { font-size: clamp(10px, 1.15cqw, 13px); padding: .25cqw 1cqw; box-shadow: 0 0 0 2px rgb(244, 242, 246); }
  .pop--mystere .res-list--letters .res-help { flex: none; position: static; transform: none; }
  .pop--mystere .res-list--letters .res-help:empty { display: none; }
  .pop--mystere .mystery { grid-template-columns: 40cqw 46cqw; gap: 3cqw; }
}

/* ===== Grand écran : « J'aime » et participants fixés dans les coins bas de la carte
   (quiz, photo mystère, « Tu préfères » ; pas le mot mystère ni les différences, dont les résultats descendent bas) ; score du quiz plus lisible ===== */
@media (min-width: 601px) and (orientation: landscape), (min-width: 1101px) {
  .pop--quiz .pop-foot, .pop--mystere .pop-foot, .pop--vote .pop-foot {
    position: absolute; left: 5.5%; right: 5.5%; bottom: 5.5%; z-index: 2; margin: 0; align-items: flex-end; pointer-events: none; }
  .pop--quiz .pop-foot > *, .pop--mystere .pop-foot > *, .pop--vote .pop-foot > * { pointer-events: auto; }
  .pop--quiz .score-final .q-count { font-size: clamp(18px, 2.6cqw, 27px); margin-bottom: 1cqw; }
  .pop--quiz .score-big { font-size: clamp(64px, 13cqw, 134px); }
  .pop--quiz .score-label { font-size: clamp(18px, 2.9cqw, 30px); margin: 1cqw 0 2.6cqw; }
  .pop--quiz .score-final .btn { font-size: clamp(15px, 1.9cqw, 20px); padding: 1.1cqw 2.8cqw; }
}

/* ===== Grand écran : finitions des cartes de jeu ===== */
@media (min-width: 601px) and (orientation: landscape), (min-width: 1101px) {
  /* Arrondi identique à celui du fond vectoriel (65 unités pour 1013 × 566) : plus de croissant clair au coin */
  .pop.pop--game { border-radius: 6.44% / 11.54%; }
  /* « Déjà participé » : bandeau remonté, un peu d'air en dessous */
  .pop--game .evt-body > .banner:first-child { margin-top: -2.6cqw; margin-bottom: 2.6cqw; }
  /* Tu préfères et mot mystère : moins d'espace en haut de la carte */
  .pop--vote > .sr-only, .pop--mot > .sr-only { position: absolute; }
  .pop.pop--mot { padding-top: 6%; }
  .pop.pop--vote { padding-top: 7.4%; }
  /* Air sous « Dilemme suivant » (le bouton ne colle plus au bas de la carte) */
  .pop--vote .pop-next { margin-bottom: 3.2cqw; }
  /* Photo mystère : un peu d'air autour du bandeau « déjà participé », et sous la photo / les réponses
     pour bien séparer « J'aime » et les participants */
  .pop--mystere .evt-body > .banner:first-child { margin-top: -1.2cqw; margin-bottom: 3.6cqw; }
  .pop--mystere .mystery { margin-bottom: 7cqw; }
}

/* ===== Avant l'ouverture et après le 24 décembre ===== */
.phase { position: absolute; z-index: 4; left: 50%; transform: translateX(-50%); width: min(92%, 640px); text-align: center; color: var(--sf-ink);
  background: rgba(246, 242, 251, .94); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-radius: 24px;
  box-shadow: 0 24px 60px rgba(10, 4, 30, .45); padding: clamp(20px, 3.4vw, 36px) clamp(20px, 4vw, 44px); animation: phase-in .5s cubic-bezier(.2,.8,.2,1) both; }
.phase--soon { top: 50%; transform: translate(-50%, -50%); }
.phase--end { top: 50%; transform: translate(-50%, -50%); padding-left: 56px; padding-right: 56px; }  /* centré comme la carte d'attente ; marges égales autour de la croix */
.board:has(.phase--soon) .board-clip { filter: saturate(.7) brightness(.75); }
.phase-kicker { margin: 0 0 6px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--sf-violet); }
.phase-title { margin: 0; font-size: clamp(22px, 3vw, 34px); font-weight: 700; line-height: 1.15; }
.phase-title em { font-family: 'Sanofi Serif', Georgia, serif; font-weight: 400; color: var(--sf-violet); white-space: nowrap; }
.phase-title sup { font-size: .55em; }
.phase-text { margin: 10px 0 0; font-size: clamp(14px, 1.5vw, 17px); line-height: 1.4; color: var(--sf-muted); }
.phase-close { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: #e4e1ea; color: var(--sf-ink); font-size: 20px; line-height: 1; }
@keyframes phase-in { from { opacity: 0; translate: 0 12px; } }
@media (prefers-reduced-motion: reduce) { .phase { animation: none; } }

/* ===== Retours iPhone du 11/11 (mobile et tablette en portrait uniquement) ===== */
/* Les paillettes de la case du jour ne doivent jamais agrandir la page (saut d'écran sur iPhone) */
.stage-front { overflow: clip; }
@media (max-width: 600px), (max-width: 1100px) and (orientation: portrait) {
  /* Vidéo et photos (Entre nous, Chroniques) : la carte s'allonge avec son contenu, la vidéo reste dedans,
     un peu plus d'air au-dessus du titre et entre la vidéo et « J'aime » */
  .pop.pop--rub-entre, .pop.pop--rub-chroniques , .pop.pop--rub-decembre { aspect-ratio: auto; min-height: calc(var(--pw) * 866.5 / 805.5);
    padding-top: calc(var(--pw) * .17); padding-bottom: calc(var(--pw) * .06); }
  .pop--rub-entre .pop-foot, .pop--rub-chroniques .pop-foot , .pop--rub-decembre .pop-foot { padding-top: calc(var(--pw) * .07); }
  /* Jeux : plus d'espace au-dessus de « J'aime » et des participants (et sous « Question suivante ») */
  #evt .pop--game .evt-body { padding-bottom: 33cqw; }
  /* Mot mystère : un peu moins d'espace au-dessus et en dessous du mot */
  #evt .pop--mot .evt-body { padding-top: 6cqw; }
  /* Résultats : un peu d'air au-dessus des réponses portant « Bonne réponse » / « Votre réponse » */
  .pop--game .res-list:not(.res-list--letters) .res-row:has(.res-tag) { margin-top: 3cqw; }
  #evt .pop--mot .opts.opts { margin-top: 6cqw; }
  /* Vue agrandie avant grattage : plus de liseré clair au bord de la case */
  .zoom-tile:not(.revealed) { background: transparent; }
  .zoom-tile canvas.cover { inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); }
}

/* ===== Mobile : cartes de jeu plus larges, arrondis toujours circulaires (11/11) ===== */
@media (max-width: 600px), (max-width: 1100px) and (orientation: portrait) {
  /* Largeur de la carte : presque tout l'écran (20 px de marge de chaque côté), 560 px au plus */
  .pop.pop--game { --gw: min(calc(100vw - 40px), 560px); width: var(--gw);
    /* Arrondis en proportion de la largeur (comme le fond mobile.svg) : restent des quarts de cercle
       même quand la carte s'allonge avec les résultats */
    border-radius: calc(var(--gw) * .115) calc(var(--gw) * .115) calc(var(--gw) * .065) calc(var(--gw) * .065); }
}

/* Il était une fois (mobile) : un peu plus d'espace sous le logo, au-dessus du titre */
@media (max-width: 600px), (max-width: 1100px) and (orientation: portrait) {
  .pop.pop--rub-ieuf { padding-top: calc(var(--pw) * .245); }
}

/* ===== Photo mystère (desktop) : bulle de lettre de la maquette =====
   Gauche en demi-cercle parfait, haut droit à angle vif, grande courbe jusqu'en bas,
   bas qui descend légèrement sous la barre (4 % de sa hauteur). Largeur = 1,26 × hauteur. */
@media (min-width: 601px) and (orientation: landscape), (min-width: 1101px) {
  .pop--mystere .res-list--letters .res-pill { --h: clamp(38px, 5.2cqw, 52px); min-height: var(--h); overflow: visible; }
  .pop--mystere .res-list--letters .is-correct .res-pill { --h: clamp(46px, 6.6cqw, 66px); }
  .pop--mystere .opts--list .opt { --h: clamp(40px, 6.4cqw, 64px); min-height: var(--h); padding-top: 0; padding-bottom: 0; align-items: center; }
  .pop--mystere .res-list--letters .res-letter,
  .pop--mystere .res-list--letters .is-correct .res-letter,
  .pop--mystere .opts--list .opt b {
    --b: calc(var(--h) * 1.04);
    flex: none; align-self: flex-start; box-sizing: border-box;
    height: var(--b); width: calc(var(--b) * 1.26); margin-bottom: calc(var(--h) * -.04);
    padding: 0 calc(var(--b) * .1) 0 0;
    border-radius: 39.7% 0 60.3% 39.7% / 50% 0 100% 50%;
  }
  /* Lettres non retenues : couleur de la case, trait lilas le long de la courbe seulement */
  .pop--mystere .res-list--letters .res-letter { background: var(--sf-ink); color: var(--sf-lilac); box-shadow: none; filter: drop-shadow(1.5px .5px 0 var(--sf-lilac)); }
  .pop--mystere .res-list--letters .is-correct .res-letter,
  .pop--mystere .res-list--letters .is-mine .res-letter { background: var(--sf-lilac); color: var(--sf-ink); filter: none; }
}

/* Vidéo chargée : plus de cadre ni de fond autour (le cadre reste pour l'emplacement vide) */
#evt .player:has(iframe, video), #evt .pop--media .player:has(iframe, video) { border: 0; padding: 0; background: none; }
#evt .player iframe, #evt .player video { background: transparent; }

/* ===== Lecteur Vimeo : commandes du site (lecture/pause, avancement, son) ===== */
#evt .player--vimeo { color: #fff; }
#evt .player--vimeo iframe { pointer-events: none; }   /* aucun menu Vimeo accessible : tout passe par nos commandes */
.player--vimeo .vp-cover { position: absolute; inset: 0 0 44px; z-index: 1; display: grid; place-items: center; padding: 0; border: 0; background: none; cursor: pointer; }
.player--vimeo .vp-big { width: clamp(48px, 8cqw, 72px); aspect-ratio: 1; border-radius: 50%; background: rgba(42, 23, 79, .72); position: relative; opacity: 0; transition: opacity .2s; }
.player--vimeo .vp-big::after { content: ""; position: absolute; left: 39%; top: 50%; translate: 0 -50%; border: .55em solid transparent; border-left: .85em solid #fff; border-right: 0; font-size: clamp(14px, 2.2cqw, 20px); }
.player--vimeo.is-paused .vp-big { opacity: 1; }
.player--vimeo .vp-bar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; height: 44px; display: flex; align-items: center; gap: 10px; padding: 0 12px;
  background: linear-gradient(transparent, rgba(20, 10, 40, .55)); transition: opacity .25s; }
@media (hover: hover) { .player--vimeo:not(.is-paused):not(:hover) .vp-bar { opacity: 0; } }
.player--vimeo .vp-bar button { flex: none; width: 28px; height: 28px; padding: 0; border: 0; background: none; cursor: pointer; position: relative; color: #fff; }
/* Lecture ▶ / pause ❚❚ */
.player--vimeo .vp-play::before { content: ""; position: absolute; left: 9px; top: 7px; border: 7px solid transparent; border-left: 11px solid currentColor; border-right: 0; }
.player--vimeo:not(.is-paused) .vp-play::before { left: 8px; top: 7px; width: 4px; height: 14px; border: 0; border-left: 4px solid currentColor; border-right: 4px solid currentColor; box-sizing: content-box; width: 4px; }
/* Son : haut-parleur, barré quand coupé */
.player--vimeo .vp-mute::before { content: ""; position: absolute; inset: 0; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M4 9h4l5-4v14l-5-4H4z'/><path d='M16 8.5a5 5 0 0 1 0 7M18.5 6a8.5 8.5 0 0 1 0 12' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/></svg>") center / 22px no-repeat;
          mask: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M4 9h4l5-4v14l-5-4H4z'/><path d='M16 8.5a5 5 0 0 1 0 7M18.5 6a8.5 8.5 0 0 1 0 12' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/></svg>") center / 22px no-repeat; }
.player--vimeo.is-muted .vp-mute::before {
  -webkit-mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M4 9h4l5-4v14l-5-4H4z'/><path d='M16 9l5 6M21 9l-5 6' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/></svg>");
          mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M4 9h4l5-4v14l-5-4H4z'/><path d='M16 9l5 6M21 9l-5 6' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/></svg>"); }
/* Barre d'avancement */
.player--vimeo .vp-seek { --p: 0%; flex: 1; min-width: 0; height: 20px; margin: 0; background: none; cursor: pointer; -webkit-appearance: none; appearance: none; }
.player--vimeo .vp-seek::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--sf-lilac) var(--p), rgba(255,255,255,.35) var(--p)); }
.player--vimeo .vp-seek::-moz-range-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--sf-lilac) var(--p), rgba(255,255,255,.35) var(--p)); }
.player--vimeo .vp-seek::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; margin-top: -4px; border-radius: 50%; background: #fff; border: 0; }
.player--vimeo .vp-seek::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 0; }
.player--vimeo button:focus-visible, .player--vimeo .vp-seek:focus-visible { outline: 2px solid var(--sf-lilac); outline-offset: 2px; }
/* Repli Safari iOS : le toucher passe à la vidéo elle-même */
#evt .player--vimeo.is-direct iframe { pointer-events: auto; }
.player--vimeo.is-direct .vp-cover { pointer-events: none; }

/* Plein écran du lecteur */
.player--vimeo .vp-full::before { content: ""; position: absolute; inset: 0; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M4 9V4h5M15 4h5v5M20 15v5h-5M9 20H4v-5'/></svg>") center / 20px no-repeat;
          mask: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M4 9V4h5M15 4h5v5M20 15v5h-5M9 20H4v-5'/></svg>") center / 20px no-repeat; }
.player--vimeo:fullscreen .vp-full::before {
  -webkit-mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M9 4v5H4M20 9h-5V4M15 20v-5h5M4 15h5v5'/></svg>");
          mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M9 4v5H4M20 9h-5V4M15 20v-5h5M4 15h5v5'/></svg>"); }
#evt .player--vimeo:fullscreen { width: 100vw; height: 100vh; aspect-ratio: auto; border-radius: 0; background: #000; }
#evt .player--vimeo:-webkit-full-screen { width: 100vw; height: 100vh; aspect-ratio: auto; border-radius: 0; background: #000; }
.player--vimeo:fullscreen .vp-bar { height: 56px; padding: 0 20px; }
.player--vimeo:fullscreen .vp-cover { bottom: 56px; }

/* Différences : le « ? » suit le dernier mot du libellé, sans agrandir la ligne */
.diff-list li .diff-label .help { display: inline-block; vertical-align: top; height: 1.22em; margin: 0 0 0 .15em; position: static; }
/* taille en em du bouton (police à 0,8 du libellé) : 1,6em ≈ 1,28 ligne, centré sur la hauteur de ligne de 1,22em du libellé */
#evt .diff-list li .diff-label .help-btn { font-size: .8em; width: 1.6em; height: 1.6em; margin-top: -.04em; line-height: 1; vertical-align: top; }
.diff-list li .diff-label .help-text { font-weight: 400; }

/* « Tu préfères » : résultats et pied de fenêtre en fondu, après le glissement des choix */
.just-voted .vote-res { animation: rise .6s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(.32s + var(--i, 0) * 110ms); }
.just-voted .pop-foot .participants, .just-voted .pop-next { animation: fade-soft .5s ease .45s both; }
@keyframes fade-soft { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .just-voted .vote-res, .just-voted .pop-foot .participants, .just-voted .pop-next { animation: none; } }

/* ===== Il était une fois (desktop) : gabarit de la maquette =====
   Carte 1708 × 916 de la maquette (1 cqw = 1 % de sa largeur). Deux calques extraits du .ai :
   dessous (fond clair, bandeaux sombres) et dessus (cercles, soleil, filet étoilé) qui passent sur la photo. */
@media (min-width: 601px) and (orientation: landscape), (min-width: 1101px) {
  .pop.pop--rub-ieuf { container-type: inline-size; width: min(100%, 1120px, calc((100dvh - 120px) * 1708 / 916)); max-width: none; aspect-ratio: 1708 / 916;
    padding: 0; border-radius: 0; background: url("../cards/ieuf-desk-under.svg?v=ffd2beea") 0 0 / 100% 100% no-repeat; }
  .pop.pop--rub-ieuf::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: url("../cards/ieuf-desk-over.svg?v=d317af8d") 0 0 / 100% 100% no-repeat; }
  /* Titre et texte l'un sous l'autre : un titre sur plusieurs lignes repousse le texte au lieu de le chevaucher.
     .media couvre la carte sans créer de contexte d'empilement (la photo reste sous le calque de décor). */
  .pop--rub-ieuf .media { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: flex-start; box-sizing: border-box;
    margin: 0; padding: 10cqw 0 10.7cqw 4.1cqw; pointer-events: none; }
  .pop--rub-ieuf .media > * { pointer-events: auto; }
  .pop--rub-ieuf .media-deco, .pop--rub-ieuf .thumbs, .pop--rub-ieuf .media-text .spark { display: none; }
  .pop--rub-ieuf .pop-title { position: relative; z-index: 3; flex: none; width: 27cqw; font-size: 3.3cqw; line-height: .95; }
  /* L'italique serif a une hauteur de ligne plus grande : on la neutralise pour un interligne régulier */
  .pop--rub-ieuf .pop-title em { line-height: 0; }
  .pop--rub-ieuf .media-text { position: relative; z-index: 3; flex: 0 1 auto; min-height: 0; margin: 2.4cqw 0 0 .2cqw; width: 24.6cqw; overflow: auto; }
  .pop--rub-ieuf .media-text p { font-size: max(13px, 1.32cqw); line-height: 1.18; color: var(--sf-ink); white-space: pre-line; }
  /* Photo : emplacement exact de la maquette (x 805 → 1694, y 237 → 904) */
  .pop--rub-ieuf .media-main { position: absolute; z-index: auto; left: 38.58cqw; top: 6.79cqw; width: 52.05cqw; height: 39.03cqw; margin: 0; }
  .pop--rub-ieuf .media-main .photo { width: 100%; height: 100%; }
  .pop--rub-ieuf .photo img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; border-radius: 0; }
  /* Bandeau du bas : « J'aime ! » lilas sur fond sombre */
  .pop--rub-ieuf .pop-foot { position: absolute; z-index: 3; left: 4.1cqw; top: 45.84cqw; height: 7.73cqw; margin: 0; padding: 0; display: flex; align-items: center; }
  #evt .pop--rub-ieuf .like, #evt .pop--rub-ieuf .like[aria-pressed="true"] { gap: 1.6cqw; padding: 0; background: none; border: 0; box-shadow: none; }
  #evt .pop--rub-ieuf .like em { color: #d9cdf3; font-size: 2.4cqw; }
  #evt .pop--rub-ieuf .like-heart { width: 3.9cqw; height: 3.9cqw; background: #d3b7fc; }
  #evt .pop--rub-ieuf .like-heart svg { stroke: var(--sf-ink); }
  #evt .pop--rub-ieuf .like[aria-pressed="true"] .like-heart svg { fill: var(--sf-ink); }
  /* Croix et logo à leur place dans la maquette */
  .pop--rub-ieuf .pop-close { right: auto; left: 95.55cqw; top: .7cqw; width: max(34px, 3.7cqw); height: max(34px, 3.7cqw); }
  .pop--rub-ieuf .pop-brand img { width: 22.6%; }
}

/* Photo mystère (desktop) : la bulle lilas déborde d'un pixel et demi pour masquer le liseré du fond de la case sur son arrondi */
@media (min-width: 601px) and (orientation: landscape), (min-width: 1101px) {
  .pop--mystere .res-list--letters .is-correct .res-letter,
  .pop--mystere .res-list--letters .is-mine .res-letter,
  .pop--mystere .opts--list .opt b { box-shadow: 0 0 0 1.5px var(--sf-lilac); }
}

/* ===== Chroniques et Entre nous (desktop) : gabarit de la maquette =====
   Carte 1458 × 919 extraite du .ai (1 cqw = 1 % de sa largeur) ; vidéo à l'emplacement exact (x 596 → 1330, y 408 → 821). */
@media (min-width: 601px) and (orientation: landscape), (min-width: 1101px) {
  .pop.pop--rub-chroniques, .pop.pop--rub-entre { container-type: inline-size; width: min(100%, 1120px, calc((100dvh - 120px) * 1458 / 919)); max-width: none;
    aspect-ratio: 1458 / 919; padding: 0; border-radius: 0; background: url("../cards/media-chroniques-desk.svg?v=2788e434") 0 0 / 100% 100% no-repeat; }
  .pop.pop--rub-entre { background-image: url("../cards/media-entre-desk.svg?v=a26d19b4"); }
  :is(.pop--rub-chroniques, .pop--rub-entre) .media { display: block; margin: 0; }
  :is(.pop--rub-chroniques, .pop--rub-entre) :is(.media-deco, .media-text .spark) { display: none; }
  :is(.pop--rub-chroniques, .pop--rub-entre) .pop-title { position: absolute; z-index: 3; left: 2.75cqw; top: 10.4cqw; max-width: 62cqw; font-size: 4.4cqw; line-height: 1.05; }
  /* Filet étoilé : sous la fin du titre (Chroniques), à sa droite (Entre nous) */
  :is(.pop--rub-chroniques, .pop--rub-entre) .pop-title::after { content: ""; position: absolute; width: 19cqw; height: 2.2cqw; pointer-events: none;
    background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path d='M10 0Q11 9 20 10Q11 11 10 20Q9 11 0 10Q9 9 10 0Z' fill='%232a174f'/></svg>") var(--star-x, 0) center / 2.2cqw 2.2cqw no-repeat,
      linear-gradient(90deg, var(--line-a, #2a174f), var(--line-b, rgba(42,23,79,.15))) center / 100% 1px no-repeat; }
  .pop--rub-chroniques .pop-title::after { right: -1.5cqw; top: calc(100% + .6cqw); --star-x: 2.5cqw; --line-a: rgba(42,23,79,.15); --line-b: rgba(42,23,79,.05); }
  .pop--rub-entre .pop-title { width: max-content; max-width: 36cqw; }
  .pop--rub-entre .pop-title::after { left: calc(100% + 1.6cqw); top: 50%; translate: 0 -40%; --star-x: 100%; --line-a: rgba(42,23,79,.1); --line-b: #2a174f; }
  :is(.pop--rub-chroniques, .pop--rub-entre) .media-text { position: absolute; z-index: 3; left: 3.07cqw; top: 21.8cqw; width: 19.5cqw; max-height: 31cqw; overflow: auto; }
  :is(.pop--rub-chroniques, .pop--rub-entre) .media-text p { font-size: max(12px, 1.4cqw); line-height: 1.1; color: var(--sf-ink); white-space: pre-line; }
  :is(.pop--rub-chroniques, .pop--rub-entre) .media-main { position: absolute; z-index: 3; left: 24.14cqw; top: 19.75cqw; width: 50.34cqw; margin: 0; }
  #evt :is(.pop--rub-chroniques, .pop--rub-entre) .player.empty { border: 1px solid #a49cb8; border-radius: 0; background: #fff; }
  #evt :is(.pop--rub-chroniques, .pop--rub-entre) .player.empty small { display: none; }
  #evt :is(.pop--rub-chroniques, .pop--rub-entre) .player.empty .play { width: 5.9cqw; height: 5.9cqw; border: .3cqw solid #e2e0e6; }
  #evt :is(.pop--rub-chroniques, .pop--rub-entre) .player.empty .play::after { left: 38%; top: 50%; translate: 0 -50%; border-width: 1.1cqw; border-left-width: 1.7cqw; border-right-width: 0; border-left-color: #e2e0e6; }
  /* « J'aime ! » en bas à gauche, sans pastille */
  :is(.pop--rub-chroniques, .pop--rub-entre) .pop-foot { position: absolute; z-index: 3; left: 1.9cqw; top: 56.3cqw; height: 5cqw; margin: 0; padding: 0; display: flex; align-items: center; }
  #evt :is(.pop--rub-chroniques, .pop--rub-entre) .like, #evt :is(.pop--rub-chroniques, .pop--rub-entre) .like[aria-pressed="true"] { gap: 1.4cqw; padding: 0; background: none; border: 0; box-shadow: none; }
  #evt :is(.pop--rub-chroniques, .pop--rub-entre) .like em { font-size: 3cqw; color: var(--sf-ink); }
  #evt :is(.pop--rub-chroniques, .pop--rub-entre) .like-heart { width: 5cqw; height: 5cqw; background: var(--sf-ink); }
  #evt :is(.pop--rub-chroniques, .pop--rub-entre) .like-heart svg { stroke: #d3b7fc; }
  #evt :is(.pop--rub-chroniques, .pop--rub-entre) .like[aria-pressed="true"] .like-heart svg { fill: #d3b7fc; }
  :is(.pop--rub-chroniques, .pop--rub-entre) .pop-close { right: auto; left: 97.1cqw; top: -1.9cqw; width: max(36px, 4.4cqw); height: max(36px, 4.4cqw); }
  .pop--rub-chroniques .pop-brand img { width: 35.8%; }
  .pop--rub-entre .pop-brand img { width: 21%; }
}

/* Jeu des différences : pas de compteur d'erreurs affiché ; partie terminée (gagnée ou perdue) : léger voile violet sur les images, sous les cercles */
.diff-score .errors { display: none; }
.stage.is-done::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; border-radius: inherit; background: rgba(140, 82, 245, .26); }
.stage.is-done .zone { z-index: 1; }

/* Fond du calendrier sans coupure : l'image passe sur une couche à part qui se fond dans la page sur les 4 côtés
   (le fondu ne touche plus le calendrier ni la carte « Rendez-vous »). Couleur de page = couleur des bords de l'image. */
.board { -webkit-mask-image: none; mask-image: none; background-size: 0 0; background-repeat: no-repeat; }
.board::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: inherit; background-size: 100% 100%; background-repeat: no-repeat;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 8%, #000 92%, transparent 100%); mask-composite: intersect; }
body[data-view="front"]:has(.fmt-desktop) { background: #260b4a; }
body[data-view="front"]:has(.fmt-mobile) { background: #2b1a47; }

/* Mobile : pourtour du calendrier comme en desktop, trait fin en dégradé (clair en haut à gauche, sombre en bas à droite) */
.fmt-mobile .board-clip::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: inherit; padding: 1px;
  background: linear-gradient(135deg, #e2d2fd 0%, #b394f0 30%, #6a3bc4 65%, #2a1458 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }

/* Carte d'attente : logo Sanofi au-dessus de « Décembre ensemble » */
.phase-logo { display: block; width: auto; height: clamp(22px, 2.6vw, 30px); margin: 0 auto 12px; }

/* Tu préfères : les deux choix en couleur foncée (pas de « bonne » réponse) ;
   le choix du visiteur garde son contour lilas et porte la pastille « Ma réponse » à cheval sur son bord haut */
.vote-opt, .vote-opt.alt, .vote-opt.chosen { background: var(--sf-ink); }
.vote-opt { position: relative; }
#evt .vote-opt .vote-mine { position: absolute; top: 0; right: 8%; transform: translateY(-55%); margin: 0; background: #a47cf3; color: #fff; font-weight: 400;
  white-space: nowrap; line-height: 1.3; box-shadow: 0 0 0 max(2px, .4cqw) rgb(244, 242, 246); pointer-events: none; }

/* Tu préfères, après le vote : le choix du visiteur et sa barre passent en violet clair ; l'autre choix et sa barre restent foncés */
#evt .vote-opt.mine, #evt .vote-opt.chosen { background: var(--sf-violet); }
.vote-res--desk:not(.is-mine) .vote-bar { background: var(--sf-ink); }
.vote-res--desk:not(.is-mine) .vote-bar i { background: #8f80a8; }
.vote-res--desk:not(.is-mine) .vote-num, .vote-res--desk:not(.is-mine) .vote-num small { color: var(--sf-ink); }

/* Cartes d'attente et de fin : pas de nouvelle animation quand le calendrier est redessiné */
.phase.phase--still { animation: none; }

/* ===== Photo mystère : réponses de même hauteur, bulles au ratio d'origine, air autour du texte ; photo jamais rognée ===== */
#evt .pop--mystere .mystery-img { display: flex; justify-content: center; }
#evt .pop--mystere .mystery-img img { width: auto; max-width: 100%; height: auto; max-height: 90cqw; aspect-ratio: auto; object-fit: initial; }
.pop--mystere .res-list--letters .res-label, .pop--mystere .opts--list .opt > span { padding: 1.6cqw 0; }
@media (min-width: 601px) and (orientation: landscape), (min-width: 1101px) {
  #evt .pop--mystere .mystery-img img { max-height: min(42cqw, 52vh); }
  /* Contenu aligné sur la largeur de la question (bandeau du haut) : plus de place pour la photo et les réponses */
  .pop--mystere .mystery { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); column-gap: 3.5%; justify-content: stretch; }
  .pop--mystere .mystery-img { justify-content: flex-start; }
  /* Réponses : texte réduit d'un quart, plus d'air à droite, quatre réponses de même hauteur */
  .pop--mystere .opts.opts--list { grid-auto-rows: 1fr; }
  .pop--mystere .opts--list .opt { font-size: clamp(12px, 1.9cqw, 19px); line-height: 1.2; padding-right: 3.5cqw; }
  .pop--mystere .res-list--letters .res-label { font-size: clamp(11px, 1.4cqw, 15px); }
  .pop--mystere .res-list--letters .is-correct .res-label { font-size: clamp(12px, 1.55cqw, 16px); }
  .pop--mystere .res-list--letters .res-pill { padding-right: 2.6cqw; }
  /* Résultats : barre plus courte pour laisser la place au texte (chaque bandeau prend la hauteur de son texte) */
  .pop--mystere .res-list--letters .res-bar { flex: 0 0 calc(var(--b) * .8); }   /* largeur fixe : la hauteur des lignes se calcule juste */
  .pop--mystere .res-list--letters .res-pct { min-width: 2.9em; }
  /* Résultats : bulle de taille fixe au ratio d'origine, centrée (sa largeur ne dépend pas de la hauteur du texte) */
  #evt .pop--mystere .res-list--letters .res-letter,
  #evt .pop--mystere .res-list--letters .is-correct .res-letter { align-self: center; aspect-ratio: auto; height: calc(var(--b) * 1.28); min-height: 0; width: calc(var(--b) * 1.28 * 1.26); margin-bottom: 0; }
  /* Bulles A à D : toute la hauteur de la réponse, ratio d'origine (largeur = 1,26 × hauteur) */
  .pop--mystere .res-list--letters .res-letter,
  .pop--mystere .res-list--letters .is-correct .res-letter,
  .pop--mystere .opts--list .opt b { align-self: stretch; height: auto; min-height: var(--b); width: auto; aspect-ratio: 1.26; }
  .pop--mystere .res-list--letters .res-label, .pop--mystere .opts--list .opt > span { padding: .8cqw 0; }
}

/* Jeu des différences : « J'abandonne » lisible quel que soit le fond (violet clair, texte blanc) */
#evt #giveUp { background: #9a6cf2; border-color: #9a6cf2; color: #fff; }
#evt #giveUp:hover { background: var(--sf-violet); border-color: var(--sf-violet); }

/* ===== Carrousel (Il était une fois) : photos et vidéos superposées, affichées entières dans leur format d'origine ===== */
#evt .photo { aspect-ratio: 4 / 3; overflow: hidden; border-radius: 0 0 0 60px; }
#evt .pop--rub-ieuf .photo { aspect-ratio: auto; border-radius: 0; }
#evt .photo .slide { position: absolute; inset: 0; background: var(--sf-night); opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility 0s linear .35s; }
#evt .photo .slide.is-on { opacity: 1; visibility: visible; transition: opacity .35s ease; }
#evt .photo .slide > img { display: block; width: 100%; height: 100%; aspect-ratio: auto; object-fit: contain; border-radius: 0; }
#evt .photo .slide > .player { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; margin: 0; padding: 0; border: 0; border-radius: 0; background: var(--sf-night); }
#evt .photo.is-video .photo-caption { bottom: 44px; }   /* légende au-dessus des commandes de la vidéo */
.thumbs .thumb-video { display: block; aspect-ratio: 4 / 3; background: var(--sf-night); position: relative; }
.thumbs .thumb-video::after { content: ""; position: absolute; left: 50%; top: 50%; translate: -35% -50%; border: 7px solid transparent; border-left: 11px solid #fff; border-right: 0; }
@media (max-width: 600px), (max-width: 1100px) and (orientation: portrait) {
  /* Commandes de la vidéo à l'écart de la bulle de gauche du décor */
  #evt .pop--rub-ieuf .photo .vp-bar { padding-left: calc(var(--pw) * .16); padding-right: calc(var(--pw) * .1); }
}
@media (max-width: 600px), (max-width: 1100px) and (orientation: portrait) {
  /* Entre nous, Chroniques, Décembre ensemble : vidéo aux coins arrondis comme sur ordinateur */
  #evt :is(.pop--rub-entre, .pop--rub-chroniques, .pop--rub-decembre) .player { border-radius: 6px; }
}

@media (max-width: 600px), (max-width: 1100px) and (orientation: portrait) {
  /* ===== Il était une fois (mobile) : la carte s'allonge avec son contenu, la photo garde toute la largeur et sa hauteur naturelle.
     Décor en deux parties fixées en haut et en bas (aucune forme déformée), colonne de droite prolongée par sa couleur. ===== */
  .pop.pop--rub-ieuf { aspect-ratio: auto; height: auto; min-height: 0; border-radius: calc(var(--pw) * .166);
    background: linear-gradient(rgb(33, 34, 76), rgb(33, 34, 76)) right 0 top calc(var(--pw) * .6) / 12.7% 100% no-repeat,   /* colonne de droite jusqu'en bas */
      linear-gradient(rgb(33, 34, 76), rgb(33, 34, 76)) left bottom / 100% calc(var(--pw) * .2) no-repeat,   /* fond sombre sous le bandeau : pas de liseré clair dans les coins arrondis */
      var(--sf-card); }
  .pop.pop--rub-ieuf::after { background: url("../cards/media-ieuf-top.svg?v=1") center top / 100% auto no-repeat; }
  .pop.pop--rub-ieuf::before { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: inherit;
    background: url("../cards/media-ieuf-bottom.svg?v=1") center bottom / 100% auto no-repeat; }
  /* Un peu d'air entre la petite étoile et le texte */
  .pop--rub-ieuf .spark { margin-bottom: calc(var(--pw) * .032); }
  /* Texte entier, photo collée au bandeau du bas : l'espace éventuel se place entre les deux */
  .pop--rub-ieuf .media-text { flex: none; overflow: visible; margin-bottom: calc(var(--pw) * .11); }
  /* Zone de la photo = fenêtre visible entre la bande sombre de gauche (x 299) et la colonne de droite (x 818) du décor */
  .pop--rub-ieuf .media-main { flex: none; min-height: 0; margin-top: auto; margin-left: calc(var(--pw) * -.094); width: calc(var(--pw) * .873); }
  .pop--rub-ieuf .media-main::before { left: 0; top: calc(var(--pw) * -.164);   /* bulle remontée : elle masque le coin haut gauche de la photo */
    background: url("../cards/media-ieuf-left.svg?v=2") left top / 100% auto no-repeat,
      linear-gradient(rgb(33, 34, 76), rgb(33, 34, 76)) left 0 top calc(var(--pw) * .19) / 30.8% 100% no-repeat; }   /* bande sombre (alignée sur le texte) prolongée jusqu'en bas de la photo */
  /* Flèches à cheval sur les bords de la photo : moitié sur le décor, moitié sur la photo */
  #evt .pop--rub-ieuf .photo { overflow: visible; }
  .pop--rub-ieuf .photo-nav.prev { left: calc(var(--pw) * .094 - 15px); }   /* sur le bord gauche de la photo, aligné sur le texte */
  .pop--rub-ieuf .photo-nav.next { right: -15px; }
  .pop--rub-ieuf .photo-caption { padding: 5px calc(var(--pw) * .04) 5px calc(var(--pw) * .18); font-size: 11.5px; line-height: 1.3; }   /* texte à l'écart de la bulle de gauche */
  /* Contenu « Vidéo » dans cette rubrique : lecteur sur toute la largeur de la zone, au format 16:9 */
  #evt .pop--rub-ieuf .media-main > .player { flex: none; width: 100%; height: auto; aspect-ratio: 16 / 9; }
  #evt .pop--rub-ieuf .photo .vp-bar, #evt .pop--rub-ieuf .media-main > .player .vp-bar { padding-left: calc(var(--pw) * .12); padding-right: 12px; }
  #evt .pop--rub-ieuf .media-main .photo { flex: 1 1 auto; height: auto; display: block; }
  #evt .pop--rub-ieuf .photo .slide.is-on { position: relative; }
  #evt .pop--rub-ieuf .photo .slide > img { height: auto; }
  #evt .pop--rub-ieuf .photo .slide > .player { position: relative; inset: auto; height: auto; aspect-ratio: 16 / 9; }
}
@media (max-width: 600px), (max-width: 1100px) and (orientation: portrait) {
  /* Jeu des différences : le bandeau de fin ne remonte plus sur la seconde image */
  .pop--diff .diff-imgs + .banner { margin-top: 4cqw; }
}
@media (max-width: 600px), (max-width: 1100px) and (orientation: portrait) {
  /* ===== Photo mystère (mobile) : question, photo et réponses plus larges ===== */
  .pop--mystere .q-pill { width: 84cqw; }
  .pop--mystere .mystery-img { width: 80cqw; }
  .pop--mystere .mystery > div:has(.opts--list) { width: 82cqw; }
  /* Réponses : un peu plus d'air autour du texte ; bulle A à D au ratio d'origine (largeur = 1,26 × hauteur), lettre centrée */
  .pop--mystere .opts.opts--list { grid-auto-rows: 1fr; }   /* quatre réponses de même hauteur */
  .pop--mystere .opts--list .opt { padding-right: 5cqw; }
  .pop--mystere .opts--list .opt > span { padding: 2.6cqw 0; }
  .pop--mystere .opts--list .opt b { align-self: stretch; width: auto; height: auto; min-height: max(46px, 13cqw); aspect-ratio: 1.1;   /* bulle un peu plus étroite */
    display: grid; place-items: center; padding: 0 .4em 0 0; box-sizing: border-box; font-size: max(17px, 5.6cqw); }   /* lettre centrée dans la partie lilas visible (la courbe mord à droite) */   /* lettre un peu plus grande */
}

/* ===== Carrousel : fond flouté (photo ou vignette de la vidéo) quand le média ne remplit pas le cadre ;
   média à son format exact au centre ; voile violet très léger sur le fond flouté ===== */
#evt .photo .slide { display: flex; align-items: center; justify-content: center; overflow: hidden; container-type: size; }
#evt .photo .slide-bg { position: absolute; inset: -40px; background: center / cover no-repeat; filter: blur(24px) saturate(1.15) brightness(.8); }
#evt .photo .slide-bg::after { content: ""; position: absolute; inset: 0; background: rgba(122, 38, 230, .14); }
#evt .photo .slide > img { position: relative; width: auto; height: auto; max-width: 100%; max-height: 100%; }
#evt .photo .slide > .player { position: relative; inset: auto; width: min(100cqw, 100cqh * var(--r, 1.7778)); height: auto; aspect-ratio: var(--r, 1.7778);
  background: #000; }
#evt .photo.is-video .photo-caption { bottom: 0; }   /* vidéo centrée : la légende reste dans la bande floutée du bas */
@media (max-width: 600px), (max-width: 1100px) and (orientation: portrait) {
  #evt .pop--rub-ieuf .photo.is-video .photo-caption { bottom: 44px; }
  /* Mobile : le média prend toute la largeur et sa hauteur naturelle (pas de bandes, donc pas de fond flouté) */
  #evt .pop--rub-ieuf .photo .slide { display: block; overflow: visible; container-type: normal; }
  #evt .pop--rub-ieuf .photo .slide-bg { display: none; }
  #evt .pop--rub-ieuf .photo .slide > img { width: 100%; max-height: none; }
  #evt .pop--rub-ieuf .photo .slide > .player { width: 100%; aspect-ratio: var(--r, 1.7778); }
}

/* ===== « Tu préfères » avec sons : bouton de lecture posé au début de la barre de résultat (plus haute) ;
   le remplissage démarre après le bouton, pour qu'un petit pourcentage reste visible ===== */
.has-snd .vote-bar, .has-snd .vote-res--pill .res-bar { --bh: clamp(38px, 4.8cqw, 48px); position: relative; overflow: visible; height: var(--bh); padding-left: var(--bh); border-radius: 999px; }
.pop--vote .has-snd .vote-res--pill.vote-res--pill .res-bar { --bh: max(34px, 9.4cqw); height: var(--bh); }
.has-snd .vote-res--pill .res-bar i { border-radius: 999px; }
.snd-play { position: absolute; left: 3px; top: 3px; width: calc(var(--bh) - 6px); height: calc(var(--bh) - 6px); padding: 0; border: 0; border-radius: 50%; color: var(--sf-violet);
  background: radial-gradient(closest-side, #fff calc(100% - 4px), transparent calc(100% - 3.5px)), conic-gradient(#a47cf3 var(--p, 0%), #fff 0); }
.snd-play::before { content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-38%, -50%); border: 7px solid transparent; border-left: 11px solid currentColor; border-right: 0; }
.snd-play.is-playing::before { transform: translate(-50%, -50%); width: 11px; height: 13px; border: 0; background: linear-gradient(90deg, currentColor 36%, transparent 36% 64%, currentColor 64%); }
.snd-play::after { content: ""; position: absolute; inset: -5px; }
@media (hover: hover) { .snd-play:hover { color: var(--sf-ink); } }

/* ===== Photo mystère : bouton image et fenêtre photo + texte ===== */
#evt .help-btn--img { display: inline-grid; place-items: center; }
#evt .pop--mystere .res-help .help-btn--img { width: max(34px, 3.7cqw); height: max(34px, 3.7cqw); }
.help-btn--img svg { display: block; width: 70%; height: 70%; }
#expl { border: 0; padding: 26px 22px; width: fit-content; max-width: min(860px, 100%); max-height: 100dvh; background: transparent; color: var(--sf-ink); overflow: auto; }
#expl::backdrop { background: rgba(26,10,52,.6); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
#expl .pop-close { right: 4px; top: 6px; width: 44px; height: 44px; }
.expl-card { overflow: hidden; border-radius: 0 28px 28px 28px; background: #fff; }
.expl-card img { display: block; width: auto; max-width: 100%; height: auto; max-height: 64dvh; margin: 0 auto; }
.expl-text { padding: 18px 24px 22px; width: 0; min-width: 100%; }
.expl-text:has(p[hidden]) { display: none; }
.expl-text b { display: block; margin-bottom: 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--sf-violet); }
.expl-text p { margin: 0; font-size: 16px; line-height: 1.45; white-space: pre-line; overflow-wrap: anywhere; }
#expl[open] .expl-card { animation: pop-in .35s cubic-bezier(.2,.8,.2,1); }
#expl.closing .expl-card, #expl.closing .pop-close { animation: pop-out .22s ease-in forwards; }
#expl.closing::backdrop { animation: fade-out .22s ease-in forwards; }
@media (prefers-reduced-motion: reduce) { #expl[open] .expl-card { animation: none; } }

/* ===== Jeu des différences : texte de fin de jeu, sous les photos ===== */
.diff-outro { margin: 2.2cqw auto 1.6cqw; padding: 16px 22px; border-radius: 0 20px 20px 20px; background: #fff; color: var(--sf-ink); font-size: clamp(14px, 1.6cqw, 17px); line-height: 1.45; white-space: pre-line; overflow-wrap: anywhere; box-shadow: 0 2px 10px rgba(42,23,79,.09); }

/* --- Connexion des collaborateurs (email, code PIN) --- */
/* Fond : calque fixe plus grand que l'écran (il passe sous la barre d'état et la barre d'adresse sur mobile).
   Safari iOS teinte ces barres d'une couleur unie (la couleur de fond, #26133f) : sur écran tactile, les bords
   haut et bas du dégradé se fondent dans cette couleur pour éviter toute cassure. Pas de fondu sur ordinateur. */
html:has(body[data-view="auth"]), html:has(body.halo) { background: #26133f; }
body.halo[data-view] { background: transparent; }   /* calendrier : halo de la connexion gardé sous « Code PIN validé » */
body[data-view="auth"] { background: transparent; color: var(--sf-ink); }
body[data-view="auth"]::before, body.halo::before { content: ""; position: fixed; z-index: -1; left: 0; right: 0; top: -20vh; bottom: -20vh; pointer-events: none;
  background: radial-gradient(circle at 15% 93%, rgba(122, 38, 230, .5) 0, transparent 45%), radial-gradient(circle at 105% 7%, rgba(90, 43, 176, .5) 0, transparent 40%), #26133f; }
/* Téléphones et tablettes : fondu progressif vers la teinte unie des barres du navigateur.
   Calqué exactement sur l'écran (inset: 0) pour que le tout premier et le tout dernier pixel soient de cette teinte. */
@media (pointer: coarse) {
  body[data-view="auth"]::before, body.halo::before { background: radial-gradient(circle at 15% 85%, rgba(122, 38, 230, .5) 0, transparent 38%), radial-gradient(circle at 105% 18%, rgba(90, 43, 176, .5) 0, transparent 34%), #26133f; }
  body[data-view="auth"]::after, body.halo::after { content: ""; position: fixed; z-index: -1; inset: 0; pointer-events: none;
    background: linear-gradient(to bottom, #26133f 0, rgba(38,19,63,.92) 4%, rgba(38,19,63,.72) 9%, rgba(38,19,63,.45) 15%, rgba(38,19,63,.2) 21%, rgba(38,19,63,.06) 27%, rgba(38,19,63,0) 32%,
      rgba(38,19,63,0) 68%, rgba(38,19,63,.06) 73%, rgba(38,19,63,.2) 79%, rgba(38,19,63,.45) 85%, rgba(38,19,63,.72) 91%, rgba(38,19,63,.92) 96%, #26133f 100%); }
}
.auth { position: relative; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px 16px 0; }
@media (max-width: 600px) { .auth { padding-left: 24px; padding-right: 24px; } }
.auth-card { --pad: clamp(28px, 6vw, 44px); width: min(460px, 100%); text-align: center; background: var(--sf-card); border-radius: 24px; padding: var(--pad); box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }
.auth-logo { display: block; width: auto; height: 45px; margin: 0 auto 15px; }
.auth-kicker { margin: 0 0 8px; font-size: 19.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--sf-violet); }
.auth-title { margin: 28px 0 17px; font-size: clamp(24px, 5vw, 30px); font-weight: 700; line-height: 1.15; }
.auth-title em { font-family: 'Sanofi Serif', Georgia, serif; font-weight: 400; color: var(--sf-violet); }
@media (max-width: 600px) { .auth-title .title-end { display: block; } }   /* mot en italique de fin de titre seul sur sa ligne */
.auth-title:empty { display: none; }
/* Sans titre : espace entre « Décembre ensemble » et le texte un peu plus court que celui du haut de la carte au logo */
.auth-title:empty + .auth-text { margin-top: calc(var(--pad) - 16px); }
.auth-text { margin: 12px 0 0; font-size: 16px; line-height: 1.45; color: var(--sf-muted); overflow-wrap: anywhere; }
.auth-text b { color: var(--sf-ink); font-weight: 700; }
.auth-text small { display: block; margin-top: 12px; font-size: 14px; }
.auth-text small.auth-ok { color: var(--good); font-weight: 700; }
.auth-fields { display: grid; gap: 14px; margin-top: 22px; }
.auth-fields:empty { display: none; }
.auth[data-mode="email"] .auth-fields { margin-top: 28px; }   /* un peu d'air sous la phrase d'accueil (ordinateur) */
@media (max-width: 600px) { .auth[data-mode="email"] .auth-fields { margin-top: 22px; } }
.auth-field { display: grid; gap: 6px; text-align: center; font-size: 14px; font-weight: 700; color: var(--sf-ink); }
.auth-field input { width: 100%; padding: 13px 16px; border: 2px solid #ddd0f0; border-radius: 14px; background: #fff; font-size: 17px; color: var(--sf-ink); text-align: center; }
.auth-field input:focus { outline: none; border-color: var(--sf-violet); box-shadow: 0 0 0 4px rgba(122, 38, 230, .15); }
.auth-field input::placeholder { color: #b5a8ca; }
/* Pas de couleur imposée par le navigateur : fond bleu ou jaune du remplissage automatique (Chrome, Safari, Edge),
   contour bleu de focus, surbrillance au toucher sur mobile */
.auth-card input, .auth-card button { -webkit-tap-highlight-color: transparent; }
.auth-card input:focus, .auth-card input:focus-visible { outline: none; }
/* (sélecteurs séparés : un navigateur qui ignore l'un des deux n'écarte pas l'autre) */
.auth-field input:-webkit-autofill { -webkit-box-shadow: 0 0 0 1000px #fff inset; box-shadow: 0 0 0 1000px #fff inset; -webkit-text-fill-color: var(--sf-ink); caret-color: var(--sf-violet); transition: background-color 600000s, color 600000s; }
.auth-field input:autofill { box-shadow: 0 0 0 1000px #fff inset; -webkit-text-fill-color: var(--sf-ink); caret-color: var(--sf-violet); transition: background-color 600000s, color 600000s; }
.auth-field input:-webkit-autofill:focus { -webkit-box-shadow: 0 0 0 1000px #fff inset, 0 0 0 4px rgba(122, 38, 230, .15); box-shadow: 0 0 0 1000px #fff inset, 0 0 0 4px rgba(122, 38, 230, .15); }
.auth-field input:autofill:focus { box-shadow: 0 0 0 1000px #fff inset, 0 0 0 4px rgba(122, 38, 230, .15); }
.auth-pinset { margin: 0; padding: 0; border: 0; min-width: 0; text-align: center; }
.auth-pinset legend { width: 100%; text-align: center; }
.auth-pinset legend { padding: 0; margin-bottom: 6px; }
.auth-digits { display: flex; justify-content: center; gap: 12px; }
.auth-field .auth-digit { width: 58px; height: 64px; padding: 0; flex: 0 0 auto; font-size: 30px; font-weight: 700; caret-color: var(--sf-violet); }
@media (max-width: 360px) { .auth-digits { gap: 8px; } .auth-field .auth-digit { width: 50px; height: 58px; } }
.auth-error { margin: 16px 0 0; padding: 10px 14px; border: 1px solid #dccbf8; border-radius: 12px; background: #efe6fc; color: #5a1ca8; font-size: 14px; font-weight: 700; line-height: 1.4; }   /* erreurs en violet, pas en rouge */
.auth-submit { width: 100%; margin-top: 22px; padding: 14px 22px; border: 0; border-radius: 999px; background: var(--sf-violet); color: #fff; font-size: 16px; font-weight: 700; transition: background .15s, opacity .15s; }
.auth-submit:hover { background: #6316c8; }
.auth-card.busy .auth-submit, .auth-card.busy .auth-link { opacity: .55; pointer-events: none; }
.auth-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin-top: 16px; }
.auth-links:empty { display: none; }
.auth-link { padding: 4px 2px; border: 0; background: none; color: var(--sf-violet); font-size: 14px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.auth .board-legal { margin: 24px 16px; }
.board-logout { display: block; margin: -18px auto 30px; padding: 4px 8px; border: 0; background: none; font-size: 12px; color: rgba(255, 255, 255, .5); text-decoration: underline; text-underline-offset: 3px; }
.board-logout:hover { color: rgba(255, 255, 255, .8); }

/* Confirmation du code PIN (affichée 3 s sur le calendrier après l'inscription) */
#pinOk { border: 0; padding: 26px 16px; width: min(460px, 100%); max-width: 100%; background: transparent; color: var(--sf-ink); overflow: visible; }
#pinOk::backdrop { background: rgba(26,10,52,.6); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.pinok-card { position: relative; overflow: hidden; text-align: center; background: var(--sf-card); border-radius: 24px; padding: 36px 28px 32px; box-shadow: 0 30px 80px rgba(0,0,0,.45); }
#pinOk .pop-close { right: 10px; top: 10px; width: 40px; height: 40px; }
#pinOk .pop-close::before, #pinOk .pop-close::after { width: 18px; height: 3px; }
.pinok-check { display: inline-grid; place-items: center; width: 64px; height: 64px; margin-bottom: 14px; border-radius: 50%; background: var(--sf-violet); }
.pinok-check svg { width: 34px; height: 34px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 22; stroke-dashoffset: 22; animation: pinok-draw .45s .15s ease-out forwards; }
.pinok-title { margin: 0; font-size: clamp(24px, 5vw, 30px); font-weight: 700; line-height: 1.15; }
.pinok-title em { font-family: 'Sanofi Serif', Georgia, serif; font-weight: 400; color: var(--sf-violet); }
.pinok-text { margin: 12px 0 0; font-size: 16px; line-height: 1.45; color: var(--sf-muted); }
/* Décompte des 3 secondes : fine barre qui se vide en bas de la carte */
.pinok-timer { position: absolute; left: 0; bottom: 0; height: 4px; width: 100%; background: var(--sf-violet); transform-origin: left; animation: pinok-timer 3s linear forwards; }
#pinOk[open] .pinok-card { animation: pop-in .35s cubic-bezier(.2,.8,.2,1); }
#pinOk.closing .pinok-card { animation: pop-out .22s ease-in forwards; }
#pinOk.closing::backdrop { animation: fade-out .22s ease-in forwards; }
@keyframes pinok-draw { to { stroke-dashoffset: 0; } }
@keyframes pinok-timer { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@media (prefers-reduced-motion: reduce) { #pinOk[open] .pinok-card, .pinok-check svg { animation: none; stroke-dashoffset: 0; } }

/* Passage de la connexion au calendrier */
.auth.leaving .auth-card { animation: auth-leave .7s cubic-bezier(.55,0,.75,.2) forwards; pointer-events: none; }
.auth.leaving .board-legal { transition: opacity .4s; opacity: 0; }
.auth.leaving .auth-submit { background: var(--sf-violet); }
.auth-go { display: inline-block; animation: auth-go .35s cubic-bezier(.2,.8,.2,1); }
@keyframes auth-go { from { opacity: 0; transform: translateY(6px); } }
@keyframes auth-leave {
  0% { transform: none; }
  30% { transform: scale(1.025); opacity: 1; filter: blur(0); }
  100% { transform: scale(.9) translateY(-18px); opacity: 0; filter: blur(8px); }
}
#app.held { opacity: 0; }
#app.enter .board { animation: board-enter 1s cubic-bezier(.2,.8,.2,1) both; }
#app.enter .board-legal, #app.enter .board-logout { animation: fade-in .6s .5s ease-out both; }
body[data-view="auth"]::before, body[data-view="auth"]::after, body.halo::before, body.halo::after { transition: opacity .7s ease-in; }
body[data-view="auth"].leaving::before, body[data-view="auth"].leaving::after, body.halo.leaving::before, body.halo.leaving::after { opacity: 0; }
body.halo #pinOk::backdrop { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
@keyframes board-enter { from { opacity: 0; transform: scale(.94); filter: blur(10px); } to { opacity: 1; transform: none; filter: none; } }
