:root{--bg:#f4f4f6;--card:#fff;--ink:#111;--muted:#6b6b73;--line:#e5e5ea;--red:#ff375f;--green:#28c76f;--blue:#1677ff;--gold:#ffb020}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{margin:0;background:var(--bg);color:var(--ink);font-family:-apple-system,BlinkMacSystemFont,"SF Pro Display","Segoe UI",sans-serif;overflow:hidden;width:100%;height:100%;height:100dvh}
header{position:fixed;left:0;right:0;top:0;height:104px;z-index:100;background:rgba(244,244,246,.96);backdrop-filter:blur(16px);padding:12px 16px 8px;border-bottom:1px solid var(--line);box-sizing:border-box}
.top{display:flex;justify-content:space-between;align-items:center;gap:12px}
.brand{font-weight:800;font-size:20px;letter-spacing:-.5px}
.progress{font-size:12px;color:var(--muted);font-weight:700}
.tabs{position:relative;display:grid;grid-template-columns:1fr 1fr;gap:0;margin-top:10px;padding:4px;border-radius:999px;background:#e5e5ea;z-index:101;overflow:hidden;box-shadow:inset 0 1px 2px rgba(0,0,0,.05)}
.tab-indicator{position:absolute;top:4px;bottom:4px;left:4px;width:calc(50% - 4px);border-radius:999px;background:#111;box-shadow:0 2px 7px rgba(0,0,0,.16);transition:transform .42s cubic-bezier(.22,.8,.22,1);pointer-events:none}
.tabs.stats-active .tab-indicator{transform:translateX(100%)}
.tab{position:relative;z-index:2;border:0;background:transparent;border-radius:999px;padding:9px 12px;color:#666;font-weight:750;cursor:pointer;touch-action:manipulation;transition:color .25s ease}
.tab.active{color:#fff}

.top-right{display:flex;align-items:center;gap:9px;position:relative;z-index:300}.mode-switch{position:relative;z-index:301;display:flex;align-items:center;gap:3px;padding:3px;border-radius:12px;background:#e7e7eb}.mode-btn{position:relative;z-index:302;width:31px;height:31px;border:0;border-radius:9px;background:transparent;color:#777;font-size:18px;line-height:1;cursor:pointer;transition:background .2s,color .2s,transform .2s}.mode-btn.active{background:#111;color:#fff;box-shadow:0 2px 7px rgba(0,0,0,.14)}.mode-btn:hover{transform:translateY(-1px)}.mode-btn::after{content:attr(data-tip);position:absolute;top:38px;right:0;white-space:nowrap;padding:6px 8px;border-radius:8px;background:#111;color:#fff;font-size:11px;font-weight:700;opacity:0;pointer-events:none;transform:translateY(-3px);transition:opacity .16s,transform .16s;z-index:10000}.mode-btn:hover::after,.mode-btn:focus-visible::after{opacity:1;transform:translateY(0)}
main{position:fixed;inset:104px 0 0;max-width:1180px;margin:auto;padding:10px 12px 8px;overflow:visible;
  /* Les panneaux qui défilent débordent de <main> jusqu’aux bords de la fenêtre : leur barre de défilement
     se place à droite de l’écran, comme sur une page normale, et non au bord du contenu (1180 px au plus). */
  --gap-out:calc((100vw - 100%) / 2);--bleed:calc((100% - 100vw) / 2)}
#play,#stats{position:absolute;inset:10px 12px 8px;min-height:0}
#play{display:flex;flex-direction:column;opacity:1;transform:translateX(0) scale(1);transition:opacity .28s ease,transform .28s cubic-bezier(.2,.8,.2,1);z-index:2}
#stats{display:block;opacity:0;transform:translateX(28px) scale(.985);pointer-events:none;transition:opacity .28s ease,transform .28s cubic-bezier(.2,.8,.2,1);z-index:1}
#play.panel-out{opacity:0;transform:translateX(-28px) scale(.985);pointer-events:none}
#stats.panel-in{opacity:1;transform:translateX(0) scale(1);pointer-events:auto;z-index:3}
.deck{position:relative;flex:1;min-height:0;height:0;width:min(100%,560px);margin:0 auto;overflow:visible}
.card{position:absolute;inset:0;background:var(--card);border-radius:28px;box-shadow:0 12px 35px rgba(0,0,0,.10);padding:24px 22px 18px;display:flex;flex-direction:column;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;transition:transform .16s ease-out,opacity .16s ease-out;z-index:2}
.card,.card *{user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
.card{cursor:grab}
.card:active{cursor:grabbing}
.reset,.tab,.question,.close,.info-handle,.action{cursor:pointer}
.action:hover{cursor:pointer}
.card.behind{transform:scale(.96) translateY(12px);opacity:.55}
.kicker{font-size:12px;color:var(--muted);font-weight:800;text-transform:uppercase;letter-spacing:.08em}
.card h1{font-size:30px;line-height:1.05;letter-spacing:-1.1px;margin:14px 0 18px}
.statement{font-size:21px;line-height:1.25;font-weight:650;margin-bottom:18px}
.question{margin-left:auto;border:0;background:#ececf1;width:30px;height:30px;border-radius:50%;font-weight:800;color:#555;flex:0 0 auto}
.qrow{display:flex;align-items:center;justify-content:space-between;gap:10px}
.swipehint{margin-top:auto;text-align:center;color:#aaa;font-size:12px}
.actions{display:flex;justify-content:center;align-items:center;gap:18px;padding:8px 0 4px;flex:0 0 70px;position:relative;z-index:10}
.vote-actions{display:flex;justify-content:center;align-items:center;gap:18px}
.action{width:62px;height:62px;border-radius:50%;border:0;background:#fff;box-shadow:0 6px 20px rgba(0,0,0,.10);font-size:26px;font-weight:700}
.undo-action{position:absolute;left:0;width:50px;height:50px;border-radius:50%;border:0;background:#fff;color:#ffad12;box-shadow:0 7px 20px rgba(0,0,0,.10);font-size:32px;line-height:1;font-weight:500;display:flex;align-items:center;justify-content:center;padding:0;margin:0;cursor:pointer;transition:transform .15s ease,opacity .15s ease,background .15s ease,box-shadow .15s ease}
.undo-action:hover{transform:scale(1.08);background:#fff8e8;box-shadow:0 9px 24px rgba(0,0,0,.12)}
.undo-action:disabled{opacity:.25;cursor:default;transform:none;box-shadow:none}
.action{display:flex;align-items:center;justify-content:center;padding:0;margin:0;line-height:1;position:relative;overflow:hidden}







.card.returning{animation:cardReturn .48s cubic-bezier(.2,.8,.2,1) both}
@keyframes cardReturn{
  from{transform:translate3d(-105%,0,0) rotate(-8deg);opacity:.15}
  65%{transform:translate3d(4%,0,0) rotate(.7deg);opacity:1}
  to{transform:translate3d(0,0,0) rotate(0deg);opacity:1}
}
.no{color:var(--red)}.yes{color:var(--green)}.neutral{color:#555;font-size:18px}
.info{position:fixed;z-index:1000;inset:auto 12px 12px 12px;max-width:620px;margin:auto;background:rgba(24,24,28,.97);color:white;border:1px solid rgba(255,255,255,.10);border-radius:28px;padding:14px 20px 20px;box-shadow:0 24px 70px rgba(0,0,0,.34);display:none;max-height:74svh;overflow:auto;overscroll-behavior:contain;transform:translate3d(0,0,0);will-change:transform,opacity}
.info-handle{display:flex;align-items:center;justify-content:center;width:100%;height:22px;padding:0;margin:-2px 0 8px;border:0;background:transparent;cursor:grab;touch-action:none}
.info-handle span{display:block;width:42px;height:4px;border-radius:99px;background:rgba(255,255,255,.28);transition:width .18s ease,background .18s ease,transform .18s ease}
.info-handle:hover span{width:50px;background:rgba(255,255,255,.45)}
.info-handle:active{cursor:grabbing}
.info-handle:active span{transform:scaleX(.88)}
.info.collapsed{max-height:112px;overflow:hidden}
.info.collapsed .info-handle span{width:50px;background:rgba(255,255,255,.48)}
.info.collapsed h3,.info.collapsed p,.info.collapsed .source{display:none}
.info.collapsed h2{margin-bottom:0}
.info.open{display:block}
.info.info-peek{z-index:1400}
.info.info-peek.closing{z-index:1400}
.info h2{margin:0 38px 10px 0;font-size:22px;line-height:1.15;letter-spacing:-.4px}
.info h3{font-size:10px;text-transform:uppercase;letter-spacing:.12em;color:#9d9da6;margin:18px 0 7px;font-weight:800}
.info p{font-size:14px;line-height:1.52;margin:0;color:#f2f2f5}
.info a{color:#9ec7ff}
.close{position:absolute;right:14px;top:14px;border:0;background:rgba(255,255,255,.10);color:white;border-radius:50%;width:34px;height:34px;font-size:19px;line-height:1;cursor:pointer;transition:background .18s ease,transform .18s ease}.close:hover{background:rgba(255,255,255,.17);transform:scale(1.05)}
#stats{display:flex;flex-direction:column;gap:14px;overflow-y:auto;overflow-x:hidden;left:var(--bleed);right:var(--bleed);padding:10px calc(var(--gap-out) + 12px) 24px;-webkit-overflow-scrolling:touch}
.statbox{background:white;border-radius:22px;padding:20px;margin:0;box-shadow:0 8px 24px rgba(0,0,0,.06)}
#stats{gap:14px;flex-direction:column}
.statbox h2{margin:0 0 6px;font-size:21px}
.score{font-size:42px;font-weight:850;letter-spacing:-2px}
.bar{height:10px;background:#e8e8ed;border-radius:99px;overflow:hidden;margin:10px 0}
.fill{height:100%;border-radius:99px;background:#111}
.note{color:var(--muted);font-size:13px;line-height:1.4}
.ranked{display:flex;align-items:center;gap:16px}.rank{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:#111;color:#fff;font-weight:800;flex:0 0 auto}.candidate-avatar{width:58px;height:58px;flex:0 0 58px;border-radius:50%;object-fit:cover;object-position:center;box-shadow:0 3px 12px rgba(0,0,0,.12);background:#e8e8ed}.statbox.ranked .candidate-avatar,.statbox.muted-stat .candidate-avatar{margin-left:2px}.stat-main{flex:1}.muted-stat{opacity:.62}.warning{background:#fff4d6;border-radius:18px;padding:14px;font-size:13px;line-height:1.4}
.source{font-size:11px;color:#777;margin-top:8px}
.reset{border:0;border-radius:14px;padding:12px 15px;background:#111;color:#fff;font-weight:700}
.hidden{display:none}

/* Interaction polish */
.question{transition:transform .16s cubic-bezier(.2,.9,.2,1),background .16s ease}
.question.pop{animation:questionPop .42s cubic-bezier(.2,.9,.2,1)}
@keyframes questionPop{
  0%{transform:scale(1) rotate(0)}
  35%{transform:scale(1.28) rotate(-7deg)}
  65%{transform:scale(.92) rotate(4deg)}
  100%{transform:scale(1) rotate(0)}
}
.info.open{display:block;animation:infoIn .34s cubic-bezier(.16,1,.3,1)}
.info.closing{display:block;animation:infoOut .27s cubic-bezier(.4,0,1,1) forwards}
.info.dragging{transition:none!important}
@keyframes infoIn{
  from{opacity:0;transform:translateY(28px) scale(.965)}
  to{opacity:1;transform:translateY(0) scale(1)}
}
@keyframes infoOut{
  from{opacity:1;transform:translateY(0) scale(1)}
  to{opacity:0;transform:translateY(20px) scale(.97)}
}
.vote-flash{position:fixed;inset:0;z-index:900;pointer-events:none;opacity:0}
.vote-flash.show{animation:edgeFlash .48s ease-out}
.vote-flash.yes{box-shadow:inset 0 0 0 0 rgba(40,199,111,0)}
.vote-flash.no{box-shadow:inset 0 0 0 0 rgba(255,55,95,0)}
.vote-flash.neutral{box-shadow:inset 0 0 0 0 rgba(80,80,90,0)}
@keyframes edgeFlash{
  0%{opacity:0}
  18%{opacity:1}
  45%{opacity:1}
  100%{opacity:0}
}
.vote-flash.yes{animation-name:edgeYes}
.vote-flash.no{animation-name:edgeNo}
.vote-flash.neutral{animation-name:edgeNeutral}
@keyframes edgeYes{
  0%{opacity:0;box-shadow:inset 0 0 0 0 rgba(40,199,111,0)}
  25%{opacity:1;box-shadow:inset 0 0 0 12px rgba(40,199,111,.42),inset 0 0 90px rgba(40,199,111,.14)}
  100%{opacity:0;box-shadow:inset 0 0 0 28px rgba(40,199,111,0),inset 0 0 130px rgba(40,199,111,0)}
}
@keyframes edgeNo{
  0%{opacity:0;box-shadow:inset 0 0 0 0 rgba(255,55,95,0)}
  25%{opacity:1;box-shadow:inset 0 0 0 12px rgba(255,55,95,.42),inset 0 0 90px rgba(255,55,95,.14)}
  100%{opacity:0;box-shadow:inset 0 0 0 28px rgba(255,55,95,0),inset 0 0 130px rgba(255,55,95,0)}
}
@keyframes edgeNeutral{
  0%{opacity:0;box-shadow:inset 0 0 0 0 rgba(90,90,100,0)}
  25%{opacity:1;box-shadow:inset 0 0 0 10px rgba(90,90,100,.28),inset 0 0 80px rgba(90,90,100,.10)}
  100%{opacity:0;box-shadow:inset 0 0 0 26px rgba(90,90,100,0),inset 0 0 120px rgba(90,90,100,0)}
}
.card.vote-yes,.card.vote-no,.card.vote-neutral{will-change:transform,opacity}
@keyframes cardYes{
  0%{transform:translate3d(0,0,0) rotate(0) scale(1);opacity:1}
  12%{transform:translate3d(14px,0,0) rotate(2deg) scale(1.002)}
  100%{transform:translate3d(120vw,0,0) rotate(18deg) scale(.98);opacity:0}
}
@keyframes cardNo{
  0%{transform:translate3d(0,0,0) rotate(0) scale(1);opacity:1}
  12%{transform:translate3d(-14px,0,0) rotate(-2deg) scale(1.002)}
  100%{transform:translate3d(-120vw,0,0) rotate(-18deg) scale(.98);opacity:0}
}
@keyframes cardNeutral{
  0%{transform:translate3d(0,0,0) rotate(0) scale(1);opacity:1}
  12%{transform:translate3d(0,-12px,0) rotate(0) scale(1.005)}
  100%{transform:translate3d(0,-120vh,0) rotate(0) scale(.94);opacity:0}
}

/* Responsive deck: compact card on desktop, edge-to-edge card on small phones. */
@media (min-width: 700px) and (max-width: 1100px){
  main{padding-left:20px;padding-right:20px}
  #play{position:relative;inset:auto;height:100%;min-height:0}
  .deck{
    width:min(100%,760px);
    height:calc(100% - 142px);
    flex:0 0 calc(100% - 142px);
  }
  .card{padding:28px 28px 22px}
  .card h1{font-size:32px}
  .statement{font-size:22px}
  .actions{
    position:absolute;
    left:0;
    right:0;
    bottom:36px;
    height:78px;
    flex:0 0 78px;
    gap:24px;
    padding:0;
  }
  .vote-actions{gap:24px}
  .action{width:74px;height:74px}
  .undo-action{left:8px;width:52px;height:52px}
  #play>.note{
    position:absolute;
    left:0;
    right:0;
    bottom:8px;
    padding:0;
  }
}

@media (min-width: 700px){
  main{padding-left:24px;padding-right:24px}
  .card{padding:30px 30px 24px}
  .card h1{font-size:34px}
  .statement{font-size:22px}
}
@media (max-width: 699px){
  #play{position:relative;inset:auto;height:100%;min-height:0}
  .deck{
    width:100%;
    height:calc(100% - 124px);
    flex:0 0 calc(100% - 124px);
    max-height:none;
  }
  .actions{
    position:absolute;
    left:0;
    right:0;
    bottom:30px;
    height:72px;
    flex:0 0 72px;
    gap:20px;
    padding:0;
  }
  .vote-actions{gap:20px}
  .action{width:70px;height:70px}
  .undo-action{left:10px;width:50px;height:50px}
  #play>.note{
    position:absolute;
    left:0;
    right:0;
    bottom:4px;
    padding:0;
    line-height:1.2;
  }
  .top-right{gap:7px}.mode-switch{gap:2px}.mode-btn{width:36px;height:36px;font-size:19px}.mode-btn::after{display:none}
  .info{inset:auto 8px 8px 8px;border-radius:26px;max-height:78svh;padding-left:18px;padding-right:18px}
}
@media (max-height: 700px){
  .deck{
    height:calc(100% - 112px);
    flex-basis:calc(100% - 112px);
  }
  .actions{bottom:26px;height:64px;flex-basis:64px;gap:16px}
  .vote-actions{gap:16px}
  .action{width:62px;height:62px}
  .undo-action{left:8px;width:48px;height:48px}
  #play>.note{bottom:3px;font-size:11px}
  .card{padding-top:20px;padding-bottom:14px}
  .card h1{font-size:27px;margin-top:10px;margin-bottom:12px}
  .statement{font-size:19px}
}

/* Live swipe feedback */
.swipe-feedback{
  position:fixed;
  inset:0;
  z-index:850;
  pointer-events:none;
  opacity:0;
  background:transparent;
  transition:opacity .12s ease, background .12s ease;
}
.swipe-feedback .feedback-icon{
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%) scale(.72);
  font-size:clamp(72px,12vw,132px);
  line-height:1;
  font-weight:800;
  opacity:0;
  filter:drop-shadow(0 8px 22px rgba(0,0,0,.12));
  transition:opacity .08s linear, transform .12s cubic-bezier(.2,.8,.2,1);
}
.swipe-feedback.yes .feedback-icon{color:#28c76f}
.swipe-feedback.no .feedback-icon{color:#ff375f}
.swipe-feedback.neutral .feedback-icon{color:#666}
.swipe-feedback.show{opacity:1}
.swipe-feedback.show .feedback-icon{transform:translate(-50%,-50%) scale(1)}

/* Secondary confirmation ripple */
.vote-ripple{
  position:fixed;
  inset:0;
  z-index:910;
  pointer-events:none;
  display:flex;
  align-items:center;
  justify-content:center;
  opacity:0;
}
.vote-ripple .ripple-ring{
  position:absolute;
  width:76px;
  height:76px;
  border:3px solid currentColor;
  border-radius:50%;
  transform:scale(.25);
  opacity:0;
}
.vote-ripple .ripple-ring.r2{width:76px;height:76px}
.vote-ripple .ripple-symbol{
  position:relative;
  z-index:2;
  font-size:clamp(58px,10vw,104px);
  font-weight:850;
  line-height:1;
  transform:scale(.45);
  opacity:0;
  filter:drop-shadow(0 8px 20px rgba(0,0,0,.12));
}
.vote-ripple.yes{color:#28c76f}
.vote-ripple.no{color:#ff375f}
.vote-ripple.neutral{color:#666}
.vote-ripple.animate{animation:rippleContainer .62s ease-out forwards}
.vote-ripple.animate .ripple-symbol{animation:rippleSymbol .62s cubic-bezier(.2,.8,.2,1) forwards}
.vote-ripple.animate .ripple-ring.r1{animation:rippleRing .72s cubic-bezier(.15,.75,.2,1) forwards}
.vote-ripple.animate .ripple-ring.r2{animation:rippleRing2 .86s cubic-bezier(.15,.75,.2,1) .05s forwards}
@keyframes rippleContainer{
  0%{opacity:1}
  72%{opacity:1}
  100%{opacity:0}
}
@keyframes rippleSymbol{
  0%{opacity:0;transform:scale(.45)}
  18%{opacity:1;transform:scale(1.12)}
  32%{opacity:1;transform:scale(1)}
  72%{opacity:.82;transform:scale(1)}
  100%{opacity:0;transform:scale(.9)}
}
@keyframes rippleRing{
  0%{opacity:.72;transform:scale(.25)}
  18%{opacity:.62}
  100%{opacity:0;transform:scale(5.2)}
}
@keyframes rippleRing2{
  0%{opacity:.42;transform:scale(.25)}
  100%{opacity:0;transform:scale(7)}
}

/* Stats lock */
#stats.stats-locked{overflow:hidden!important}
#stats.stats-locked > .statbox,
#stats.stats-locked > #statCards,
#stats.stats-locked > .ranked{display:flex;align-items:center;gap:16px}.rank{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:#111;color:#fff;font-weight:800;flex:0 0 auto}.stat-main{flex:1}.muted-stat{opacity:.62}.warning{
  filter:blur(5px);
  opacity:.32;
  user-select:none;
  pointer-events:none;
  transition:filter .3s ease,opacity .3s ease;
}
.stats-lock{
  position:absolute;
  inset:0;
  z-index:100;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:0;
  background:#f5f5f7;
  backdrop-filter:none;
  -webkit-backdrop-filter:none;
  transition:opacity .35s ease,visibility .35s ease;
}
.stats-lock.hidden{
  opacity:0;
  visibility:hidden;
  pointer-events:none;
}
.lock-card{
  width:min(360px,88%);
  padding:24px 22px 20px;
  border-radius:24px;
  background:rgba(255,255,255,.94);
  box-shadow:0 16px 50px rgba(0,0,0,.14);
  text-align:center;
}
.lock-icon{font-size:32px;line-height:1;margin-bottom:10px}
.lock-card h2{margin:0 0 7px;font-size:20px;letter-spacing:-.3px}
.lock-card p{margin:0;color:#666;font-size:13px;line-height:1.4}
.lock-progress{height:9px;background:#e7e7ec;border-radius:99px;overflow:hidden;margin:17px 0 8px}
.lock-progress-fill{height:100%;width:0;border-radius:99px;background:#111;transition:width .45s cubic-bezier(.2,.8,.2,1)}
.lock-count{font-size:12px;font-weight:800;color:#555}
.reset{
  position:relative;
  z-index:40;
  border:0;border-radius:14px;padding:12px 15px;background:#111;color:#fff;font-weight:700;
  cursor:pointer;
  transition:transform .12s ease,box-shadow .18s ease;
}
.reset:hover{box-shadow:0 6px 18px rgba(0,0,0,.16)}
.reset:active{transform:scale(.94)}
.reset.clicked{animation:resetTap .28s cubic-bezier(.2,.8,.2,1)}
@keyframes resetTap{
  0%{transform:scale(1)}
  45%{transform:scale(.91)}
  100%{transform:scale(1)}
}
/* Reset confirmation */
.reset-modal{
  position:fixed;inset:0;z-index:1200;
  display:flex;align-items:center;justify-content:center;
  padding:20px;background:rgba(0,0,0,.42);
  backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);
  opacity:0;visibility:hidden;pointer-events:none;
  transition:opacity .22s ease,visibility .22s ease;
}
.reset-modal.open{opacity:1;visibility:visible;pointer-events:auto}
.reset-dialog{
  width:min(420px,92vw);background:#fff;border-radius:26px;padding:25px 22px 20px;
  box-shadow:0 24px 80px rgba(0,0,0,.28);
  transform:translateY(12px) scale(.96);
  transition:transform .28s cubic-bezier(.16,1,.3,1);
}
.reset-modal.open .reset-dialog{transform:translateY(0) scale(1)}
.reset-dialog .reset-symbol{width:42px;height:42px;border-radius:14px;background:#f0f0f3;display:grid;place-items:center;font-size:21px;margin-bottom:14px}
.reset-dialog h2{margin:0 0 8px;font-size:22px;letter-spacing:-.5px}
.reset-dialog p{margin:0;color:#666;font-size:14px;line-height:1.45}
.reset-dialog .reset-actions{display:flex;gap:9px;margin-top:20px}
.reset-dialog button{flex:1;border:0;border-radius:13px;padding:12px;font-weight:750;cursor:pointer}
.reset-cancel{background:#ececf1;color:#333}
.reset-confirm{background:#111;color:#fff}
.reset-confirm.danger{background:#ff375f}
.reset-step{display:none}
.reset-step.active{display:block}

.source-link{font-weight:700;text-decoration:underline;text-underline-offset:2px;cursor:pointer}
.info-section{margin-top:14px;padding-top:1px}
.info-label{font-size:9px;text-transform:uppercase;letter-spacing:.13em;color:#999ba5;font-weight:850;margin-bottom:6px}
.info-section p,.info-mini p{font-size:13.5px;line-height:1.5;color:#f4f4f6;margin:0}
.info-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:12px}
.info-mini{padding:12px 13px;border-radius:16px;background:rgba(255,255,255,.055);border:1px solid rgba(255,255,255,.06)}
.info-mini.positive{background:rgba(40,199,111,.075);border-color:rgba(40,199,111,.12)}
.info-mini.caution{background:rgba(255,176,32,.07);border-color:rgba(255,176,32,.11)}
.info-mini.positive .info-label{color:#79dca3}
.info-mini.caution .info-label{color:#e4bb69}
.fact-section{margin-top:12px;padding:12px 13px;border-radius:16px;background:rgba(255,255,255,.045);border:1px solid rgba(255,255,255,.06)}
.info .source{margin-top:10px;padding-top:9px;border-top:1px solid rgba(255,255,255,.08);font-size:10px;line-height:1.4;color:#8e8f98}
.info.collapsed .info-section,.info.collapsed .info-grid{display:none}
@media (max-width:699px){
 .info-grid{grid-template-columns:1fr}
 .info-section p,.info-mini p{font-size:13px}
}

/* Precise action-icon geometry */
.action{display:flex!important;align-items:center!important;justify-content:center!important;padding:0!important;margin:0!important;line-height:0!important;font-size:0!important}
.action svg{display:block!important;width:40px!important;height:40px!important;flex:0 0 40px!important;margin:0!important}
.action.no svg{stroke:var(--red)!important;stroke-width:4.2!important;stroke-linecap:round!important;fill:none!important}
.action.neutral svg{stroke:#555!important;stroke-width:3.2!important;stroke-linecap:round!important;fill:none!important}
.action.yes svg{fill:var(--green)!important;stroke:var(--green)!important;stroke-width:1.2!important}
.undo-action{display:flex!important;align-items:center!important;justify-content:center!important;padding:0!important;line-height:0!important}
.undo-action .undo-icon{display:block!important;width:31px!important;height:31px!important;flex:0 0 31px!important;margin:0!important;transform:none!important;stroke:#ffad12!important;stroke-width:2.5!important;stroke-linecap:round!important;stroke-linejoin:round!important;fill:none!important}


.info.vote-closing{display:block;animation:infoVoteOut .30s cubic-bezier(.22,.8,.22,1) forwards;pointer-events:none}
@keyframes infoVoteOut{
  from{opacity:1;transform:translate3d(0,0,0)}
  to{opacity:1;transform:translate3d(0,110%,0)}
}


/* The explanatory stats warning is fully readable once the stats are unlocked. */
.warning{filter:none!important;opacity:1!important}


.save-btn{
  position:relative;
  margin-left:3px;
  width:36px;height:36px;flex:0 0 36px;
  display:flex;align-items:center;justify-content:center;
  border:0;border-radius:11px;background:#fff;color:#555;
  box-shadow:0 3px 12px rgba(0,0,0,.08);
  cursor:pointer;transition:transform .15s ease,background .15s ease,color .15s ease;
}
.save-btn svg{width:19px;height:19px;display:block;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;fill:none}
.save-btn:hover{transform:translateY(-1px);background:#f0f0f3;color:#111}
.save-btn:active{transform:scale(.94)}
.save-btn.saved{color:#28a866;background:#edf9f2}
.save-toast{
  position:fixed;top:114px;left:50%;z-index:1500; /* au-dessus des feuilles (1210) et des fiches (1400) */
  transform:translate(-50%,-8px);opacity:0;pointer-events:none;
  background:#111;color:#fff;border-radius:999px;padding:9px 14px;
  font-size:12px;font-weight:700;box-shadow:0 8px 28px rgba(0,0,0,.18);
  transition:opacity .18s ease,transform .18s ease;
}
.save-toast.show{opacity:1;transform:translate(-50%,0)}


.save-btn::before{
  content:"";
  position:absolute;
  left:-7px;
  top:8px;
  width:1px;
  height:20px;
  background:#d9d9de;
}


.stats-extra{display:flex;flex-direction:column;gap:14px;margin-top:14px}
.stats-extra .statbox{margin:0}
/* Sélecteur unique de l’onglet Stats */
.sp{padding:14px 18px 18px}
.sp-bar,.rp-bar{display:flex;gap:6px;overflow-x:auto;padding:2px 0 12px;margin:0 -4px 6px;scrollbar-width:none;position:sticky;top:-10px;z-index:5;background:inherit}
.sp-bar::-webkit-scrollbar,.rp-bar::-webkit-scrollbar{display:none}
.sp-tab,.rp-tab{flex:0 0 auto;border:1px solid var(--hairline);background:var(--surface-2);color:var(--text);border-radius:999px;padding:8px 15px;font:inherit;font-size:13.5px;font-weight:750;cursor:pointer;white-space:nowrap;transition:background .15s,color .15s,border-color .15s,transform .15s}
.sp-tab:hover,.rp-tab:hover{border-color:var(--accent)}
.sp-tab:active,.rp-tab:active{transform:scale(.97)}
.sp-tab.active,.rp-tab.active{background:var(--accent);border-color:var(--accent);color:#fff}
.sp-tab:focus-visible,.rp-tab:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.sp-panel[hidden],.rp-panel[hidden]{display:none}
.sp-title{font-size:19px;margin:6px 0 6px}
.rp-bar{top:-18px;padding-top:12px;background:var(--surface)}
.rp-panel>.sp-title{margin-top:10px}
.sp-split{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px 28px;align-items:start;margin-top:8px}
.sp-split>div{min-width:0}
.sp-split .compass{margin-top:0}
@media (max-width:820px){.sp-split{grid-template-columns:1fr}}
.stat-more{display:block;margin:0 auto;border:1px solid var(--hairline);background:var(--surface);color:var(--text);border-radius:999px;padding:10px 20px;font:inherit;font-size:13.5px;font-weight:750;cursor:pointer;box-shadow:0 4px 14px rgba(0,0,0,.05)}
.stat-more[hidden]{display:none}
.stat-more::after{content:"";display:inline-block;width:7px;height:7px;margin:0 0 3px 10px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg);transition:transform .2s}
.stat-more[aria-expanded="true"]::after{transform:rotate(-135deg);margin-bottom:-2px}
#statCards:not(.show-all)>.statbox:nth-child(n+4){display:none}
.th-lab small{display:block;margin-top:2px;color:var(--muted);font-size:10.5px;font-weight:650}
.th-lab small i,.th-legend i{display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:4px;vertical-align:0}
.theme-track.th-multi{position:relative;height:14px;overflow:visible;background:var(--surface-2)}
.theme-track.th-multi .theme-fill{height:100%;opacity:.16}
.th-dot{position:absolute;top:50%;width:10px;height:10px;margin:-5px 0 0 -5px;border-radius:50%;border:1.5px solid var(--card,#fff);box-sizing:border-box}
.th-legend{display:flex;flex-wrap:wrap;gap:4px 12px;margin:10px 0 2px;font-size:11.5px;font-weight:700;color:var(--muted)}
.answers-box{margin-top:18px;padding-top:14px;border-top:1px solid var(--hairline)}
.answers-box h3{margin:0 0 4px;font-size:15px}
/* Bandeau de l’analyse approfondie : l’offre la plus visible de l’onglet */
.pm-teaser{position:relative;overflow:hidden;display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap;margin-top:14px;padding:24px 26px;border-radius:24px;color:#fff;background:linear-gradient(120deg,#2f6bff 0%,#6a4cff 55%,#b04cff 100%);box-shadow:0 14px 34px rgba(79,70,229,.32)}
.pm-teaser::after{content:"✦";position:absolute;right:-8px;top:-38px;font-size:170px;line-height:1;color:rgba(255,255,255,.1);pointer-events:none}
.pm-teaser .pm-copy{flex:1 1 320px;min-width:0;position:relative;z-index:1}
.pm-eyebrow{display:inline-block;margin-bottom:6px;padding:3px 10px;border-radius:999px;background:rgba(255,255,255,.2);font-size:11px;font-weight:800;letter-spacing:.06em;text-transform:uppercase}
.pm-teaser h2{margin:0 0 6px;font-size:25px;letter-spacing:-.5px;color:#fff}
.pm-teaser .pm-spark{color:#ffd978;margin-right:8px}
.pm-teaser p{margin:0;font-size:14px;line-height:1.5;color:rgba(255,255,255,.92)}
.pm-chips{display:flex;flex-wrap:wrap;gap:6px;list-style:none;margin:12px 0 0;padding:0}
.pm-chips li{padding:4px 10px;border-radius:999px;background:rgba(255,255,255,.18);font-size:12px;font-weight:700}
.pm-cta{position:relative;z-index:1;flex:0 0 auto;display:inline-flex;align-items:center;gap:8px;border:0;border-radius:999px;padding:14px 24px;background:#fff;color:#3b3bd6;font:inherit;font-size:15px;font-weight:850;cursor:pointer;box-shadow:0 8px 22px rgba(0,0,0,.2);transition:transform .15s,box-shadow .15s}
.pm-cta:hover{transform:translateY(-2px);box-shadow:0 12px 28px rgba(0,0,0,.26)}
.pm-cta:active{transform:scale(.98)}
.pm-cta .pm-lock{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2}
@media (max-width:560px){.pm-teaser{padding:20px 18px}.pm-cta{width:100%;justify-content:center}.pm-teaser h2{font-size:22px}}
/* Cartes de pause et de fin d’étape */
.ps-hero{display:flex;align-items:center;gap:16px;margin-bottom:4px}
.ps-hero h1{margin:2px 0 0;font-size:25px;line-height:1.15}
.ps-hero .ps-left{margin:4px 0 0}
.ps-ring{flex:0 0 auto;width:88px;height:88px;border-radius:50%;display:grid;place-items:center;background:conic-gradient(var(--accent) calc(var(--p)*1%),var(--surface-2) 0)}
.ps-ring>div{width:68px;height:68px;border-radius:50%;background:var(--card);display:flex;flex-direction:column;align-items:center;justify-content:center;line-height:1}
.ps-ring b{font-size:21px;font-weight:850;letter-spacing:-.5px}
.ps-ring b small{font-size:11px;font-weight:800}
.ps-ring span{margin-top:3px;font-size:9.5px;font-weight:750;color:var(--muted)}
.ps-sub{margin:12px 0 6px;font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.ps-av{width:30px;height:30px;border-radius:50%;object-fit:cover;background:var(--surface-2)}
.ps-perks{list-style:none;margin:8px 0 0;padding:0;display:flex;flex-direction:column;gap:4px;font-size:12.5px;font-weight:650}
.ps-perks li{display:flex;gap:7px;align-items:baseline}
.ps-perks li::before{content:"✓";color:var(--accent);font-weight:900}
.ps-pitch{border:1px solid color-mix(in srgb,var(--accent) 30%,transparent)}
.pill-btn.big{padding:13px 20px;font-size:14.5px;flex:1 1 auto;text-align:center}
.pill-btn.accent{background:var(--accent);border-color:var(--accent);color:#fff;box-shadow:0 8px 20px rgba(47,107,255,.32)}
.pill-btn.accent:hover{background:var(--accent);filter:brightness(1.08)}
.ps-actions{flex-direction:column;gap:8px}
.ps-actions .pill-btn.big{flex:0 0 auto;width:100%}
.pf-check em.req{color:#e0294a;font-weight:800}
.pf-check em.rec{color:var(--accent);font-weight:800}
.pf-check em.req{font-size:16px;line-height:1;margin-left:2px}
.pf-req-note{margin:0;font-size:11.5px;color:var(--muted);display:flex;flex-wrap:wrap;gap:4px 14px}
.pf-star{display:inline-block;width:14px;height:14px;fill:var(--accent);stroke:var(--accent);stroke-width:1.2;stroke-linejoin:round;vertical-align:-2px;margin-left:3px}
.pf-req-note .pf-star{margin-left:0}
.pf-req-note .req{color:#e0294a;font-weight:800}
html.dark .pf-req-note .req{color:#ff6b88}
html.dark .pf-check em.req{color:#ff6b88}
html.dark .sp-tab{background:#24242b;border-color:#30303a}
html.dark .sp-tab.active{background:var(--accent);border-color:var(--accent)}
html.dark .stat-more{background:#1b1b20;border-color:#30303a}
html.dark .th-dot{border-color:#1b1b20}
html.dark .ps-ring>div{background:#1b1b20}
#statCards{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,340px),1fr));gap:14px;align-items:start}
#statCards .statbox{padding:14px 16px;gap:12px}
#statCards .score{font-size:32px;letter-spacing:-1.4px;line-height:1.1}
#statCards .statbox .candidate-avatar{width:48px;height:48px;flex-basis:48px}
#statCards .rank{width:30px;height:30px;font-size:13px}
#statCards .cand-details summary{padding:2px 0}
@media (prefers-reduced-motion:reduce){.fold-chev{transition:none}}
.answer-bars{display:flex;flex-direction:column;gap:11px;margin-top:14px}
.answer-row{display:grid;grid-template-columns:90px 1fr 42px;align-items:center;gap:10px;font-size:13px}
.answer-label{font-weight:700}
.answer-track{height:9px;background:#e8e8ed;border-radius:99px;overflow:hidden}
.answer-fill{height:100%;border-radius:99px;background:#111;transition:width .35s ease}
.answer-fill.neutral{background:#888}
.answer-fill.no{background:#ff3b5f}
.answer-fill.yes{background:#25b96f}
.answer-count{text-align:right;color:#666;font-weight:700}
.theme-list{display:flex;flex-direction:column;gap:10px;margin-top:14px}
.theme-row{display:grid;grid-template-columns:minmax(145px,1fr) 2fr 44px;align-items:center;gap:10px;font-size:12px}
.theme-track{height:8px;background:#e8e8ed;border-radius:99px;overflow:hidden}
.theme-fill{height:100%;background:#111;border-radius:99px;transition:width .35s ease}
.stats-description{color:#666;font-size:13px;line-height:1.45;margin:0}


/* Popup enrichi */
.info [hidden]{display:none!important}
.info-meta{display:flex;flex-wrap:wrap;gap:6px;margin:0 44px 10px 0}
.chip{display:inline-flex;align-items:center;padding:4px 9px;border-radius:999px;background:rgba(255,255,255,.09);color:#d6d6dc;font-size:10.5px;font-weight:750;letter-spacing:.02em}
.chip-old{background:rgba(255,176,32,.16);color:#f3c56f}
.info-statement{font-size:13.5px!important;color:#c4c4cc!important;margin:-2px 0 4px!important;line-height:1.45}
.objective-section{padding:11px 13px;border-radius:16px;background:rgba(22,119,255,.10);border:1px solid rgba(22,119,255,.18)}
.objective-section .info-label{color:#8dbbff}
.info-now{margin-top:9px;padding:9px 11px;border-left:3px solid rgba(255,255,255,.22);background:rgba(255,255,255,.04);border-radius:0 12px 12px 0}
.info-sublabel{font-size:10px;font-weight:800;color:#b9bac2;margin-bottom:3px}
.info-risks{margin:0;padding-left:17px;font-size:13.5px;line-height:1.45;color:#f4f4f6}
.info-risks li+li{margin-top:5px}
.fact-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:6px}
.fact-head .info-label{margin-bottom:0}
.verdict{flex:0 0 auto;padding:3px 9px;border-radius:999px;font-size:10.5px;font-weight:800}
.verdict-ok{background:rgba(40,199,111,.18);color:#7fe0a8}
.verdict-nu{background:rgba(255,176,32,.18);color:#f3c56f}
.verdict-est{background:rgba(22,119,255,.2);color:#9ec7ff}
.verdict-vague{background:rgba(255,255,255,.12);color:#c9c9d1}
.verdict-fix{background:rgba(175,82,222,.22);color:#d7a8f0}
.info-unknown{margin-top:9px}
.verdict-help{margin-top:9px!important;font-size:11.5px!important;color:#a3a4ad!important;line-height:1.45!important}
.info .source{display:flex;flex-direction:column;gap:6px}
.info .source .source-link{display:flex;gap:8px;align-items:baseline;text-decoration:none;color:#9ec7ff;font-size:11.5px}
.info .source button.source-link{width:100%;padding:0;border:0;background:none;font:inherit;font-size:11.5px;text-align:left;cursor:pointer}
.info .source button.source-link:hover .source-host{text-decoration:underline}
.source-type{flex:0 0 auto;padding:2px 7px;border-radius:6px;background:rgba(255,255,255,.07);color:#c9c9d1;font-size:10px;font-weight:750}
.source-host{text-decoration:underline;text-underline-offset:2px;word-break:break-all}
.info.collapsed .info-meta,.info.collapsed .info-statement,.info.collapsed .info-risks{display:none}

/* Stats enrichies */
#stats.stats-locked > :not(.stats-lock){filter:blur(5px);opacity:.32;pointer-events:none;user-select:none}
#stats.stats-locked > .statbox{display:block}
.stat-mode{display:grid;grid-template-columns:repeat(3,1fr);gap:3px;width:100%;max-width:380px;margin-top:12px;padding:3px;border-radius:12px;background:#ececf1}
.stat-mode-btn{min-width:0;border:0;background:transparent;border-radius:9px;padding:7px 6px;font-weight:750;font-size:13px;color:#666;cursor:pointer}
.stat-mode-btn.active{background:#111;color:#fff}
.hero{background:#111;color:#fff}
.hero-label{font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.08em;color:#a8a8b0}
.hero-main{display:flex;align-items:center;gap:16px;margin:12px 0 10px}
.hero-avatar{width:76px;height:76px;border-radius:50%;object-fit:cover;background:#333;border:3px solid #fff}
.hero-name{font-size:24px;font-weight:850;letter-spacing:-.5px}
.hero-score{font-size:44px;font-weight:850;letter-spacing:-2px;line-height:1}
.hero-gap,.hero-far{font-size:13.5px;line-height:1.45;color:#e2e2e8}
.hero-far{margin-top:6px;color:#b7b7bf}
/* Révélation du candidat le plus proche : la carte au « ? » (celle du logo) se retourne une fois par session,
   et de nouveau seulement si le premier change. Les deux faces sont empilées dans la même case de grille. */
.hero-flip{display:grid;perspective:800px;margin:12px 0 10px}
.hero-flip-in{display:grid;transform-style:preserve-3d;transition:transform 520ms cubic-bezier(.23,1,.32,1)}
.hero-flip-in>*{grid-area:1/1;backface-visibility:hidden;-webkit-backface-visibility:hidden}
.hero-flip .hero-main{margin:0;transform:rotateY(180deg)}
.hero-flip.on .hero-flip-in{transform:rotateY(180deg)}
.hero-q{display:flex;align-items:center;gap:16px}
.hero-q-card{width:56px;height:76px;flex:0 0 56px;margin:0 10px;border-radius:9px;background:#fff;color:#111;display:grid;place-items:center;font-size:40px;font-weight:850;line-height:1;transform:rotate(-7deg)}
.hero-q-txt{font-size:17px;font-weight:750;line-height:1.3;color:#e2e2e8}
.hero.pending .hero-gap,.hero.pending .hero-far,.hero.pending .hero-decide{opacity:0}
.hero .hero-gap,.hero .hero-far,.hero .hero-decide{transition:opacity 220ms ease}
@media (prefers-reduced-motion:reduce){
  .hero-flip-in{transition:none}
  .hero-flip-in>*{backface-visibility:visible;transition:opacity 180ms ease}
  .hero-flip .hero-main,.hero-flip.on .hero-flip-in{transform:none}
  .hero-flip .hero-main,.hero-flip.on .hero-q{opacity:0}
  .hero-flip.on .hero-main{opacity:1}
}
.stat-head{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.stat-head h2{margin:0}
.confidence{font-size:10.5px;font-weight:800;padding:3px 8px;border-radius:999px}
.confidence.high{background:#e3f7ec;color:#16884c}
.confidence.mid{background:#fff4d6;color:#a06a00}
.confidence.low{background:#f0f0f3;color:#77777f}
.score-row{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}
.score-sub{font-size:12px;color:var(--muted);font-weight:650}
.vote-bar{display:flex;height:10px;border-radius:99px;overflow:hidden;background:#e8e8ed;margin:8px 0}
.vote-bar span{display:block;height:100%;transition:width .35s ease}
.vb-yes{background:#25b96f}.vb-neutral{background:#a0a0a8}.vb-no{background:#ff3b5f}
.compass{display:block;width:100%;max-width:420px;margin:12px auto 4px}
.cp-bg{fill:#f6f6f8;stroke:#e2e2e8}
.cp-axis{stroke:#cfcfd6;stroke-dasharray:3 4}
.cp-pole{font-size:9.5px;fill:#8a8a92;font-weight:700}
.cp-label{font-size:9.5px;fill:#333;font-weight:700;paint-order:stroke;stroke:#fff;stroke-width:3px}
.cp-leader{stroke-width:1;opacity:.55}
.cp-me-text{font-size:7.5px;fill:#fff;font-weight:850}
.eu-block{margin-top:10px}
.eu-title{font-size:12px;font-weight:800;margin-bottom:8px}
.eu-track{position:relative;height:12px;border-radius:99px;background:linear-gradient(90deg,#e9e3ff,#f2f2f5 50%,#dfeaff)}
.eu-dot{position:absolute;top:1px;width:10px;height:10px;margin-left:-5px;border-radius:50%;border:1.5px solid #fff}
.eu-me{position:absolute;top:-6px;transform:translateX(-50%);padding:3px 7px;border-radius:999px;background:#111;color:#fff;font-size:9.5px;font-weight:850;white-space:nowrap}
.eu-poles{display:flex;justify-content:space-between;font-size:10.5px;color:#8a8a92;font-weight:700;margin:6px 0}
.ad-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:12px}
.ad-title{font-size:12.5px;font-weight:850;margin-bottom:6px}
.ad-title.yes{color:#16884c}.ad-title.no{color:#d8264b}
.ad-list{margin:0;padding-left:17px;font-size:13px;line-height:1.4}
.ad-list li+li{margin-top:4px}
.ad-more{list-style:none;margin-left:-17px;color:var(--muted)}
.hm-wrap{overflow-x:auto;margin-top:12px;-webkit-overflow-scrolling:touch}
.heatmap{border-collapse:separate;border-spacing:3px;font-size:11.5px;min-width:100%}
.heatmap th{font-weight:700;color:#444}
.heatmap thead th{vertical-align:bottom;padding-bottom:4px}
.heatmap thead th img{display:block;width:28px;height:28px;border-radius:50%;object-fit:cover;margin:0 auto 3px;background:#e8e8ed}
.heatmap thead th span{display:block;font-size:9px;max-width:44px;margin:0 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.heatmap tbody th{text-align:left;white-space:nowrap;padding-right:6px;font-size:11.5px;position:sticky;left:0;background:#fff;z-index:1}
.heatmap thead th:first-child{position:sticky;left:0;background:#fff;z-index:1}
.heatmap td{min-width:36px;height:30px;text-align:center;border-radius:8px;font-weight:800;color:#1b1b1f;background:#f3f3f6}
.heatmap td.hm-empty{color:#c5c5cc;font-weight:500}
.heatmap td.hm-mid{background:#ececf0}
@media (max-width:699px){
 .ad-grid{grid-template-columns:1fr}
 .hero-score{font-size:38px}
 .theme-row{grid-template-columns:minmax(120px,1fr) 1.4fr 44px}
 .heatmap tbody th{white-space:normal;min-width:96px;max-width:110px;font-size:10.5px;line-height:1.2}
}

/* Petites largeurs */
.stat-main{min-width:0}
@media (max-width: 440px){
  .ranked{gap:10px}
  .rank{width:30px;height:30px;font-size:13px}
  .candidate-avatar{width:44px;height:44px;flex-basis:44px}
  .statbox{padding:16px}
  .score{font-size:36px}
}
.progress{white-space:nowrap}
@media (max-width: 440px){
  .actions{justify-content:center;gap:12px}
  .undo-action{position:static;flex:0 0 auto;width:44px;height:44px;left:auto}
  .vote-actions{gap:12px}
  .action{width:58px;height:58px}
  .brand{font-size:18px}
  .top{gap:8px}
  .top-right{gap:6px}
  .mode-btn{width:32px;height:32px;font-size:17px}
}
@media (max-width: 340px){
  main{padding-left:8px;padding-right:8px}
  .actions,.vote-actions{gap:9px}
  .undo-action{width:40px;height:40px}
  .action{width:52px;height:52px}
  .card{padding:20px 16px 14px;border-radius:24px}
  .card h1{font-size:25px}
  .statement{font-size:18px}
  .brand{font-size:16px}
  .progress{font-size:11px}
  .mode-btn{width:29px;height:29px;font-size:15px}
  .save-btn{width:34px!important;height:34px!important}
}

.eu-index{display:flex;align-items:baseline;gap:6px;margin:10px 0 8px;flex-wrap:wrap}
.eu-index-value{font-size:38px;font-weight:850;letter-spacing:-1.5px}
.eu-index-scale{color:var(--muted);font-weight:700}
.eu-index-label{margin-left:8px;padding:3px 10px;border-radius:999px;background:#eef2ff;color:#3346a8;font-size:12px;font-weight:800}
.eu-counts{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:12px 0}
.eu-count{padding:10px 12px;border-radius:14px;font-size:12.5px;line-height:1.5}
.eu-count.pro{background:#eef4ff}.eu-count.anti{background:#f6f0ff}
.eu-count-title{font-weight:850;margin-bottom:3px}
.eu-count-sub{color:var(--muted);font-size:11.5px}
.eu-details summary{cursor:pointer;font-size:12.5px;font-weight:750;color:#3346a8;margin-top:6px}
.eu-list{margin:8px 0 0;padding-left:0;list-style:none;font-size:12.5px;line-height:1.45}
.eu-list li{display:flex;gap:7px;align-items:baseline;padding:3px 0}
.eu-w{flex:0 0 26px;text-align:center;border-radius:6px;font-weight:850;font-size:11px}
.eu-w.pro{background:#dfe9ff;color:#2347b5}.eu-w.anti{background:#efe3ff;color:#6b2fb3}
@media (max-width:440px){.eu-counts{grid-template-columns:1fr}}

.cand-details{margin-top:2px;flex:1 0 100%;min-width:0;max-width:100%}
#statCards .statbox{flex-wrap:wrap}
.cand-details summary{cursor:pointer;font-size:12.5px;font-weight:750;color:#3346a8;list-style:none}
.cand-details summary::-webkit-details-marker{display:none}
.cand-details summary::before{content:'▸ ';}
.cand-details[open] summary::before{content:'▾ ';}
.cd-body{margin-top:8px;display:grid;gap:10px}
.cd-group ul{margin:4px 0 0;padding-left:17px;font-size:12.5px;line-height:1.4}
.cd-group li+li{margin-top:3px}
.cd-title{font-size:12px;font-weight:850}
.cd-yes .cd-title{color:#16884c}.cd-no .cd-title{color:#d8264b}.cd-neutral .cd-title{color:#6b6b73}.cd-none .cd-title{color:#9a9aa2}
.cd-none li{color:#8a8a92}
.cd-shared{margin-left:6px;padding:1px 6px;border-radius:999px;background:#eef0f6;color:#5a5f77;font-size:10.5px;font-weight:800;cursor:help}

/* ===== Nouvelles fonctionnalités ===== */
:root{--accent:#2f6bff;--accent-soft:#e8efff;--surface:#fff;--surface-2:#f3f3f6;--text:#111;--muted:#6b6b73;--hairline:#e5e5ea}
/* Étoile « important » */
.card-tools{display:flex;align-items:center;gap:8px;margin-left:auto;flex:0 0 auto}
.card-tools .question{margin-left:0}
.star{width:30px;height:30px;border:0;border-radius:50%;background:#ececf1;display:grid;place-items:center;padding:0;cursor:pointer;transition:background .18s,transform .18s}
.star svg{width:17px;height:17px;fill:none;stroke:#8a8a92;stroke-width:1.8;stroke-linejoin:round;transition:fill .18s,stroke .18s}
.star:hover{transform:scale(1.06)}
.star.on{background:var(--accent-soft)}
.star.on svg{fill:var(--accent);stroke:var(--accent)}
.star.pop{animation:questionPop .42s cubic-bezier(.2,.9,.2,1)}
/* Bandeau de mode */
.mode-banner{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;width:min(100%,560px);margin:0 auto 8px;padding:8px 12px;border-radius:14px;background:var(--accent-soft);color:#24366e;font-size:12.5px;line-height:1.35}
.mode-banner[hidden]{display:none}
.banner-btn{border:0;background:transparent;color:var(--accent);font-weight:800;font-size:12.5px;cursor:pointer;padding:2px 0}
.done-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:6px}
/* Boutons génériques */
.pill-btn{border:1px solid var(--hairline);background:var(--surface);color:var(--text);border-radius:999px;padding:9px 14px;font-weight:750;font-size:13px;cursor:pointer;transition:background .15s,transform .15s}
.pill-btn:hover{background:var(--surface-2)}
.pill-btn:active{transform:scale(.97)}
.pill-btn.primary{background:var(--text);color:var(--surface);border-color:var(--text)}
/* Révélation des candidats après le vote */
.reveal-toast{position:fixed;left:50%;bottom:118px;z-index:950;transform:translate(-50%,12px);display:flex;align-items:center;gap:10px;max-width:min(92vw,520px);padding:9px 14px 9px 9px;border-radius:999px;background:rgba(24,24,28,.94);color:#fff;font-size:12.5px;line-height:1.3;box-shadow:0 10px 30px rgba(0,0,0,.25);opacity:0;pointer-events:none;transition:opacity .2s ease,transform .25s cubic-bezier(.2,.8,.2,1)}
.reveal-toast.show{opacity:1;transform:translate(-50%,0)}
.rt-vote{flex:0 0 auto;padding:4px 9px;border-radius:999px;font-weight:800;font-size:11px}
.rt-yes{background:rgba(40,199,111,.22);color:#7fe0a8}.rt-no{background:rgba(255,55,95,.22);color:#ff9bb0}.rt-neutral{background:rgba(255,255,255,.14);color:#ddd}
/* Feuilles */
.sheet-backdrop{position:fixed;inset:0;z-index:1200;background:rgba(10,10,14,.42);opacity:0;transition:opacity .2s}
.sheet-backdrop.open{opacity:1}
.sheet{position:fixed;z-index:1210;left:50%;bottom:0;width:min(100%,560px);max-height:86svh;overflow:auto;overscroll-behavior:contain;background:var(--surface);color:var(--text);border-radius:24px 24px 0 0;padding:18px 20px calc(22px + env(safe-area-inset-bottom));box-shadow:0 -10px 40px rgba(0,0,0,.18);transform:translate(-50%,100%);transition:transform .3s cubic-bezier(.2,.8,.2,1)}
.sheet.open{transform:translate(-50%,0)}
.sheet[hidden]{display:none}
.sheet-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}
.sheet-head h2{margin:0;font-size:20px;letter-spacing:-.3px}
.sheet-close{border:0;background:var(--surface-2);color:var(--text);width:34px;height:34px;border-radius:50%;font-size:19px;cursor:pointer}
.set-group{padding:12px 0;border-top:1px solid var(--hairline)}
.set-group:first-child{border-top:0}
.set-label{font-size:11px;font-weight:850;text-transform:uppercase;letter-spacing:.09em;color:var(--muted);margin-bottom:8px}
.set-hint{font-size:12px;color:var(--muted);margin-top:8px}
.seg{display:grid;grid-auto-flow:column;grid-auto-columns:1fr;gap:3px;padding:3px;border-radius:12px;background:var(--surface-2)}
.seg button{border:0;background:transparent;color:var(--muted);border-radius:9px;padding:8px 6px;font-weight:750;font-size:13px;cursor:pointer}
.seg button.active{background:var(--text);color:var(--surface)}
.chips{display:flex;flex-wrap:wrap;gap:6px}
.chip-btn{border:1px solid var(--hairline);background:var(--surface);color:var(--text);border-radius:999px;padding:6px 11px;font-size:12.5px;font-weight:700;cursor:pointer}
.chip-btn span{color:var(--muted);font-weight:600;margin-left:3px}
.chip-btn.active{background:var(--accent);border-color:var(--accent);color:#fff}
.chip-btn.active span{color:rgba(255,255,255,.75)}
.share-actions{display:flex;flex-wrap:wrap;gap:8px}
.kbd-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:6px 12px;margin:0;padding:0;list-style:none;font-size:13px;color:var(--muted)}
kbd{display:inline-block;min-width:22px;padding:2px 6px;margin-right:6px;border-radius:6px;border:1px solid var(--hairline);border-bottom-width:2px;background:var(--surface-2);color:var(--text);font:700 11px/1.4 inherit;text-align:center}
.sheet-dialog h2{margin:4px 0 8px;font-size:19px}
.sheet-dialog p{margin:0 0 16px;color:var(--muted);font-size:14px;line-height:1.5;word-break:break-word}
.dialog-actions{display:flex;justify-content:flex-end;gap:8px}
.dialog-actions [hidden]{display:none}
/* Méthode */
.intro-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
.intro-head h2{margin:0}
.method-btn{flex:0 0 auto;border:1px solid var(--hairline);background:var(--surface);color:var(--text);border-radius:999px;padding:6px 12px;font-weight:750;font-size:12.5px;cursor:pointer}
.method-btn::before{content:'ⓘ ';color:var(--accent)}
.m-lead{margin:0 0 10px;color:var(--muted);font-size:13px}
#methodSheet details{border-top:1px solid var(--hairline);padding:10px 0}
#methodSheet summary{cursor:pointer;font-weight:800;font-size:14px;list-style:none}
#methodSheet summary::-webkit-details-marker{display:none}
#methodSheet summary::after{content:'+';float:right;color:var(--muted);font-weight:600}
#methodSheet details[open] summary::after{content:'–'}
#methodSheet details p{margin:8px 0 0;font-size:13px;line-height:1.55;color:var(--muted)}
.m-table{width:100%;border-collapse:collapse;margin-top:10px;font-size:12.5px}
.m-table th,.m-table td{padding:5px 6px;text-align:right;border-bottom:1px solid var(--hairline)}
.m-table th:first-child,.m-table td:first-child{text-align:left}
.m-table th{color:var(--muted);font-weight:750}
/* Partage */
.share-box .share-actions{margin-top:12px}
/* Héros : départage */
.hero-decide{display:block;width:100%;margin-top:12px;border:0;border-radius:14px;padding:11px 14px;background:#fff;color:#111;font-weight:800;font-size:13.5px;text-align:left;cursor:pointer}
.hero-decide span{color:#6b6b73;font-weight:650}
/* Détail par candidat */
.cand-details summary{cursor:pointer;font-size:12.5px;font-weight:750;color:var(--accent);list-style:none;padding:6px 0}
.cd-body{margin-top:6px;display:block;min-width:0}
.cd-tabs{display:flex;gap:6px;overflow-x:auto;padding-bottom:4px;scrollbar-width:none}
.cd-tabs::-webkit-scrollbar{display:none}
.cd-tab{flex:0 0 auto;display:inline-flex;align-items:center;gap:6px;border:1px solid var(--hairline);background:var(--surface);color:var(--text);border-radius:999px;padding:6px 10px;font-size:12px;font-weight:750;cursor:pointer}
.cd-tab b{font-weight:850;color:var(--muted)}
.cd-tab:disabled{opacity:.4;cursor:default}
.cd-tab-ic{display:grid;place-items:center;width:18px;height:18px;border-radius:50%;font-size:11px;font-weight:900}
.cd-tab.cdk-yes .cd-tab-ic{background:#e3f7ec;color:#16884c}.cd-tab.cdk-no .cd-tab-ic{background:#ffe6ec;color:#d8264b}.cd-tab.cdk-neutral .cd-tab-ic{background:#ececf1;color:#6b6b73}.cd-tab.cdk-none .cd-tab-ic{background:#f3f3f6;color:#9a9aa2}
.cd-tab.active{background:var(--text);border-color:var(--text);color:var(--surface)}
.cd-tab.active b{color:var(--surface);opacity:.75}
.cd-list{list-style:none;margin:8px 0 0;padding:0;display:grid;gap:6px;max-height:360px;overflow:auto}
.cd-list[hidden]{display:none}
.cd-item{display:flex;align-items:center;gap:10px;padding:9px 10px;border-radius:12px;background:var(--surface-2)}
.cd-ic{flex:0 0 26px;height:26px;border-radius:50%;display:grid;place-items:center;font-size:12px;font-weight:900}
.cd-item.cdk-yes .cd-ic{background:#e3f7ec;color:#16884c}.cd-item.cdk-no .cd-ic{background:#ffe6ec;color:#d8264b}.cd-item.cdk-neutral .cd-ic{background:#e6e6eb;color:#6b6b73}.cd-item.cdk-none .cd-ic{background:transparent;border:1.5px dashed #c5c5cc;color:#9a9aa2}
.cd-main{flex:1;min-width:0}
.cd-t{font-size:13px;font-weight:700;line-height:1.3}
.cd-item.cdk-none .cd-t{color:var(--muted);font-weight:600}
.cd-m{font-size:11px;color:var(--muted);margin-top:2px}
.cd-star{color:var(--accent);font-weight:800}
.cd-share{display:flex;flex:0 0 auto}
.cd-dot{display:grid;place-items:center;width:20px;height:20px;margin-left:-5px;border-radius:50%;border:2px solid var(--surface-2);color:#fff;font-size:8.5px;font-weight:850}
.cd-dot:first-child{margin-left:0}
.cd-dot.more{background:#9a9aa2}
/* Comparateur */
.cmp-pickers{display:flex;align-items:center;gap:8px;margin:12px 0}
.cmp-pickers select{flex:1;min-width:0;padding:9px 10px;border-radius:12px;border:1px solid var(--hairline);background:var(--surface);color:var(--text);font-weight:750;font-size:13.5px}
.cmp-vs{color:var(--muted);font-weight:800;font-size:12px}
.cmp-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.cmp-col.both{grid-column:1/-1}
.cmp-head{display:flex;justify-content:space-between;font-size:13px;font-weight:850}
.cmp-head b{color:var(--muted)}
.cmp-score{font-size:12px;color:var(--muted);margin-top:2px}
.cmp-empty{font-size:12.5px;color:var(--muted);padding:6px 0}
.compare-box .cd-list{max-height:300px}
/* Glossaire */
.gloss{border-bottom:1px dotted rgba(255,255,255,.55);cursor:help;position:relative;outline:none}
/* Sur la carte, un petit « ? » signale le terme expliqué */
.card .gloss::after{content:"?";display:inline-block;margin-left:3px;width:1.05em;height:1.05em;border-radius:50%;border:1px solid currentColor;font-size:.62em;font-weight:800;line-height:1;text-align:center;vertical-align:.5em;opacity:.7}
/* Bulle posée sur <body> en position fixe : jamais rognée par l'overflow de la carte, recalée dans l'écran */
.gloss-tip{position:fixed;left:0;top:0;max-width:min(280px,calc(100vw - 24px));padding:8px 10px;border-radius:10px;background:#fff;color:#111;font-size:12px;font-weight:500;line-height:1.4;box-shadow:0 8px 24px rgba(0,0,0,.3);z-index:10000;white-space:normal;pointer-events:none;opacity:0;transition:opacity .12s}
.gloss-tip.show{opacity:1}
/* Accessibilité */
:focus-visible{outline:2.5px solid var(--accent);outline-offset:2px}
.swipehint{color:#77777f}
@media (prefers-reduced-motion: reduce){
 *,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}
}
@media (max-width: 400px){
 #saveButton{display:none}
 .cmp-grid{grid-template-columns:1fr}
}
/* ===== Mode sombre ===== */
html.dark{--surface:#1b1b20;--surface-2:#24242b;--text:#f2f2f5;--muted:#a0a0aa;--hairline:#30303a;--accent:#6b93ff;--accent-soft:#1e2a4a;--bg:#0f0f12;--card:#1b1b20;--ink:#f2f2f5;--line:#2a2a31;color-scheme:dark}
html.dark,html.dark body{background:#0f0f12;color:#f2f2f5}
html.dark header{background:rgba(15,15,18,.94);border-bottom-color:#26262c}
html.dark .brand,html.dark .card h1,html.dark .statement{color:#f2f2f5}
html.dark .tabs{background:#24242a;box-shadow:none}
html.dark .tab{color:#a0a0aa}
html.dark .tab-indicator{background:#f2f2f5}
html.dark .tab.active{color:#111}
html.dark .mode-switch{background:#24242a}
html.dark .mode-btn{color:#a0a0aa}
html.dark .mode-btn.active{background:#f2f2f5;color:#111}
html.dark .save-btn{background:#1f1f25;color:#d0d0d6;box-shadow:none}
html.dark .card{background:#1b1b20;box-shadow:0 12px 35px rgba(0,0,0,.45)}
html.dark .kicker{color:#9a9aa3}
html.dark .question,html.dark .star{background:#2a2a31;color:#d0d0d6}
html.dark .star.on{background:var(--accent-soft)}
html.dark .swipehint{color:#8a8a92}
html.dark .action,html.dark .undo-action{background:#1f1f25;box-shadow:0 6px 20px rgba(0,0,0,.4)}
html.dark .neutral{color:#c0c0c8}
html.dark .note,html.dark .stats-description{color:#a0a0aa}
html.dark .statbox{background:#1b1b20;color:#f2f2f5;box-shadow:none;border:1px solid #26262c}
html.dark .statbox.hero{background:#2a2a35;border-color:#33333f}
html.dark .hero-decide{background:#f2f2f5}
html.dark .stat-mode{background:#24242a}
html.dark .stat-mode-btn{color:#a0a0aa}
html.dark .stat-mode-btn.active{background:#f2f2f5;color:#111}
html.dark .vote-bar,html.dark .answer-track,html.dark .theme-track,html.dark .bar{background:#2a2a31}
html.dark .theme-fill,html.dark .answer-fill{background:#d8d8de}
html.dark .answer-fill.yes{background:#25b96f}
html.dark .answer-fill.no{background:#ff3b5f}
html.dark .answer-fill.neutral{background:#8a8a94}
html.dark .confidence.high{background:#173826;color:#7fe0a8}
html.dark .confidence.mid{background:#3a2f12;color:#f3c56f}
html.dark .confidence.low{background:#2a2a31;color:#a0a0aa}
html.dark .heatmap th{color:#d0d0d6}
html.dark .heatmap tbody th,html.dark .heatmap thead th:first-child{background:#1b1b20}
html.dark .heatmap td{color:#f2f2f5;background:#24242b}
html.dark .heatmap td.hm-empty{color:#55555e}
html.dark .heatmap td.hm-mid{background:#34343d;color:#f2f2f5}
html.dark .cp-bg{fill:#202027;stroke:#30303a}
html.dark .cp-axis{stroke:#3a3a44}
html.dark .cp-label{fill:#e6e6ea;stroke:#1b1b20}
html.dark .eu-track{background:linear-gradient(90deg,#2b2440,#24242b 50%,#1f2b44)}
html.dark .eu-count.pro{background:#1c2540}
html.dark .eu-count.anti{background:#2a2040}
html.dark .eu-index-label{background:#1e2a4a;color:#9db4ff}
html.dark .eu-w.pro{background:#1e2a4a;color:#9db4ff}
html.dark .eu-w.anti{background:#2e2148;color:#cdb1ff}
html.dark .ad-title.yes{color:#7fe0a8}html.dark .ad-title.no{color:#ff8fa6}
html.dark .cd-tab.cdk-yes .cd-tab-ic,html.dark .cd-item.cdk-yes .cd-ic{background:#173826;color:#7fe0a8}
html.dark .cd-tab.cdk-no .cd-tab-ic,html.dark .cd-item.cdk-no .cd-ic{background:#3d1a24;color:#ff8fa6}
html.dark .cd-tab.cdk-neutral .cd-tab-ic,html.dark .cd-item.cdk-neutral .cd-ic{background:#2f2f37;color:#c0c0c8}
html.dark .cd-item.cdk-none .cd-ic{border-color:#4a4a54}
html.dark .rank{background:#f2f2f5;color:#111}
html.dark .lock-card{background:#1b1b20;color:#f2f2f5}
html.dark .lock-card p{color:#a0a0aa}
html.dark .stats-lock{background:#0f0f12}
html.dark .lock-card{background:#1b1b20;border:1px solid #26262c;box-shadow:0 16px 50px rgba(0,0,0,.5)}
html.dark .lock-progress{background:#2a2a31}
html.dark .lock-progress-fill{background:#f2f2f5}
html.dark .lock-count{color:#a0a0aa}
html.dark .reset-dialog{background:#1b1b20;color:#f2f2f5}
html.dark .reset-cancel{background:#2a2a31;color:#f2f2f5}
html.dark .mode-banner{color:#c7d4ff}
html.dark .reset{background:#f2f2f5;color:#111}
html.dark .save-toast{background:#f2f2f5;color:#111}
html.dark .gloss-tip{background:#f2f2f5;color:#111}
html.dark .chip-btn.active{color:#0f0f12}
html.dark .pill-btn.primary{color:#111}

.mode-btn svg{width:17px;height:17px;display:block;margin:auto;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linejoin:round;stroke-linecap:round}
.mode-btn.active svg{fill:currentColor}
.mode-banner{flex-wrap:nowrap;height:34px;padding:0 6px 0 12px;margin-bottom:6px}
.banner-text{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.banner-btn{flex:0 0 auto;padding:5px 10px;border-radius:999px;background:var(--surface)}
html.dark .banner-btn{background:#2a3456}
#play:has(#modeBanner:not([hidden])) .deck{height:calc(100% - 164px);flex-basis:calc(100% - 164px)}
@media (min-width:700px) and (max-width:1100px){#play:has(#modeBanner:not([hidden])) .deck{height:calc(100% - 182px);flex-basis:calc(100% - 182px)}}
@media (max-height:700px){#play:has(#modeBanner:not([hidden])) .deck{height:calc(100% - 152px);flex-basis:calc(100% - 152px)}}
.star-action{position:absolute;right:0;width:50px;height:50px;border-radius:50%;border:0;background:#fff;box-shadow:0 7px 20px rgba(0,0,0,.10);display:flex;align-items:center;justify-content:center;padding:0;margin:0;cursor:pointer;transition:transform .15s ease,background .15s ease,box-shadow .15s ease}
.star-action svg{width:24px;height:24px;fill:none;stroke:var(--accent);stroke-width:1.9;stroke-linejoin:round;transition:fill .18s}
.star-action:hover{transform:scale(1.08);background:var(--accent-soft)}
.star-action:active{background:var(--accent)}
.star-action:active svg{fill:#fff;stroke:#fff}
.star-action:disabled{opacity:.25;cursor:default;transform:none;box-shadow:none}
.star-action.pop{animation:questionPop .42s cubic-bezier(.2,.9,.2,1)}
@media (min-width:700px) and (max-width:1100px){.star-action{right:8px;width:52px;height:52px}}
@media (max-width:699px){.star-action{right:10px;width:50px;height:50px}}
@media (max-height:700px){.star-action{right:8px;width:48px;height:48px}}
@media (max-width:440px){.star-action{position:static;flex:0 0 auto;width:44px;height:44px;right:auto}}
@media (max-width:340px){.star-action{width:40px;height:40px}.star-action svg{width:20px;height:20px}}
html.dark .star-action{background:#1f1f25;box-shadow:0 6px 20px rgba(0,0,0,.4)}

.vote-ripple.super{color:var(--accent)}
.rt-super{background:rgba(79,124,255,.25);color:#a9c0ff}
.vote-actions .star-action{position:static;right:auto;flex:0 0 auto}
/* Super like */
.action.superlike svg{fill:var(--accent)!important;stroke:var(--accent)!important;stroke-width:1.2!important;stroke-linejoin:round!important;width:34px!important;height:34px!important;flex:0 0 34px!important}
.action.superlike:disabled{opacity:.3;cursor:default}
.action.superlike.pressed{animation:superPress .55s cubic-bezier(.2,.9,.2,1)}
@keyframes superPress{0%{transform:scale(1)}30%{transform:scale(1.22) rotate(-12deg);background:var(--accent-soft)}60%{transform:scale(.94) rotate(6deg)}100%{transform:scale(1) rotate(0)}}
.card.vote-super{box-shadow:0 0 0 3px var(--accent),0 24px 70px rgba(47,107,255,.45)!important}
.vote-flash.super{animation-name:edgeSuper}
@keyframes edgeSuper{
  0%{opacity:0;box-shadow:inset 0 0 0 0 rgba(47,107,255,0)}
  25%{opacity:1;box-shadow:inset 0 0 0 14px rgba(47,107,255,.45),inset 0 0 120px rgba(47,107,255,.2)}
  100%{opacity:0;box-shadow:inset 0 0 0 30px rgba(47,107,255,0),inset 0 0 160px rgba(47,107,255,0)}
}
.vote-ripple.super .ripple-symbol{font-size:clamp(84px,15vw,150px);text-shadow:0 10px 40px rgba(47,107,255,.45)}
.super-burst{position:fixed;left:50%;top:46%;width:0;height:0;z-index:920;pointer-events:none}
.burst-star{position:absolute;left:0;top:0;color:var(--accent);font-size:26px;line-height:1;opacity:0;animation:burstOut .85s cubic-bezier(.15,.8,.25,1) forwards;text-shadow:0 4px 14px rgba(47,107,255,.35)}
@keyframes burstOut{
  0%{transform:translate(-50%,-50%) scale(.2) rotate(0);opacity:0}
  15%{opacity:1}
  100%{transform:translate(calc(-50% + var(--dx)),calc(-50% + var(--dy))) scale(var(--s)) rotate(var(--r));opacity:0}
}
@media (max-width:340px){.action{width:48px;height:48px}.action svg{width:32px!important;height:32px!important;flex-basis:32px!important}.action.superlike svg{width:28px!important;height:28px!important;flex-basis:28px!important}}
.reveal-toast{width:max-content;white-space:normal}
.rt-text{min-width:0}
.reset-modal{z-index:1300}
.danger-btn{color:#d8264b;border-color:#f3c3cf}
.danger-btn:hover{background:#fff1f4}
html.dark .danger-btn{color:#ff8fa6;border-color:#4a2530}
html.dark .danger-btn:hover{background:#2a1820}
.save-list{display:grid;gap:8px}
.save-item{display:flex;align-items:center;gap:12px;width:100%;text-align:left;border:1px solid var(--hairline);background:var(--surface);color:var(--text);border-radius:16px;padding:12px 14px;cursor:pointer;transition:background .15s,transform .15s}
.save-item:hover{background:var(--surface-2)}
.save-item:active{transform:scale(.985)}
.si-ic{flex:0 0 38px;height:38px;border-radius:12px;background:var(--accent-soft);display:grid;place-items:center}
.si-ic svg{width:20px;height:20px;fill:none;stroke:var(--accent);stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.si-txt{display:flex;flex-direction:column;gap:2px;min-width:0}
.si-txt b{font-size:14px}
.si-txt small{font-size:12px;color:var(--muted);line-height:1.35}
/* Petits écrans : le bouton Partager reste visible, les modes passent dans les réglages */
@media (max-width:400px){#saveButton{display:flex}.mode-switch{display:none}}
.seg{position:relative;gap:0!important}
.seg-indicator{position:absolute;top:3px;bottom:3px;left:3px;border-radius:9px;background:var(--text);box-shadow:0 2px 7px rgba(0,0,0,.16);transition:transform .42s cubic-bezier(.22,.8,.22,1),opacity .2s;pointer-events:none;z-index:0}
.seg button{position:relative;z-index:1;transition:color .25s ease}
.seg button.active{background:transparent!important;color:var(--surface)}
#saveButton::before{display:none}
@media (max-width:400px){#settingsButton::before{display:none}}
.swipe-feedback.super .feedback-icon{color:var(--accent)}
/* Bouton de réinitialisation : poubelle qui déroule son libellé */
.trash-btn{display:inline-flex;align-items:center;height:46px;padding:4px;border-radius:999px;border:1px solid #f6c9d4;background:linear-gradient(180deg,#fff7f9,#ffeef2);color:#c81e45;cursor:pointer;box-shadow:0 4px 14px rgba(216,38,75,.12);transition:box-shadow .2s ease,transform .15s ease,background .2s ease}
.trash-btn:hover{box-shadow:0 6px 20px rgba(216,38,75,.22)}
.trash-btn:active{transform:scale(.97)}
.trash-ic{position:relative;flex:0 0 38px;width:38px;height:38px;border-radius:50%;background:linear-gradient(180deg,#f0476c,#d8264b);display:grid;place-items:center;box-shadow:0 3px 10px rgba(216,38,75,.35);transition:transform .35s cubic-bezier(.2,.9,.2,1)}
.trash-ic svg{width:20px;height:20px;fill:none;stroke:#fff;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;overflow:visible}
.trash-lid{transform-origin:18px 7px;transition:transform .3s cubic-bezier(.2,.9,.2,1)}
.trash-btn.unrolled .trash-lid,.trash-btn:focus-visible .trash-lid{transform:translate(1px,-2px) rotate(16deg)}
.trash-btn:focus-visible .trash-ic{transform:rotate(-6deg)}
.trash-label{display:grid;grid-template-columns:0fr;transition:grid-template-columns .7s cubic-bezier(.22,.8,.22,1)}
.trash-label>span{overflow:hidden;white-space:nowrap;font-weight:800;font-size:13.5px;letter-spacing:-.1px;padding:0;opacity:0;clip-path:inset(0 100% 0 0);transform:translateX(-8px);transition:clip-path .7s cubic-bezier(.22,.8,.22,1),opacity .35s ease,transform .7s cubic-bezier(.22,.8,.22,1),padding .7s cubic-bezier(.22,.8,.22,1)}
.trash-btn.unrolled .trash-label,.trash-btn:focus-visible .trash-label{grid-template-columns:1fr}
.trash-btn.unrolled .trash-label>span,.trash-btn:focus-visible .trash-label>span{opacity:1;clip-path:inset(0 0 0 0);transform:translateX(0);padding:0 16px 0 12px}
html.dark .trash-btn{background:linear-gradient(180deg,#2a1820,#24141b);border-color:#4a2530;color:#ff8fa6;box-shadow:none}
.sheet{transition:transform .34s cubic-bezier(.32,.72,0,1)}
.sheet:not(.open){transition:transform .3s cubic-bezier(.4,0,.8,.4)}
.sheet-backdrop{transition:opacity .3s ease}
@media (hover:hover){
 .trash-btn:hover .trash-label{grid-template-columns:1fr}
 .trash-btn:hover .trash-label>span{opacity:1;clip-path:inset(0 0 0 0);transform:translateX(0);padding:0 16px 0 12px}
 .trash-btn:hover .trash-lid{transform:translate(1px,-2px) rotate(16deg)}
 .trash-btn:hover .trash-ic{transform:rotate(-6deg)}
}
.trash-btn.unrolled .trash-lid{transition-delay:.15s}
.set-danger{display:flex;flex-direction:column;align-items:center;gap:10px;margin-top:6px;padding:20px 0 6px;border-top:1px solid var(--hairline);text-align:center}
.set-danger .set-hint{margin:0;max-width:340px}

/* Popup d’information en thème clair (le thème sombre garde le style d’origine) */
html:not(.dark) .info{background:rgba(255,255,255,.985);color:#111;border-color:rgba(0,0,0,.07);box-shadow:0 24px 70px rgba(0,0,0,.18),0 2px 8px rgba(0,0,0,.06)}
html:not(.dark) .info-handle span{background:rgba(0,0,0,.18)}
html:not(.dark) .info-handle:hover span,html:not(.dark) .info.collapsed .info-handle span{background:rgba(0,0,0,.32)}
html:not(.dark) .info h3{color:#6b6b73}
html:not(.dark) .info p,html:not(.dark) .info-section p,html:not(.dark) .info-mini p,html:not(.dark) .info-risks{color:#1d1d22}
html:not(.dark) .info a{color:#1660d6}
html:not(.dark) .close{background:rgba(0,0,0,.06);color:#111}
html:not(.dark) .close:hover{background:rgba(0,0,0,.11)}
html:not(.dark) .info-label{color:#7a7a84}
html:not(.dark) .info-mini{background:#f6f6f8;border-color:rgba(0,0,0,.05)}
html:not(.dark) .info-mini.positive{background:rgba(40,199,111,.08);border-color:rgba(40,199,111,.2)}
html:not(.dark) .info-mini.caution{background:rgba(255,176,32,.1);border-color:rgba(255,176,32,.24)}
html:not(.dark) .info-mini.positive .info-label{color:#178a4c}
html:not(.dark) .info-mini.caution .info-label{color:#a46a00}
html:not(.dark) .objective-section{background:rgba(22,119,255,.07);border-color:rgba(22,119,255,.16)}
html:not(.dark) .objective-section .info-label{color:#1660d6}
html:not(.dark) .info-now{background:rgba(0,0,0,.035);border-left-color:rgba(0,0,0,.16)}
html:not(.dark) .info-sublabel{color:#55555e}
html:not(.dark) .info-statement{color:#55555e!important}
html:not(.dark) .chip{background:rgba(0,0,0,.06);color:#3a3a42}
html:not(.dark) .chip-old{background:rgba(255,176,32,.18);color:#8a5a00}
html:not(.dark) .verdict-ok{background:rgba(40,199,111,.14);color:#147a42}
html:not(.dark) .verdict-nu{background:rgba(255,176,32,.18);color:#8a5a00}
html:not(.dark) .verdict-est{background:rgba(22,119,255,.12);color:#1255c2}
html:not(.dark) .verdict-vague{background:rgba(0,0,0,.07);color:#4a4a52}
html:not(.dark) .verdict-fix{background:rgba(175,82,222,.14);color:#7d2fa8}
html:not(.dark) .verdict-help{color:#6b6b73!important}
html:not(.dark) .info .source{border-top-color:rgba(0,0,0,.08);color:#6b6b73}
html:not(.dark) .info .source .source-link{color:#1660d6}
html:not(.dark) .source-type{background:rgba(0,0,0,.06);color:#4a4a52}
html:not(.dark) .gloss{border-bottom-color:rgba(0,0,0,.45)}
html:not(.dark) .gloss-tip{background:#111;color:#fff}
/* Signaler une erreur */
.info .report-link{display:inline-flex;align-items:center;gap:7px;margin-top:14px;padding:7px 12px;border-radius:999px;font-size:12px;font-weight:750;text-decoration:none;color:#c9c9d1;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.08);transition:background .15s,color .15s}
.report-link svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.info .report-link:hover{background:rgba(255,92,92,.16);color:#ff9a9a}
html:not(.dark) .info .report-link{color:#55555e;background:rgba(0,0,0,.04);border-color:rgba(0,0,0,.07)}
html:not(.dark) .info .report-link:hover{background:rgba(255,55,95,.09);color:#d1173f}
.info.collapsed .report-link{display:none}
.report-id{font-weight:600;opacity:.65;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:10.5px}
/* Comparer avec des amis */
.friends-box .fr-form{display:flex;gap:8px;margin-top:10px;flex-wrap:wrap}
.fr-form input{flex:1 1 180px;min-width:0;border:1px solid var(--hairline);background:var(--surface-2);color:var(--text);border-radius:999px;padding:9px 14px;font-size:13.5px;font-family:inherit;outline:none}
.fr-form input:focus{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}
.fr-empty{margin:14px 0 2px;font-size:13px;color:var(--muted)}
.fr-layout{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;margin-top:14px}
.fr-compass{max-width:300px;width:100%;margin:2px auto 0;display:block}
.fr-compass .fc-bg{fill:var(--surface-2);stroke:var(--hairline)}
.fr-compass .fc-axis{stroke:var(--hairline);stroke-width:1}
.fr-compass .fc-pole{font-size:8.5px;fill:var(--muted);font-weight:700}
.fr-compass .fc-name{font-size:9.5px;font-weight:800;paint-order:stroke;stroke:var(--surface);stroke-width:3px}
.fr-card{border:1px solid var(--hairline);border-radius:18px;padding:13px 14px;background:var(--surface);min-width:0}
.fr-head{display:flex;align-items:center;gap:10px}
.fr-avatar{flex:0 0 36px;height:36px;border-radius:50%;display:grid;place-items:center;color:#fff;font-weight:850;font-size:14px;background:var(--fc)}
.fr-id{flex:1;min-width:0;display:flex;flex-direction:column}
.fr-id b{font-size:15px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fr-id span{font-size:11.5px;color:var(--muted)}
.fr-score{text-align:right;line-height:1.05}
.fr-score b{font-size:22px;letter-spacing:-.5px}
.fr-score span{display:block;font-size:10.5px;color:var(--muted);font-weight:700}
.fr-del{flex:0 0 28px;height:28px;border-radius:50%;border:0;background:var(--surface-2);color:var(--muted);font-size:16px;cursor:pointer}
.fr-del:hover{color:#d1173f}
.fr-bar{display:flex;height:8px;border-radius:99px;overflow:hidden;margin:12px 0 6px;background:var(--surface-2)}
.fr-bar span{display:block;height:100%}
.fr-bar .s{background:#28c76f}.fr-bar .m{background:#c4c4cc}.fr-bar .o{background:#ff375f}
.fr-legend{font-size:11.5px;color:var(--muted)}
.fr-legend i{display:inline-block;width:8px;height:8px;border-radius:50%;margin:0 4px 0 8px;vertical-align:0}
.fr-legend i:first-child{margin-left:0}
.fr-tops{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:10px}
.fr-tops div{background:var(--surface-2);border-radius:12px;padding:8px 10px;min-width:0}
.fr-tops span{display:block;font-size:10px;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);font-weight:800}
.fr-tops b{font-size:13.5px;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fr-themes{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
.fr-chip{font-size:11.5px;font-weight:700;padding:4px 9px;border-radius:999px}
.fr-chip.up{background:rgba(40,199,111,.12);color:#178a4c}
.fr-chip.down{background:rgba(255,55,95,.1);color:#c8143c}
html.dark .fr-chip.up{color:#7fe0a8}html.dark .fr-chip.down{color:#ff8fa6}
.fr-card details{margin-top:10px}
.fr-card summary{cursor:pointer;font-size:13px;font-weight:750}
.fr-list{list-style:none;margin:8px 0 0;padding:0;display:flex;flex-direction:column;gap:6px}
.fr-list li{font-size:12.5px;line-height:1.4;padding:8px 10px;border-radius:12px;background:var(--surface-2)}
.fr-list li small{display:block;color:var(--muted);font-size:11px;margin-top:2px}
.fr-list .fr-star{color:var(--accent);font-weight:800}
@media (min-width:760px){.fr-layout.has-compass{grid-template-columns:260px minmax(0,1fr);align-items:start}}

/* Feuille « Mes réponses » */
.sv-status{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:14px;background:var(--surface-2);font-size:13px;line-height:1.35;color:var(--text);margin:2px 0 16px}
.sv-status svg{flex:0 0 22px;height:22px;fill:none;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.sv-status.ok svg{stroke:#28c76f}.sv-status.empty svg{stroke:var(--muted)}
.sv-status small{display:block;color:var(--muted);font-size:11.5px}
.sv-label{font-size:10.5px;font-weight:850;letter-spacing:.12em;text-transform:uppercase;color:var(--muted);margin:0 2px 8px}
.sv-tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.sv-tile{display:flex;flex-direction:column;align-items:center;gap:2px;padding:14px 6px 12px;border-radius:18px;border:1px solid var(--hairline);background:var(--surface);color:var(--text);cursor:pointer;font-family:inherit;transition:background .15s,transform .15s,border-color .15s}
.sv-tile svg{width:24px;height:24px;margin-bottom:6px;fill:none;stroke:var(--accent);stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.sv-tile b{font-size:14px}
.sv-tile small{font-size:11.5px;color:var(--muted)}
.sv-tile:hover{background:var(--surface-2)}
.sv-tile:active,.sv-btn:active{transform:scale(.97)}
.sv-tile.primary{background:var(--accent);border-color:var(--accent);color:#fff}
.sv-tile.primary svg{stroke:#fff}
.sv-tile.primary small{color:rgba(255,255,255,.8)}
.sv-tile.primary:hover{filter:brightness(1.06)}
.sv-hint{font-size:11.5px;color:var(--muted);margin:8px 2px 18px;line-height:1.4}
.sv-row{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.sv-btn{display:flex;align-items:center;justify-content:center;gap:7px;padding:10px;border-radius:999px;border:1px solid var(--hairline);background:transparent;color:var(--text);font-size:13px;font-weight:750;font-family:inherit;cursor:pointer;transition:background .15s,transform .15s}
.sv-btn svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.sv-btn:hover{background:var(--surface-2)}
/* Retour visuel après Partager / Copier : le bouton passe au vert le temps de lire « Lien copié ». */
.sv-btn.is-done,.sv-btn.is-done:hover{background:#28c76f;border-color:transparent;color:#fff;animation:sv-done .32s cubic-bezier(.23,1,.32,1)}
@keyframes sv-done{0%{transform:scale(.94)}60%{transform:scale(1.03)}100%{transform:scale(1)}}
@media (prefers-reduced-motion:reduce){.sv-btn.is-done{animation:none}}
.sv-tile:disabled,.sv-btn:disabled{opacity:.4;cursor:not-allowed;transform:none}
.sv-tile:focus-visible,.sv-btn:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.set-credit{margin:18px 0 2px;text-align:center;font-size:11.5px;color:var(--muted);letter-spacing:.01em}
.set-credit a{color:var(--text);font-weight:750;text-decoration:none;border-bottom:1px solid var(--hairline);transition:border-color .15s,color .15s}
.set-credit a:hover{color:var(--accent);border-bottom-color:var(--accent)}
.brand{margin:0;line-height:1.2}
.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* ---------- Trois onglets : Swipe, Stats, Profil ---------- */
.tabs{grid-template-columns:repeat(3,1fr)}
.tab-indicator{width:calc((100% - 8px) / 3)}
.tabs.stats-active .tab-indicator{transform:translateX(100%)}
.tabs.profile-active .tab-indicator{transform:translateX(200%)}
#profile{position:absolute;inset:10px 12px 8px;min-height:0;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:10px 0 28px;opacity:0;transform:translateX(28px) scale(.985);pointer-events:none;transition:opacity .28s ease,transform .28s cubic-bezier(.2,.8,.2,1);z-index:1}
#profile.panel-in{opacity:1;transform:translateX(0) scale(1);pointer-events:auto;z-index:3}
/* La zone qui défile a la largeur du contenu : sa barre de défilement le longe au lieu de flotter
   au bord de l’écran, à plusieurs centaines de pixels des cartes. */
#profile{left:var(--bleed);right:var(--bleed);overflow-x:hidden;padding-left:max(calc(var(--gap-out) + 20px),calc((100vw - 612px) / 2));padding-right:max(calc(var(--gap-out) + 20px),calc((100vw - 612px) / 2))}
#profile .pf-root{width:100%}
#stats:not(.panel-in){visibility:visible}

/* ---------- Bandeau du parcours (au-dessus de la carte) ---------- */
.mode-banner{padding:0;background:transparent;height:auto;margin-bottom:8px}
.mode-banner .banner-text{font-size:12.5px}
.mode-banner>.banner-text{padding-left:12px}
.mode-banner:has(>.banner-text){height:36px;background:var(--accent-soft);padding-right:6px}
.pb-main{display:flex;align-items:center;gap:9px;width:100%;height:38px;padding:0 6px 0 6px;border:1px solid var(--hairline);border-radius:14px;background:var(--surface);color:var(--text);font:inherit;cursor:pointer;text-align:left;box-shadow:0 3px 12px rgba(0,0,0,.04);transition:border-color .18s,box-shadow .18s,transform .15s}
.pb-main:hover{border-color:var(--accent);box-shadow:0 4px 16px rgba(47,107,255,.14)}
.pb-main:active{transform:scale(.99)}
.pb-ic{flex:0 0 28px;width:28px;height:28px;border-radius:9px;display:grid;place-items:center;background:var(--accent-soft);color:var(--accent)}
.pb-ic.pb-quick{background:rgba(255,176,32,.16);color:#d48700}
.pb-ic.pb-long{background:rgba(155,92,255,.14);color:#7c3aed}
.pb-ic.pb-complete{background:rgba(40,199,111,.14);color:#159a55}
.pb-ic svg,.pc-ic svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.pb-quick svg,.pc-len[data-set-mode="quick"] .pc-ic svg{fill:currentColor;stroke-width:1.2}
.pb-main .banner-text{flex:1;min-width:0;color:var(--muted)}
.pb-main .banner-text b{color:var(--text)}
.pb-edit{flex:0 0 auto;padding:6px 11px;border-radius:999px;background:var(--text);color:var(--surface);font-size:12px;font-weight:800}
html.dark .pb-main{background:#1b1b20;box-shadow:none}
html.dark .pb-ic.pb-quick{color:#ffc14d}
html.dark .pb-ic.pb-long{color:#c4a1ff}
html.dark .pb-ic.pb-complete{color:#5fe39a}
#play:has(#modeBanner:not([hidden])) .deck{height:calc(100% - 168px);flex-basis:calc(100% - 168px)}

/* ---------- Feuille « Votre parcours » ---------- */
.pc-lead{margin:-2px 0 14px;color:var(--muted);font-size:13.5px;line-height:1.45}
/* Étapes du choix de parcours : trois traits qui se remplissent, l’étape glisse dans le sens de la marche. */
.pc-steps{list-style:none;margin:-2px 0 16px;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.pc-steps li{display:grid;gap:6px;font-size:11.5px;font-weight:750;color:var(--muted);transition:color .25s ease}
.pc-steps li::before{content:"";height:4px;border-radius:99px;background:var(--hairline);transition:background .3s ease}
.pc-steps li.on,.pc-steps li.done{color:var(--text)}
.pc-steps li.on::before,.pc-steps li.done::before{background:var(--accent)}
.pc-step[hidden]{display:none}
.pc-step.pc-in-f{animation:pcInF .26s cubic-bezier(.23,1,.32,1)}
.pc-step.pc-in-b{animation:pcInB .26s cubic-bezier(.23,1,.32,1)}
@keyframes pcInF{from{opacity:0;transform:translateX(18px)}}
@keyframes pcInB{from{opacity:0;transform:translateX(-18px)}}
@media (prefers-reduced-motion:reduce){.pc-step.pc-in-f,.pc-step.pc-in-b{animation:none}}
#parcoursSheet .pc-reset{display:block;margin:10px auto 0}
#parcoursSheet .pc-reset[hidden]{display:none}
.pc-foot .pill-btn[hidden],.pc-foot span[hidden]{display:none}
.pc-foot #pcNext{margin-left:auto}
.pc-recap{display:flex;align-items:center;gap:12px;padding:12px 14px;border:1.5px solid var(--hairline);border-radius:18px;margin-bottom:8px}
.pc-recap>span:nth-child(2){display:grid;gap:2px;min-width:0;flex:1}
.pc-recap b{font-size:14.5px;line-height:1.3}
.pc-recap small{font-size:12.5px;color:var(--muted);line-height:1.35}
.pc-edit{flex:0 0 auto;border:0;background:transparent;color:var(--accent);font:inherit;font-size:13px;font-weight:750;cursor:pointer;padding:6px 4px}
.pc-glabel{margin:18px 2px 8px;font-size:10.5px;font-weight:850;letter-spacing:.12em;text-transform:uppercase;color:var(--muted)}
.pc-gestures{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.pc-g{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:14px;background:var(--surface-2);font-size:13.5px;font-weight:750}
.pc-g i{width:30px;height:30px;flex:0 0 30px;border-radius:50%;display:grid;place-items:center;font-style:normal;font-weight:800;color:#fff;background:var(--c)}
.pc-g-yes{--c:#28c76f}.pc-g-no{--c:#ff375f}.pc-g-super{--c:#2f6bff}.pc-g-neutral{--c:#8a8a94}
.pc-extras{display:grid;gap:10px;margin-top:16px}
.pc-x{display:flex;align-items:center;gap:12px;padding:14px;border-radius:18px;background:var(--surface-2);border:1.5px solid transparent;cursor:pointer}
.pc-x-baro{background:color-mix(in srgb,var(--accent) 12%,var(--surface-2));border-color:color-mix(in srgb,var(--accent) 45%,transparent)}
.pc-x-ic{flex:0 0 38px;width:38px;height:38px;display:grid;place-items:center;border-radius:12px;background:var(--accent);color:#fff}
.pc-x-ic svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.pc-x-acct .pc-x-ic{background:var(--surface);color:var(--text)}
.pc-x-acct{cursor:default}
.pc-x-t{flex:1;min-width:0;display:grid;gap:2px}.pc-x-t b{font-size:15px}.pc-x-t small{font-size:12.5px;line-height:1.4;color:var(--muted)}
.pc-gnote{margin:10px 2px 0;font-size:12.5px;line-height:1.45;color:var(--muted)}
.pc-lengths{display:grid;gap:8px}
.pc-len{display:flex;align-items:center;gap:12px;width:100%;padding:12px 14px;border:1.5px solid var(--hairline);border-radius:18px;background:var(--surface);color:var(--text);font:inherit;text-align:left;cursor:pointer;transition:border-color .18s,background .18s,transform .15s,box-shadow .18s}
.pc-len:hover{background:var(--surface-2)}
.pc-len:active{transform:scale(.985)}
.pc-len.active{border-color:var(--accent);background:var(--accent-soft);box-shadow:0 6px 20px rgba(47,107,255,.14)}
.pc-ic{flex:0 0 40px;height:40px;border-radius:13px;display:grid;place-items:center;background:var(--surface-2);color:var(--accent)}
.pc-len.active .pc-ic{background:var(--accent);color:#fff}
.pc-ic svg{width:21px;height:21px}
.pc-txt{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}
.pc-txt b{font-size:15.5px;display:flex;align-items:center;gap:8px}
.pc-txt em{font-style:normal;font-size:10px;font-weight:850;letter-spacing:.06em;text-transform:uppercase;padding:3px 7px;border-radius:999px;background:var(--accent);color:#fff}
.pc-txt small{font-size:12.5px;color:var(--muted)}
.pc-txt .pc-desc{color:var(--text);opacity:.75}
.pc-rel{flex:0 0 auto;display:flex;align-items:flex-end;gap:3px;height:20px}
.pc-rel i{display:block;width:5px;border-radius:2px;background:var(--hairline)}
.pc-rel i:nth-child(1){height:7px}.pc-rel i:nth-child(2){height:11px}.pc-rel i:nth-child(3){height:15px}.pc-rel i:nth-child(4){height:19px}
.pc-rel i.on{background:var(--accent)}
.pc-order{margin-top:10px}
.pc-order[hidden]{display:none}
.pc-label{margin:20px 0 4px;display:flex;align-items:center;justify-content:space-between}
.pc-hint{margin:0 0 10px}
.pc-reset{border:0;background:transparent;color:var(--accent);font:inherit;font-size:12px;font-weight:800;cursor:pointer;text-transform:none;letter-spacing:0;padding:0}
.pc-reset[hidden]{display:none}
.pc-themes{display:flex;flex-direction:column;border:1px solid var(--hairline);border-radius:16px;overflow:hidden}
.pc-theme{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 8px 8px 12px;border-top:1px solid var(--hairline);transition:background-color .3s ease}
.pc-theme:first-child{border-top:0}
.pc-theme.pc-prio{background:var(--accent-soft)}
.pc-theme.pc-skip{background:rgba(255,55,95,.07)}
html.dark .pc-theme.pc-skip{background:rgba(255,95,125,.09)}
.pc-theme.pc-skip .pc-tname{color:var(--muted);text-decoration:line-through;text-decoration-color:var(--hairline)}
.pc-tname{min-width:0;font-size:13.5px;font-weight:700;line-height:1.25}
.pc-tname small{margin-left:6px;font-size:11.5px;font-weight:600;color:var(--muted)}
.pc-tri{position:relative;flex:0 0 auto;display:flex;gap:2px;padding:2px;border-radius:10px;background:var(--surface-2)}
.pc-tri button{position:relative;z-index:1;border:0;background:transparent;color:var(--muted);border-radius:8px;padding:6px 8px;font:inherit;font-size:11.5px;font-weight:750;cursor:pointer;white-space:nowrap;transition:color .25s ease,transform .16s cubic-bezier(.23,1,.32,1)}
.pc-tri button:active{transform:scale(.95)}
/* Pastille commune aux trois boutons : elle glisse sous le choix actif et prend sa couleur. */
.pc-tri-ind{position:absolute;top:2px;bottom:2px;left:0;width:0;border-radius:8px;background:var(--surface);box-shadow:0 1px 4px rgba(0,0,0,.1);pointer-events:none;transition:transform .38s cubic-bezier(.32,.72,0,1),width .38s cubic-bezier(.32,.72,0,1),background-color .25s ease}
.pc-tri[data-p="prio"] .pc-tri-ind{background:var(--accent);box-shadow:0 2px 8px rgba(47,107,255,.3)}
.pc-tri[data-p="skip"] .pc-tri-ind{background:#ffe3ea;box-shadow:none}
html.dark .pc-tri-ind{background:#33333d}
html.dark .pc-tri[data-p="prio"] .pc-tri-ind{background:var(--accent)}
html.dark .pc-tri[data-p="skip"] .pc-tri-ind{background:#3a1b25}
@media (prefers-reduced-motion:reduce){.pc-tri-ind{transition:background-color .2s ease}}
.pc-tri button.active{color:var(--text)}
.pc-tri button[data-theme-pref="prio"].active{color:#fff}
.pc-tri button[data-theme-pref="skip"].active{color:#c8143c}
html.dark .pc-tri button[data-theme-pref="skip"].active{color:#ff8fa6}
html.dark .pc-tri button[data-theme-pref="prio"].active{color:#fff}
/* z-index : les boutons des sélecteurs (.seg button, z-index 1) passaient devant le pied collant en défilant. */
.pc-foot{position:sticky;z-index:5;bottom:calc(-22px - env(safe-area-inset-bottom));display:flex;align-items:center;justify-content:space-between;gap:12px;margin:16px -20px calc(-22px - env(safe-area-inset-bottom));padding:12px 20px calc(14px + env(safe-area-inset-bottom));background:var(--surface);border-top:1px solid var(--hairline)}
.pc-foot span{font-size:12.5px;color:var(--muted);font-weight:650}
.pc-foot .pill-btn{padding:11px 20px;font-size:14px}
.set-link{display:flex;align-items:center;justify-content:space-between;width:100%;margin-top:10px;padding:10px 12px;border:1px solid var(--hairline);border-radius:12px;background:transparent;color:var(--text);font:inherit;font-size:13px;font-weight:700;cursor:pointer}
.set-link:hover{background:var(--surface-2)}
.set-link span{color:var(--muted);font-size:18px;line-height:1}
@media (max-width:400px){.pc-tri button{padding:6px 6px;font-size:11px}.pc-tname{font-size:12.5px}}

/* ---------- Onglet Profil ---------- */
.pf-root{width:min(100%,600px);margin:0 auto;display:flex;flex-direction:column;gap:14px}
.pf-hero{position:relative;overflow:hidden;border-radius:26px;padding:24px 22px 22px;color:#fff;background:radial-gradient(120% 140% at 100% 0%,rgba(255,255,255,.22) 0%,rgba(255,255,255,0) 45%),linear-gradient(135deg,#2f6bff 0%,#5a4bff 52%,#9b3cf0 100%);box-shadow:0 18px 40px rgba(47,107,255,.28)}
.pf-hero::after{content:"";position:absolute;right:-60px;bottom:-80px;width:220px;height:220px;border-radius:50%;background:rgba(255,255,255,.08);pointer-events:none}
.pf-hero h2{margin:4px 0 6px;font-size:25px;letter-spacing:-.6px;line-height:1.1}
.pf-hero p{margin:0;font-size:14px;line-height:1.5;color:rgba(255,255,255,.88);max-width:440px}
.pf-kicker{font-size:10.5px;font-weight:850;letter-spacing:.14em;text-transform:uppercase;color:rgba(255,255,255,.75)}
.pf-hero-art{width:52px;height:52px;border-radius:16px;display:grid;place-items:center;background:rgba(255,255,255,.18);margin-bottom:14px;backdrop-filter:blur(6px)}
.pf-hero-art svg{width:30px;height:30px;fill:none;stroke:#fff;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.pf-local{display:inline-block;margin-top:14px;padding:7px 12px;border-radius:999px;background:rgba(0,0,0,.18);font-size:12.5px;color:rgba(255,255,255,.92)}
.pf-member{display:flex;align-items:center;gap:16px}
.pf-avatar{flex:0 0 68px;height:68px;border-radius:50%;display:grid;place-items:center;font-size:25px;font-weight:850;letter-spacing:-.5px;background:rgba(255,255,255,.2);border:2px solid rgba(255,255,255,.55);box-shadow:0 8px 22px rgba(0,0,0,.18)}
.pf-id{min-width:0;position:relative;z-index:1}
.pf-mail{font-size:13.5px;color:rgba(255,255,255,.9);overflow:hidden;text-overflow:ellipsis}
.pf-since{margin-top:3px;font-size:12px;color:rgba(255,255,255,.72)}
.pf-card{display:flex;flex-direction:column;gap:12px}
.pf-card-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
.pf-card-head h3,.pf-card h3{margin:0;font-size:17px;letter-spacing:-.2px;display:flex;align-items:center;gap:8px}
.pf-card-head h3 svg,.pf-toggle-row b svg{width:19px;height:19px;fill:none;stroke:var(--accent);stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;flex:0 0 auto}
.pf-sub{font-size:12px;color:var(--muted);font-weight:650}
.pf-badge{flex:0 0 auto;font-size:11.5px;font-weight:800;padding:5px 10px;border-radius:999px;background:var(--surface-2);color:var(--muted)}
.pf-badge.ok{background:rgba(40,199,111,.14);color:#159a55}
.pf-badge.wait,.pf-badge.busy{background:var(--accent-soft);color:var(--accent)}
.pf-badge.err{background:rgba(255,55,95,.12);color:#c8143c}
html.dark .pf-badge.ok{color:#5fe39a}html.dark .pf-badge.err{color:#ff8fa6}
.pf-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.pf-stats div{display:flex;flex-direction:column;align-items:center;padding:12px 6px;border-radius:16px;background:var(--surface-2)}
.pf-stats b{font-size:24px;letter-spacing:-.8px;line-height:1.1}
.pf-stats span{font-size:11.5px;color:var(--muted);font-weight:650}
.pf-progress{height:8px;border-radius:99px;background:var(--surface-2);overflow:hidden}
.pf-progress span{display:block;height:100%;border-radius:99px;background:linear-gradient(90deg,#2f6bff,#9b3cf0);transition:width .5s cubic-bezier(.2,.8,.2,1)}
.pf-line{display:flex;align-items:center;gap:7px;margin:0;font-size:13px;color:var(--muted)}
.pf-line svg{width:17px;height:17px;fill:none;stroke:#28c76f;stroke-width:2.1;stroke-linecap:round;stroke-linejoin:round}
.pf-text{margin:0;font-size:14px;line-height:1.5;color:var(--text)}
.pf-err{margin:0;font-size:13px;color:#d8264b;line-height:1.4}
.pf-err:empty{display:none}
.pf-report{display:flex;flex-direction:column;align-items:flex-start;gap:8px;margin:0;padding:10px 12px;border-radius:12px;border:1px solid color-mix(in srgb,#d8264b 35%,transparent);background:color-mix(in srgb,#d8264b 7%,transparent);font-size:13px;line-height:1.45}
.pf-report p{margin:0}
.pf-report-btn{border:1px solid currentColor;background:transparent;color:inherit;font:inherit;font-size:13px;font-weight:750;border-radius:999px;padding:6px 14px;cursor:pointer}
.pf-report-btn:disabled{opacity:.55;cursor:default}
.pf-report [hidden]{display:none}
.pf-report .pf-field{width:100%}
.pf-report-msg{color:#d8264b}
html.dark .pf-report-msg{color:#ff8fa6}
html.dark .pf-err{color:#ff8fa6}
.pf-cta{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;padding:13px 18px;border:0;border-radius:14px;background:var(--text);color:var(--surface);font:inherit;font-size:15px;font-weight:800;text-decoration:none;cursor:pointer;transition:transform .15s,opacity .15s,box-shadow .18s}
.pf-cta:hover{box-shadow:0 8px 22px rgba(0,0,0,.16)}
.pf-cta:active{transform:scale(.985)}
.pf-cta:disabled{opacity:.45;cursor:default;transform:none;box-shadow:none}
.pf-cta.ghost{background:var(--surface-2);color:var(--text)}
.pf-cta svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.pf-link{align-self:center;border:0;background:transparent;color:var(--accent);font:inherit;font-size:13px;font-weight:750;cursor:pointer;text-decoration:none;padding:4px}
.pf-switch{margin-bottom:4px}
.pf-form{display:flex;flex-direction:column;gap:12px}
.pf-grid2{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.pf-field{display:flex;flex-direction:column;gap:5px;min-width:0}
.pf-field span{font-size:12px;font-weight:750;color:var(--muted)}
.pf-field input{width:100%;min-width:0;padding:12px 13px;border:1px solid var(--hairline);border-radius:12px;background:var(--surface-2);color:var(--text);font:inherit;font-size:16px;transition:border-color .15s,box-shadow .15s,background .15s}
.pf-field input:focus{outline:0;border-color:var(--accent);background:var(--surface);box-shadow:0 0 0 4px var(--accent-soft)}
.pf-disclaimer{display:flex;gap:11px;padding:13px 14px;border-radius:16px;background:var(--accent-soft);border:1px solid rgba(47,107,255,.18)}
.pf-disclaimer svg{flex:0 0 20px;width:20px;height:20px;margin-top:1px;fill:none;stroke:var(--accent);stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.pf-disclaimer b{font-size:13.5px}
.pf-disclaimer p{margin:3px 0 0;font-size:12.5px;line-height:1.5;color:var(--text);opacity:.85}
.pf-check{display:flex;gap:10px;align-items:flex-start;font-size:13px;line-height:1.45;cursor:pointer}
.pf-check input{flex:0 0 20px;width:20px;height:20px;margin:1px 0 0;accent-color:var(--accent);cursor:pointer}
.pf-check em{font-style:normal;font-size:11px;font-weight:750;color:var(--muted);margin-left:4px}
.pf-check small{display:block;color:var(--muted);font-size:12px;margin-top:2px}
.pf-check a,.pf-fine a{color:var(--accent)}
.pf-fine{margin:0;font-size:11.5px;line-height:1.5;color:var(--muted);text-align:center}
.pf-login{display:flex;flex-direction:column;gap:12px}
.pf-login p{margin:0;font-size:14px;line-height:1.5}
.pf-sent{display:flex;flex-direction:column;align-items:center;text-align:center;gap:10px;padding:8px 4px}
.pf-sent h3{margin:0;font-size:19px}
.pf-sent p{margin:0;font-size:13.5px;line-height:1.55;color:var(--muted)}
.pf-sent-ic{width:58px;height:58px;border-radius:50%;display:grid;place-items:center;background:var(--accent-soft);animation:pfPop .5s cubic-bezier(.2,.9,.2,1)}
.pf-sent-ic svg{width:28px;height:28px;fill:none;stroke:var(--accent);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
@keyframes pfPop{0%{transform:scale(.5);opacity:0}60%{transform:scale(1.08);opacity:1}100%{transform:scale(1)}}
.pf-perks{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.pf-perks div{display:flex;flex-direction:column;gap:3px;padding:14px 12px;border-radius:18px;background:var(--surface);border:1px solid var(--hairline)}
.pf-perks svg{width:22px;height:22px;margin-bottom:4px;fill:none;stroke:var(--accent);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.pf-perks b{font-size:13px}
.pf-perks span{font-size:11.5px;line-height:1.4;color:var(--muted)}
.pf-toggle-row{display:flex;align-items:center;justify-content:space-between;gap:14px;cursor:pointer}
.pf-toggle-row b{display:flex;align-items:center;gap:8px;font-size:14.5px}
.pf-notif .pf-toggle-row+.pf-toggle-row{margin-top:14px;padding-top:14px;border-top:1px solid var(--hairline)}
.pf-notif .pf-card-head{margin-bottom:12px}
.pf-notif-fine{margin:14px 0 0}
.pf-toggle-row small{display:block;margin-top:3px;font-size:12px;line-height:1.4;color:var(--muted)}
.pf-toggle{appearance:none;-webkit-appearance:none;flex:0 0 48px;width:48px;height:29px;margin:0;border-radius:999px;background:var(--hairline);position:relative;cursor:pointer;transition:background .22s}
.pf-toggle::before{content:"";position:absolute;top:3px;left:3px;width:23px;height:23px;border-radius:50%;background:#fff;box-shadow:0 2px 6px rgba(0,0,0,.2);transition:transform .25s cubic-bezier(.3,1.4,.5,1)}
.pf-toggle:checked{background:#28c76f}
.pf-toggle:checked::before{transform:translateX(19px)}
.pf-toggle:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.pf-toggle:disabled{opacity:.5}
.pf-top{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}
.pf-top li{display:grid;grid-template-columns:22px 36px minmax(0,auto) 1fr 44px;align-items:center;gap:10px}
.pf-rank{width:22px;height:22px;border-radius:50%;display:grid;place-items:center;background:var(--text);color:var(--surface);font-size:11.5px;font-weight:850}
.pf-top img{width:36px;height:36px;border-radius:50%;object-fit:cover;background:var(--surface-2)}
.pf-name{font-weight:750;font-size:14px;white-space:nowrap}
.pf-bar{height:8px;border-radius:99px;background:var(--surface-2);overflow:hidden}
.pf-bar i{display:block;height:100%;border-radius:99px}
.pf-top b{text-align:right;font-size:14px}
.pf-menu{gap:0;padding:6px}
.pf-row{display:flex;align-items:center;gap:12px;width:100%;padding:12px;border:0;border-radius:14px;background:transparent;color:var(--text);font:inherit;text-align:left;text-decoration:none;cursor:pointer;transition:background .15s}
.pf-row:hover{background:var(--surface-2)}
.pf-row svg{flex:0 0 22px;width:22px;height:22px;fill:none;stroke:var(--muted);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.pf-row span{flex:1;min-width:0;display:flex;flex-direction:column}
.pf-row b{font-size:14px}
.pf-row small{font-size:12px;color:var(--muted)}
.pf-row i{font-style:normal;font-size:20px;color:var(--muted)}
.pf-row.danger b,.pf-row.danger svg{color:#d8264b;stroke:#d8264b}
html.dark .pf-row.danger b{color:#ff8fa6}html.dark .pf-row.danger svg{stroke:#ff8fa6}
.pf-skeleton{display:flex;flex-direction:column;gap:14px}
.pf-skeleton div{height:110px;border-radius:22px;background:linear-gradient(90deg,var(--surface-2) 25%,var(--surface) 50%,var(--surface-2) 75%);background-size:200% 100%;animation:pfShimmer 1.2s linear infinite}
.pf-skeleton div:first-child{height:170px}
@keyframes pfShimmer{from{background-position:200% 0}to{background-position:-200% 0}}
@media (max-width:520px){
 .pf-perks{grid-template-columns:1fr}
 .pf-perks div{flex-direction:row;flex-wrap:wrap;align-items:center;column-gap:10px}
 .pf-perks svg{margin:0}
 .pf-perks span{flex-basis:100%}
 .pf-grid2{grid-template-columns:1fr}
 .pf-hero{padding:20px 18px}
 .pf-avatar{flex-basis:58px;height:58px;font-size:21px}
}
@media (prefers-reduced-motion:reduce){.pf-skeleton div,.pf-sent-ic{animation:none}}
.ax-break{container-type:inline-size;margin:26px auto 0;max-width:980px;padding:24px 26px 12px;border-radius:22px;background:var(--surface-2)}
.ax-head h3{margin:0 0 6px;font-size:17px;letter-spacing:-.2px}
.ax-head p{margin:0 0 20px;max-width:70ch;font-size:13px;line-height:1.6;color:var(--muted)}
.ax-head p b{color:var(--text)}
.ax-grid{display:flex;flex-direction:column}
.ax-row{display:grid;grid-template-columns:200px repeat(var(--n),minmax(0,1fr));column-gap:36px;align-items:center;padding:22px 0;border-top:1px solid var(--hairline)}
.ax-labels{border-top:0;padding:0 0 10px}
.ax-lab b{display:block;margin-bottom:3px;font-size:13px;font-weight:800}
.ax-lab span{display:flex;justify-content:space-between;gap:12px;font-size:11px;color:var(--muted)}
.ax-lab em{font-style:normal}
.ax-cand{display:flex;align-items:center;gap:8px;min-width:0}
.ax-cand b{font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ax-dot{flex:0 0 12px;width:12px;height:12px;border-radius:50%;box-shadow:0 0 0 2px var(--surface)}
.ax-pct{margin-left:auto;font-size:12.5px;font-weight:850;padding:3px 8px;border-radius:999px;background:var(--surface);font-variant-numeric:tabular-nums}
.ax-track{position:relative;display:flex;flex-direction:column;gap:9px;min-width:0}
.ax-name{display:none;font-size:12px;font-weight:800;color:var(--muted)}
.ax-rail{position:relative;display:block;height:20px}
.ax-rail::before{content:"";position:absolute;left:0;right:0;top:7px;height:2px;border-radius:2px;background:var(--hairline)}
.ax-mid{position:absolute;left:50%;top:3px;width:1px;height:10px;background:var(--hairline)}
.ax-gap{position:absolute;top:6px;height:4px;border-radius:4px;min-width:2px}
.g1{--g:#28c76f}.g2{--g:#94c11f}.g3{--g:#f59f00}.g4{--g:#f03e3e}
.ax-gap{background:var(--g)}
.ax-c,.ax-me{position:absolute;top:8px;width:12px;height:12px;margin:-6px 0 0 -6px;border-radius:50%;box-shadow:0 0 0 2px var(--surface-2)}
.ax-me{width:14px;height:14px;margin:-7px 0 0 -7px;background:var(--text);box-shadow:0 0 0 2px var(--surface-2),0 0 0 3.5px var(--text);z-index:1}
.ax-inline{position:relative;display:inline-block;top:1px;margin:0 2px;width:10px;height:10px;background:var(--muted)}
.ax-inline.ax-me{width:10px;height:10px;background:var(--text);box-shadow:none}
.ax-cap{font-size:12px;font-weight:750;color:var(--g)}
.ax-na .ax-cap{color:var(--muted);font-weight:600}
/* Mise en page selon la largeur de la boîte elle-même (elle peut être une demi-colonne) : trois pistes côte à côte seulement si elles tiennent. */
@container (max-width:700px){
 .ax-row{grid-template-columns:1fr;row-gap:16px;padding:20px 0}
 .ax-labels{display:none}
 .ax-track{display:grid;grid-template-columns:84px 1fr 92px;align-items:center;column-gap:14px}
 .ax-name{display:block}
 .ax-cap{text-align:right}
}
@container (max-width:420px){
 .ax-track{grid-template-columns:1fr 92px;row-gap:6px}
 .ax-track .ax-name{grid-column:1/-1}
}
@media (max-width:640px){.ax-break{padding:18px 16px 6px}}
.stat-mode{position:relative}
.stat-mode-ind{position:absolute;top:3px;bottom:3px;left:3px;width:calc((100% - 12px) / 3);border-radius:9px;background:#111;box-shadow:0 2px 7px rgba(0,0,0,.16);transform:translateX(calc(var(--i,0) * (100% + 3px)));transition:transform .42s cubic-bezier(.22,.8,.22,1);pointer-events:none;z-index:0}
.stat-mode-btn{position:relative;z-index:1;transition:color .25s ease}
.stat-mode-btn.active{background:transparent;color:#fff}
html.dark .stat-mode-ind{background:#f2f2f5}
html.dark .stat-mode-btn.active{background:transparent;color:#111}
html.pp-restoring .tab-indicator,html.pp-restoring .stat-mode-ind,html.pp-restoring #play,html.pp-restoring #stats,html.pp-restoring #profile{transition:none!important}
@media (prefers-reduced-motion:reduce){.stat-mode-ind{transition:none}}
/* Texte du mode de calcul (Stats) */
.stat-mode-desc{margin:12px 0 0;max-width:640px;font-size:14.5px;line-height:1.55;color:var(--text);overflow:hidden}
.stat-mode-desc b{font-weight:800}
.stat-mode-desc .smd-star{color:var(--accent);font-weight:800}
.stat-mode-desc small{display:block;margin-top:6px;font-size:12px;color:var(--muted)}
.smd-link{border:0;background:transparent;padding:0;color:var(--accent);font:inherit;font-weight:750;cursor:pointer;text-decoration:underline;text-underline-offset:2px}
/* Feuilles rétractables */
.sheet-handle{position:sticky;top:-18px;z-index:5;display:flex;align-items:center;justify-content:center;width:calc(100% + 40px);height:26px;margin:-18px -20px 4px;padding:0;border:0;background:var(--surface);cursor:grab;touch-action:none;border-radius:24px 24px 0 0}
.sheet-handle span{display:block;width:42px;height:5px;border-radius:99px;background:var(--hairline);transition:width .18s ease,background .18s ease}
.sheet-handle:hover span{width:52px;background:var(--muted)}
.sheet-handle:active{cursor:grabbing}
.sheet{transition:transform .34s cubic-bezier(.32,.72,0,1),max-height .36s cubic-bezier(.22,.8,.22,1)}
.sheet:not(.open){transition:transform .3s cubic-bezier(.4,0,.8,.4),max-height .36s cubic-bezier(.22,.8,.22,1)}
.sheet.collapsed{max-height:92px;overflow:hidden}
.sheet.collapsed .sheet-handle span{width:52px;background:var(--muted)}
/* Mes réponses : partage */
.sv-share{display:flex;flex-direction:column;gap:10px;margin-bottom:18px}
/* Partage : « Mon résultat » ou « Défier un ami », puis une grille par usage. Chaque réseau reçoit
   son format : lien avec aperçu (messageries, X, Facebook…), image 9:16 (stories) ou 4:5 (publication). */
.sv-kind{display:grid;grid-template-columns:1fr 1fr;gap:3px;padding:3px;border-radius:13px;background:var(--surface-2)}
.sv-kind button{border:0;background:transparent;border-radius:10px;padding:9px 6px;font:inherit;font-size:13px;font-weight:750;color:var(--muted);cursor:pointer;transition:background .2s ease,color .2s ease}
.sv-kind button[aria-pressed="true"]{background:var(--surface);color:var(--text);box-shadow:0 1px 3px rgba(0,0,0,.1)}
.sv-quick{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.sv-btn.primary{background:var(--text);color:var(--surface);border-color:var(--text)}
.sv-btn.primary:hover{background:var(--text);opacity:.9}
.sv-group{margin-top:8px}
.sv-group .sv-label{display:flex;align-items:baseline;gap:6px;margin:0 2px 6px}
.sv-group .sv-label i{font-style:normal;font-weight:650;letter-spacing:0;text-transform:none;font-size:11.5px}
.sv-nets{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px 4px}
.sv-net{display:grid;justify-items:center;align-content:start;gap:2px;min-width:0;padding:8px 2px 6px;border:0;border-radius:14px;background:transparent;color:var(--text);font:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}
.sv-net-ic{width:48px;height:48px;border-radius:15px;display:grid;place-items:center;margin-bottom:4px;background:var(--c,#8a8a92);color:var(--on,#fff);transition:transform .16s cubic-bezier(.23,1,.32,1)}
.sv-net-ic svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.sv-net-ic .nb{fill:currentColor;stroke:none}
.sv-net b{font-size:12px;font-weight:750;line-height:1.2;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sv-net small{font-size:10.5px;line-height:1.2;color:var(--muted);white-space:nowrap}
.sv-net:active .sv-net-ic{transform:scale(.94)}
.sv-net:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.sv-net:disabled{opacity:.4;cursor:not-allowed}
@media (hover:hover) and (pointer:fine){.sv-net:hover{background:var(--surface-2)}}
.sv-net[data-net="whatsapp"]{--c:#25d366}.sv-net[data-net="sms"]{--c:#34c759}.sv-net[data-net="telegram"]{--c:#229ed9}.sv-net[data-net="email"]{--c:#8a8a92}
.sv-net[data-net^="ig"]{--c:#e4405f}.sv-net[data-net="fbstory"],.sv-net[data-net="facebook"]{--c:#1877f2}.sv-net[data-net="linkedin"]{--c:#0a66c2}.sv-net[data-net="bluesky"]{--c:#1185fe}
.sv-net[data-net="snapchat"]{--c:#fffc00;--on:#111}
.sv-net[data-net="x"],.sv-net[data-net="tiktok"],.sv-net[data-net="threads"]{--c:#000;--on:#fff}
/* Logos des réseaux (Simple Icons, CC0) : glyphe officiel sur la couleur de la marque. */
.sv-net-ic:has(.nb) svg{width:26px;height:26px}
.sv-net[data-net^="ig"] .sv-net-ic{background:radial-gradient(circle at 30% 107%,#fdf497 0%,#fdf497 5%,#fd5949 45%,#d6249f 60%,#285aeb 90%)}
.sv-net[data-net="tiktok"] .sv-net-ic svg{filter:drop-shadow(-1.2px -1px 0 #25f4ee) drop-shadow(1.2px 1px 0 #fe2c55)}
.sv-net[data-net="snapchat"] .sv-net-ic svg{width:28px;height:28px}
html.dark .sv-net[data-net="x"] .sv-net-ic,html.dark .sv-net[data-net="tiktok"] .sv-net-ic,html.dark .sv-net[data-net="threads"] .sv-net-ic{box-shadow:inset 0 0 0 1px rgba(255,255,255,.16)}
@media (max-width:360px){.sv-net-ic{width:42px;height:42px;border-radius:13px}.sv-net b{font-size:11px}}

.sv-preview{position:relative;display:block;width:100%;padding:0;border:0;font:inherit;color:inherit;cursor:pointer;aspect-ratio:1200/630;border-radius:16px;overflow:hidden;background:linear-gradient(135deg,#0b0d18,#1a1f3a);box-shadow:0 8px 24px rgba(0,0,0,.18);text-decoration:none;-webkit-tap-highlight-color:transparent}
.sv-preview:disabled{cursor:default}
.sv-preview:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
/* Pastille « Partager l’image » : toujours visible au toucher, au survol sur ordinateur. */
.sv-preview-act{position:absolute;right:10px;bottom:10px;display:flex;align-items:center;gap:6px;padding:7px 12px;border-radius:999px;background:rgba(10,12,24,.78);color:#fff;font-size:12px;font-weight:750;backdrop-filter:blur(6px);transition:opacity .18s,transform .18s}
.sv-preview-act svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
@media (hover:hover) and (pointer:fine){.sv-preview-act{opacity:0;transform:translateY(4px)}.sv-preview:hover .sv-preview-act,.sv-preview:focus-visible .sv-preview-act{opacity:1;transform:none}}
.sv-preview:active img{transform:scale(.985)}
.sv-preview img{transition:transform .15s}
.sv-preview img{display:block;width:100%;height:100%;object-fit:cover;animation:svFade .35s ease}
.sv-preview-ph{position:absolute;inset:0;display:grid;place-items:center;padding:20px;text-align:center;color:#a8aec4;font-size:13px;line-height:1.45}
@keyframes svFade{from{opacity:0}to{opacity:1}}
.sv-name{display:flex;flex-direction:column;gap:5px}
.sv-name span{font-size:12px;font-weight:750;color:var(--muted)}
.sv-name input,.sv-friends input{width:100%;min-width:0;padding:11px 13px;border:1px solid var(--hairline);border-radius:12px;background:var(--surface-2);color:var(--text);font:inherit;font-size:16px}
.sv-name input:focus,.sv-friends input:focus{outline:0;border-color:var(--accent);box-shadow:0 0 0 4px var(--accent-soft)}
.sv-btn.primary{background:var(--text);color:var(--surface);border-color:var(--text)}
.sv-btn.primary:hover{background:var(--text);opacity:.9}
.sv-share .sv-hint{margin:0}
.sv-friends{display:flex;flex-direction:column;gap:12px;margin-bottom:20px}
.sv-friends .fr-form{display:flex;gap:8px;margin:0}
.sv-friends .fr-form .pill-btn{flex:0 0 auto}
.sv-friends .fr-layout{display:flex;flex-direction:column;gap:12px}
.sv-friends .fr-compass{max-width:260px;margin:0 auto}
.sv-friends .fr-card{background:var(--surface-2);border-color:transparent}
.sv-cloud{margin-top:10px}
@media (prefers-reduced-motion:reduce){.sv-preview img{animation:none}}

/* ---------- Compte, parcours par étapes, service après jeu (octobre 2026) ---------- */
/* Pastille de sauvegarde (en-tête) */
.save-pill{display:inline-flex;align-items:center;gap:6px;height:32px;padding:0 11px 0 8px;border:0;border-radius:999px;font:inherit;font-size:12px;font-weight:800;cursor:pointer;white-space:nowrap;transition:transform .15s,background .15s}
.save-pill[hidden]{display:none}
.save-pill .sp-ic svg{width:17px;height:17px;display:block;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.save-pill .sp-short{display:none}
.save-pill.warn{background:#fff1d6;color:#9a5b00}
.save-pill.warn .sp-ic{animation:spPulse 2.4s ease-in-out infinite}
.save-pill.ok{background:rgba(40,199,111,.13);color:#14834a}
.save-pill.wait{background:var(--accent-soft);color:var(--accent)}
.save-pill.err{background:rgba(255,55,95,.12);color:#c8143c}
.save-pill:hover{transform:translateY(-1px)}
.save-pill:active{transform:scale(.96)}
@keyframes spPulse{0%,100%{transform:scale(1)}50%{transform:scale(1.14)}}
html.dark .save-pill.warn{background:#3a2a0c;color:#ffcf73}
html.dark .save-pill.ok{background:rgba(40,199,111,.16);color:#5fe39a}
html.dark .save-pill.err{color:#ff8fa6}
@media (max-width:640px){.save-pill .sp-long{display:none}.save-pill .sp-short{display:inline}.save-pill{padding:0 9px 0 7px}}
@media (max-width:420px){.top .progress{display:none}}
@media (prefers-reduced-motion:reduce){.save-pill.warn .sp-ic{animation:none}}
/* Loupe « Mes réponses » et son cadenas */
.search-btn{position:relative}
#settingsButton::before{display:none}
.search-btn .lock-badge{position:absolute;right:-4px;bottom:-4px;width:17px;height:17px;border-radius:50%;background:#111;color:#fff;display:none;place-items:center;box-shadow:0 0 0 2px var(--bg)}
.search-btn .lock-badge svg{width:10px;height:10px;stroke:currentColor;stroke-width:2.6;fill:none}
.search-btn.locked .lock-badge{display:grid}
.search-btn.locked svg:first-child{opacity:.6}
html.dark .search-btn .lock-badge{background:#f2f2f5;color:#111}
/* Bandeau des nouvelles propositions */
.new-banner{display:flex;align-items:center;gap:9px;width:min(100%,560px);margin:0 auto 6px;padding:6px 6px 6px 12px;border-radius:14px;background:var(--accent-soft);color:#24366e;font-size:12.5px;line-height:1.3}
.new-banner[hidden]{display:none}
.new-banner .nb-text{flex:1;min-width:0}
.new-banner .nb-dot{width:6px;height:6px;border-radius:50%;background:var(--accent);flex:0 0 auto}
.new-banner .banner-btn{background:#fff;color:var(--accent);white-space:nowrap}
html.dark .new-banner{background:#1c2540;color:#c9d6ff}
html.dark .new-banner .nb-dot{background:#7f9cff}
html.dark .new-banner .banner-btn{background:#26325a;color:#b9caff}
.new-tag{display:inline-flex;align-items:center;gap:5px;margin-left:8px;color:var(--accent);font-size:10.5px;font-weight:800;letter-spacing:.06em;vertical-align:baseline}
.new-tag::before{content:"";width:5px;height:5px;border-radius:50%;background:currentColor}
html.dark .new-tag{color:#8fa8ff}
.chip.chip-new{background:var(--accent-soft);color:#24366e}
html.dark .chip.chip-new{background:#1c2540;color:#b9caff}
/* Cartes de fin d’étape et de pause */
.pause-card{cursor:grab;background:linear-gradient(170deg,var(--card) 55%,var(--accent-soft) 140%);overflow:auto}
.pause-card h1{font-size:27px}
/* Pause / fin d’étape : même traitement que l’écran de fin. touch-action:none (hérité de .card) empêchait le doigt de faire
   défiler la carte, donc le bouton « Continuer » restait hors de portée ; pan-y rend le défilement au navigateur, le glissé
   horizontal continue de passer la carte. */
.pause-card{touch-action:pan-y;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;scrollbar-width:thin}
.pause-card .done-actions{margin-top:auto;padding-top:6px}
.pause-card .ps-top{margin-bottom:12px}
@media (max-width:520px),(max-height:700px){
  .pause-card{padding:16px 16px 14px}
  .pause-card .ps-hero{gap:12px}
  .pause-card .ps-ring{width:70px;height:70px}
  .pause-card .ps-ring>div{width:54px;height:54px}
  .pause-card .ps-ring b{font-size:17px}
  .pause-card .ps-ring span{display:none}
  .pause-card h1{font-size:22px;line-height:1.12;margin:2px 0 0}
  .pause-card .statement{font-size:15px;line-height:1.35;font-weight:600;margin:10px 0}
  .pause-card .ps-top{gap:5px;margin-bottom:10px}
  .pause-card .ps-top li{font-size:13px;grid-template-columns:20px 26px 84px 1fr auto}
  .pause-card .ps-av{width:26px;height:26px}
  .pause-card .ps-steps{margin-top:8px}
  .pause-card .ps-sub{margin:8px 0 5px}
  .pause-card .done-actions{gap:6px}
  .pause-card .done-actions .pill-btn{padding:9px 14px;font-size:14px}
  .pause-card .ps-pitch-btn{padding:9px 11px;margin-bottom:0}
  .pause-card .swipehint{display:none}
}
@media (max-height:720px){.pause-card .ps-steps{display:none}.pause-card .ps-hero{margin-bottom:0}.pause-card .ps-top{margin-bottom:8px}.pause-card .ps-pitch-btn .ps-t{display:none}.pause-card .break-statement,.break-card .statement{display:none}}
.break-card{background:linear-gradient(170deg,var(--card) 50%,#fff1d6 140%)}
html.dark .break-card{background:linear-gradient(170deg,#1b1b20 50%,#3a2a0c 160%)}
.ps-steps{display:flex;gap:4px;margin-top:12px}
.ps-steps i{flex:1;height:5px;border-radius:99px;background:var(--hairline)}
.ps-steps i.on{background:var(--accent)}
.ps-cup{width:58px;height:58px;border-radius:18px;display:grid;place-items:center;background:#fff1d6;margin-top:12px}
.ps-cup svg{width:34px;height:34px;fill:none;stroke:#c27200;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
html.dark .ps-cup{background:#3a2a0c}
.ps-top{list-style:none;padding:0;margin:0 0 10px;display:flex;flex-direction:column;gap:7px}
.ps-top li{display:grid;grid-template-columns:22px 30px 92px 1fr auto;align-items:center;gap:8px;font-size:14px}
.ps-rank{width:22px;height:22px;border-radius:50%;display:grid;place-items:center;background:var(--text);color:var(--surface);font-size:11.5px;font-weight:800}
.ps-name{font-weight:750;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ps-bar{height:8px;border-radius:99px;background:var(--surface-2);overflow:hidden}
.ps-bar i{display:block;height:100%;border-radius:99px}
.ps-left{margin:0 0 12px;color:var(--muted);font-size:13px;font-weight:700}
.ps-pitch{display:flex;gap:12px;padding:12px 13px;border-radius:16px;background:var(--accent-soft);margin-bottom:12px}
.ps-pitch-ic{flex:0 0 auto;width:36px;height:36px;border-radius:11px;display:grid;place-items:center;background:var(--accent)}
.ps-pitch-ic svg{width:22px;height:22px;fill:none;stroke:#fff;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.ps-pitch b{font-size:14px}
.ps-pitch p{margin:3px 0 0;font-size:13px;line-height:1.45;color:var(--text)}
.ps-actions{margin-bottom:6px}
.done-card .ps-pitch{margin-top:2px}
/* Écran de fin : le contenu (titre, texte, encart compte, 3 boutons) dépasse la carte sur petit écran. La carte défile
   (geste vertical rendu au navigateur, pas de swipe sur cet écran) et les boutons se rangent en colonne en bas. */
.done-card{overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y;cursor:default;-webkit-overflow-scrolling:touch;scrollbar-width:thin}.done-card .done-actions{margin-top:auto;padding-top:6px}
.done-actions .ps-pitch-btn{width:100%;margin:0;text-align:left;font:inherit;color:var(--text);cursor:pointer;border:1px solid color-mix(in srgb,var(--accent) 30%,transparent);transition:filter .15s,transform .15s}
.done-actions .ps-pitch-btn:hover{filter:brightness(1.08)}
.done-actions .ps-pitch-btn:active{transform:scale(.99)}
.ps-pitch-tx{display:block;min-width:0}
.ps-pitch-tx .ps-t{display:block;margin-top:3px;font-size:13px;line-height:1.45;font-weight:500}
.done-actions .ps-pitch-btn{flex-wrap:wrap;align-items:center}
.ps-pitch-btn .ps-pitch-tx{flex:1 1 0}
.ps-pitch-btn .ps-cta{flex:1 0 100%;display:flex;align-items:center;justify-content:center;gap:8px;padding:11px 14px;border-radius:999px;background:var(--accent);color:#fff;font-size:14px;font-weight:800;box-shadow:0 8px 20px rgba(47,107,255,.28)}
.ps-pitch-btn .ps-cta svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
@media (max-width:520px),(max-height:700px){.done-card .ps-pitch-btn .ps-t{font-size:12.5px;line-height:1.4}}
.done-actions .pill-btn small{display:block;margin-top:2px;font-size:11.5px;font-weight:650;color:var(--muted)}
.done-actions .pill-btn[data-action="set-length"]{background:var(--accent);border-color:var(--accent);color:#fff;box-shadow:0 8px 20px rgba(47,107,255,.28)}
.done-actions .pill-btn[data-action="set-length"]:hover{background:var(--accent);filter:brightness(1.08)}
.done-actions .pill-btn[data-action="set-length"] small{color:inherit;opacity:.8}
/* Sur mobile, plus de cartes à voter : on retire les boutons de vote (le Retour reste) et la carte reprend leur place. */
@media (max-width:699px){
  #play.is-done .vote-actions{display:none}
  #play.is-done .actions{bottom:10px;height:50px;flex-basis:50px}
  #play.is-done .deck{height:calc(100% - 66px);flex-basis:calc(100% - 66px)}
  #play.is-done:has(#modeBanner:not([hidden])) .deck{height:calc(100% - 112px);flex-basis:calc(100% - 112px)}
}
@media (max-width:520px),(max-height:700px){
  .done-card{padding:18px 16px 14px}
  .done-card h1{font-size:24px;line-height:1.12;letter-spacing:-.7px;margin:8px 0 10px}
  .done-card .statement{font-size:16px;line-height:1.35;font-weight:600;margin-bottom:12px}
  .done-card .ps-pitch{padding:10px 11px;gap:10px;margin-bottom:12px}
  .done-card .ps-pitch-ic{width:32px;height:32px;border-radius:10px}
  .done-card .ps-pitch-ic svg{width:19px;height:19px}
  .done-card .ps-pitch b{font-size:13.5px}
  .done-card .ps-pitch p{font-size:12.5px;line-height:1.4}
  .done-card .ps-perks{gap:3px;font-size:12px}
  .done-card .done-actions{flex-direction:column;flex-wrap:nowrap;gap:8px}
  .done-card .done-actions .pill-btn{width:100%;padding:12px 14px;font-size:14px;text-align:center}
}
@media (max-height:720px){.done-card .ps-perks{display:none}.done-card .done-actions{gap:6px}.done-card .done-actions .pill-btn{padding:8px 14px}.done-card .ps-pitch{padding:9px 11px}.done-card h1{margin:6px 0 8px}.done-card .statement,.done-card .ps-pitch{margin-bottom:10px}}
/* Avantages du compte et fenêtre d’inscription */
.perk-list{list-style:none;padding:0;margin:4px 0 14px;display:grid;grid-template-columns:1fr 1fr;gap:8px}
.perk-list li{display:flex;gap:9px;align-items:flex-start;padding:10px;border-radius:14px;background:var(--surface-2);font-size:12.5px;line-height:1.35}
.perk-list li.hl{background:var(--accent-soft);box-shadow:inset 0 0 0 1.5px var(--accent)}
.perk-list b{display:block;font-size:13px}
.perk-list small{color:var(--muted)}
.perk-ic svg{width:20px;height:20px;fill:none;stroke:var(--accent);stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;display:block}
@media (max-width:440px){.perk-list{grid-template-columns:1fr}.perk-list li:not(.hl) small{display:none}}
.su-lead{margin:0 0 12px;font-size:14.5px;line-height:1.5;color:var(--text)}
.su-count{font-weight:800;color:var(--accent)}
.pf-check small{display:block;color:var(--muted);font-size:12px;line-height:1.4;margin-top:2px}
.pf-check em{font-style:normal;font-size:11px;font-weight:700;color:var(--muted);margin-left:4px}
/* Mes réponses */
.ar-search{display:flex;align-items:center;gap:8px;padding:0 12px;border:1px solid var(--hairline);border-radius:14px;background:var(--surface-2)}
.ar-search svg{width:18px;height:18px;fill:none;stroke:var(--muted);stroke-width:2;flex:0 0 auto}
.ar-search input{flex:1;min-width:0;border:0;background:transparent;color:var(--text);font:inherit;font-size:16px;padding:12px 0;outline:0}
.ar-search:focus-within{border-color:var(--accent);box-shadow:0 0 0 4px var(--accent-soft)}
.ar-filters{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:10px 0}
.ar-filters select{min-width:0;padding:9px 10px;border-radius:12px;border:1px solid var(--hairline);background:var(--surface);color:var(--text);font-weight:700;font-size:13px}
.ar-votes{display:flex;gap:6px;overflow-x:auto;padding-bottom:4px;scrollbar-width:none}
.ar-votes .chip-btn{flex:0 0 auto}
.ar-count{margin:8px 0 6px;font-size:12px;font-weight:750;color:var(--muted)}
.ar-list{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:6px}
.ar-item{display:flex;align-items:center;gap:10px;padding:10px 10px 10px 12px;border-radius:14px;background:var(--surface-2)}
.ar-item.focus{box-shadow:inset 0 0 0 2px var(--accent)}
.ar-main{flex:1;min-width:0;cursor:pointer;border-radius:8px}
.ar-main:hover .ar-t{text-decoration:underline;text-underline-offset:2px}
.ar-main:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.ar-t{font-size:13.5px;font-weight:750;line-height:1.3}
.ar-m{font-size:11.5px;color:var(--muted);margin-top:2px;line-height:1.35}
.ar-new{color:#c25c00;font-weight:800}
.ar-seg{display:flex;gap:4px;flex:0 0 auto}
.ar-b{width:34px;height:34px;border-radius:10px;border:1px solid var(--hairline);background:var(--surface);color:var(--muted);font-size:15px;font-weight:800;cursor:pointer;transition:background .15s,color .15s,transform .12s}
.ar-b:active{transform:scale(.92)}
.ar-b.ar-no.on{background:var(--red);border-color:var(--red);color:#fff}
.ar-b.ar-neutral.on{background:#8a8a94;border-color:#8a8a94;color:#fff}
.ar-b.ar-yes.on{background:var(--green);border-color:var(--green);color:#fff}
.ar-b.ar-star.on{background:var(--accent);border-color:var(--accent);color:#fff}
.ar-empty{padding:18px;text-align:center;color:var(--muted);font-size:13px}
.ar-more{margin:10px auto 0;display:block}
.ar-more[hidden]{display:none}
@media (max-width:400px){.ar-item{flex-direction:column;align-items:stretch}.ar-seg{justify-content:flex-end}}
.cd-item[data-card]{cursor:pointer}
.cd-item[data-card]:hover{background:var(--surface-2)}
/* Comparateur */
.cmp-presets{display:flex;gap:6px;flex-wrap:wrap;margin-top:10px}
.cmp-swap{flex:0 0 auto;width:34px;height:34px;border-radius:50%;border:1px solid var(--hairline);background:var(--surface);color:var(--text);font-size:16px;cursor:pointer}
.cmp-verdict{margin:0 0 8px;font-size:14px;line-height:1.45}
.race-wrap{margin:4px 0 12px}
.race-svg{width:100%;height:auto;display:block;touch-action:pan-y}
.rc-grid{stroke:var(--hairline);stroke-width:1}
.rc-lab{fill:var(--muted);font-size:10.5px;font-weight:700}
.rc-cross line{stroke:var(--muted);stroke-width:1;stroke-dasharray:3 3;opacity:.6}
.rc-cross circle{stroke:var(--surface);stroke-width:2}
.rc-cursor{stroke:var(--text);stroke-width:1;opacity:.45}
.rc-hit{cursor:crosshair}
.rc-legend{display:flex;gap:14px;flex-wrap:wrap;font-size:12.5px;font-weight:700;margin-top:4px}
.rc-legend i,.tj-legend i{display:inline-block;width:12px;height:4px;border-radius:2px;margin-right:6px;vertical-align:3px}
.rc-cap{margin:6px 0 0;font-size:12.5px;line-height:1.45;color:var(--muted);min-height:2.9em}
.rc-cap b{color:var(--text)}
.db{margin:6px 0 12px}
.db-head{display:flex;justify-content:space-between;align-items:baseline;gap:10px;margin-bottom:6px}
.db-head h3{margin:0;font-size:14.5px}
.db-head span{font-size:11.5px;color:var(--muted);font-weight:700}
.db-key{display:inline-block;width:9px;height:9px;border-radius:50%;margin:0 4px 0 8px;vertical-align:-1px}
.rc-note{margin:4px 0 0;font-size:11.5px;line-height:1.4;color:var(--muted)}
.race-svg{max-height:300px}
.db-row{padding:14px 0;border-top:1px solid var(--hairline)}
.db-top{display:flex;justify-content:space-between;align-items:baseline;gap:12px;margin-bottom:10px}
.db-t{font-size:14px;font-weight:750;line-height:1.25}
.db-v{font-size:12px;font-weight:750;color:var(--muted);white-space:nowrap}
.db-track{position:relative;height:22px}
/* Barre qui relie votre position à celle d'un candidat (couleur du candidat). Deux candidats du même côté de vous :
   la partie commune est coupée en deux dans la hauteur (moitié haute = 1er candidat, moitié basse = 2e). */
.lk{position:absolute;top:var(--lk-t,8px);height:var(--lk-h,6px);border-radius:3px;z-index:0}
.lk.top{height:calc(var(--lk-h,6px)/2);border-radius:3px 3px 0 0}
.lk.bot{top:calc(var(--lk-t,8px) + var(--lk-h,6px)/2);height:calc(var(--lk-h,6px)/2);border-radius:0 0 3px 3px}
.db-mid{position:absolute;left:0;right:0;top:10px;height:2px;border-radius:2px;background:var(--hairline)}
.db-gap{position:absolute;top:8px;height:6px;border-radius:3px;background:var(--muted);opacity:.28}
.db-track i{position:absolute;top:3px;width:16px;height:16px;margin-left:-8px;border-radius:50%;box-shadow:0 0 0 2.5px var(--surface);z-index:1}
.db-me{position:absolute;top:11px;width:16px;height:16px;margin:-8px 0 0 -8px;border-radius:50%;background:var(--text);box-shadow:0 0 0 2px var(--surface),0 0 0 3.5px var(--text);z-index:2}
.db-vals{display:flex;flex-wrap:wrap;gap:4px 22px;margin-top:9px;font-size:12.5px}
.db-val{display:inline-flex;align-items:baseline;gap:6px;color:var(--muted)}
.db-val i{display:inline-block;width:10px;height:10px;border-radius:50%;align-self:center}
.db-val b{color:var(--text);font-size:13.5px}
.db-val small{font-size:11px}
.db-head p{margin:4px 0 0;font-size:12.5px;line-height:1.5;color:var(--muted)}
.db-head{flex-direction:column;align-items:flex-start;gap:0;margin-bottom:8px}
.db{margin:22px 0 18px}
.db-head h3{font-size:16px}
.db-key.me{width:12px;height:12px;background:var(--text);margin:0 6px 0 0;box-shadow:0 0 0 2px var(--surface),0 0 0 3.5px var(--text)}
.db-key{width:11px;height:11px;margin:0 6px 0 14px}
.cmp-lists summary{cursor:pointer;font-size:12.5px;font-weight:750;color:var(--accent);padding:6px 0;list-style:none}
.cmp-lists[open] summary{margin-bottom:8px}
/* Trajectoire */
.traj{width:100%;height:auto;display:block}
.tj-axis{stroke:var(--hairline)}
.tj-lab{fill:var(--muted);font-size:10.5px;font-weight:700}
.tj-legend{display:flex;gap:12px;flex-wrap:wrap;font-size:12px;font-weight:700}

/* Analyse approfondie */
.pm-spark{color:#e08a00;margin-right:6px}
.pm-feats{margin:0;padding-left:18px;display:flex;flex-direction:column;gap:5px;font-size:13px;line-height:1.4}
.pm-feats b{font-weight:800}
.pm-lock{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2.2;vertical-align:-2px}
.pm-card{background:linear-gradient(160deg,var(--surface) 60%,#fff6e0 160%)}
html.dark .pm-card{background:linear-gradient(160deg,#1b1b20 60%,#3a2a0c 170%)}
.pm-buy{background:linear-gradient(135deg,#e08a00,#d9480f);color:#fff}
.pm-teaser .pill-btn{display:inline-flex;align-items:center;gap:6px}
.sheet-wide{width:min(100%,760px)}
.pm-head-actions{display:flex;gap:8px;align-items:center}
.pm-report section{margin:16px 0}
.pm-report h3{margin:0 0 6px;font-size:16px}
.pm-meta{margin:0;color:var(--muted);font-size:12.5px}
.pm-portrait{font-size:15.5px;line-height:1.6;margin:0}
.pm-table td,.pm-table th{text-align:left}
.pm-dot{display:inline-block;width:9px;height:9px;border-radius:50%;margin-right:6px}
.pm-score{color:var(--accent)}
.pm-list{margin:0;padding-left:18px;display:flex;flex-direction:column;gap:7px;font-size:13.5px;line-height:1.45}
.pm-list small{display:block;color:var(--muted);font-size:12px}
.rv-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:12px;font-size:13.5px;line-height:1.45}
.rv-row small{display:block;color:var(--muted);font-size:12px}
.rv-track{height:6px;background:var(--hairline);border-radius:99px;overflow:hidden;margin:6px 0 3px}
.rv-fill{height:100%;border-radius:99px;background:var(--accent)}
.rv-row.high .rv-fill{background:#e08a00}
.rv-flag{display:inline-block;margin-left:6px;padding:1px 7px;border-radius:99px;font-size:11px;font-weight:700;color:#8a4b00;background:#ffe9c2;vertical-align:1px}
html.dark .rv-flag{color:#ffd28a;background:#3a2a0c}
.rv-h4{margin:14px 0 8px;font-size:13px;text-transform:uppercase;letter-spacing:.04em;color:var(--muted)}
.rv-sum{font-size:15px;line-height:1.5;margin:0 0 8px}
.rv-read{margin:12px 0 0;padding:10px 12px;border-radius:12px;background:var(--surface-2);font-size:13.5px;line-height:1.5}
.radar{width:100%;max-width:440px;height:auto;display:block;margin:0 auto}
.rd-ring{fill:none;stroke:var(--hairline)}
.rd-spoke{stroke:var(--hairline)}
.rd-lab{fill:var(--muted);font-size:10px;font-weight:700}
.pm-axis{margin:10px 0}
.pm-axis-h{display:flex;justify-content:space-between;font-size:12.5px;margin-bottom:6px}
.pm-axis-h span{color:var(--muted);font-weight:700}
.pm-axis .ax-rail{position:relative;display:block;height:14px}
.pm-axis{margin:18px 0}
.pm-axis .ax-rail.ax-big{height:22px}
.pm-axis .ax-big::before{top:10px}
.pm-axis .ax-big .ax-c,.pm-axis .ax-big .ax-me{top:11px;width:16px;height:16px;margin:-8px 0 0 -8px}
.pm-axis .ax-big .ax-me{width:18px;height:18px;margin:-9px 0 0 -9px}
.pm-axis-cap{display:block;margin-top:8px;font-size:12.5px;color:var(--muted)}
.pm-report{container-type:inline-size}
.pm-report section{margin:20px 0}
.pm-report .sp-title{font-size:20px}
.pk{display:inline;padding:0;border:0;background:none;color:inherit;font:inherit;font-weight:750;text-align:left;cursor:pointer;text-decoration:underline;text-decoration-color:var(--hairline);text-decoration-thickness:2px;text-underline-offset:3px}
.pk:hover{text-decoration-color:var(--accent);color:var(--accent)}
.pk:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:4px}
.ad-list .pk{font-weight:600}

/* Adhésion par thème */
.th-list{display:flex;flex-direction:column;gap:10px;margin-top:16px}
.th-item{border:1px solid var(--hairline);border-radius:18px;background:var(--surface);overflow:hidden}
.th-item[open]{background:var(--surface-2)}
.th-item>summary{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1.6fr) 18px;align-items:center;gap:6px 16px;padding:15px 18px;cursor:pointer;list-style:none}
.th-item>summary::-webkit-details-marker{display:none}
.th-name{font-size:15px;font-weight:800;line-height:1.25}
.th-name small{display:block;margin-top:3px;font-size:12px;font-weight:600;color:var(--muted)}
.th-bests{display:flex;flex-wrap:wrap;gap:6px 14px;justify-content:flex-end}
.th-best{font-size:12.5px;color:var(--muted);white-space:nowrap}
.th-best i{display:inline-block;width:9px;height:9px;border-radius:50%;margin-right:5px}
.th-best b{color:var(--text)}
.th-chev{width:8px;height:8px;border-right:2px solid var(--muted);border-bottom:2px solid var(--muted);transform:rotate(45deg);transition:transform .2s;justify-self:end}
.th-item[open] .th-chev{transform:rotate(-135deg)}
.tb{padding:2px 18px 18px}
.tb-row{display:grid;grid-template-columns:128px minmax(0,1fr) 78px;align-items:center;gap:16px;padding:8px 0}
.tb-name{display:flex;align-items:center;gap:8px;font-size:13.5px;font-weight:700;min-width:0}
.tb-name i{flex:0 0 11px;height:11px;border-radius:50%}
.tb-track{position:relative;height:16px;border-radius:99px;background:var(--surface);box-shadow:inset 0 0 0 1px var(--hairline)}
.tb-fill{position:absolute;left:0;top:0;bottom:0;border-radius:99px;opacity:.85}
.tb-mid{position:absolute;left:50%;top:3px;bottom:3px;width:1px;background:var(--muted);opacity:.35}
.tb-me{position:absolute;top:8px;width:14px;height:14px;margin:-7px 0 0 -7px;border-radius:50%;background:var(--text);box-shadow:0 0 0 2px var(--surface),0 0 0 3.5px var(--text);z-index:2}
.tb-val{text-align:right;font-variant-numeric:tabular-nums}
.tb-val b{display:block;font-size:14px}
.tb-val small{font-size:11px;color:var(--muted)}
.tb-scale{padding:0 0 2px}
.tb-sc{display:flex;justify-content:space-between;font-size:11px;color:var(--muted)}
.tb-sc em{font-style:normal}
.tb-none,.tb-key{margin:10px 0 0;font-size:12.5px;line-height:1.5;color:var(--muted)}
.tb-keyme{display:inline-block;width:10px;height:10px;border-radius:50%;background:var(--text);box-shadow:0 0 0 2px var(--surface),0 0 0 3.5px var(--text);margin:0 10px -1px 4px}
@container (max-width:560px){
 .th-item>summary{grid-template-columns:minmax(0,1fr) 18px}
 .th-bests{grid-column:1/-1;grid-row:2;justify-content:flex-start}
 .tb-row{grid-template-columns:minmax(0,1fr) 64px;row-gap:6px;column-gap:10px}
 .tb-row .tb-name{grid-column:1/-1}
 .tb-row.tb-scale{grid-template-columns:minmax(0,1fr)}
 .tb-row.tb-scale span:first-child,.tb-row.tb-scale span:last-child{display:none}
}

/* Axes et Europe : une ligne par candidat */
.ax-block{margin:22px 0}
.ax-block h3{margin:0 0 4px;font-size:17px}
.ec-poles{display:flex;justify-content:space-between;gap:12px;margin:8px 0 4px;padding-left:156px;font-size:11.5px;font-weight:700;color:var(--muted)}
.ec-list{display:flex;flex-direction:column}
.ec-row{display:grid;grid-template-columns:140px minmax(0,1fr) 112px;align-items:center;gap:16px;padding:12px 0;border-top:1px solid var(--hairline)}
.ec-name{display:flex;align-items:center;gap:8px;font-size:14px;font-weight:750;min-width:0}
.ec-name i{flex:0 0 11px;height:11px;border-radius:50%}
.ec-rail{position:relative;display:block;height:26px}
.ec-rail::before{content:"";position:absolute;left:0;right:0;top:12px;height:2px;border-radius:2px;background:var(--hairline)}
.ec-mid{position:absolute;left:50%;top:7px;width:1px;height:12px;background:var(--hairline)}
.ec-gap{position:absolute;top:10px;height:6px;border-radius:3px;background:var(--g)}
.ec-me{position:absolute;top:13px;width:16px;height:16px;margin:-8px 0 0 -8px;border-radius:50%;background:var(--text);box-shadow:0 0 0 2px var(--surface),0 0 0 3.5px var(--text);z-index:3}
.ec-dot{position:absolute;top:13px;width:16px;height:16px;margin:-8px 0 0 -8px;border-radius:50%;box-shadow:0 0 0 2.5px var(--surface);z-index:2}
.ec-val{display:flex;flex-direction:column;align-items:flex-end;font-variant-numeric:tabular-nums;font-size:14px}
.ec-val small{font-size:11.5px;font-weight:750;color:var(--g)}
@container (max-width:560px){
 .ec-poles{padding-left:0}
 .ec-row{grid-template-columns:minmax(0,1fr) 96px;row-gap:8px;column-gap:10px}
 .ec-row .ec-name{grid-column:1/-1}
}
.eu-h3{margin:26px 0 4px;font-size:16px}
.eu-counts{margin:18px 0 6px}
.eu-groups{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-top:10px;align-items:start}
@container (max-width:620px){.eu-groups{grid-template-columns:1fr}}
.eu-group h4{display:flex;align-items:center;justify-content:space-between;margin:0 0 8px;font-size:14px}
.eu-group h4 small{padding:2px 9px;border-radius:99px;background:var(--surface-2);font-size:12px;color:var(--muted)}
.eu-meas{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
.eu-row{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px;width:100%;padding:10px 12px;border:1px solid var(--hairline);border-radius:14px;background:var(--surface);color:var(--text);font:inherit;text-align:left;cursor:pointer;transition:border-color .15s,background .15s}
.eu-row:hover{border-color:var(--accent);background:var(--surface-2)}
.eu-row:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.eu-t{font-size:13.5px;font-weight:650;line-height:1.35}
.eu-ans{padding:3px 9px;border-radius:99px;font-size:11px;font-weight:800;white-space:nowrap;background:var(--surface-2);color:var(--muted)}
.eu-ans.a-yes{background:rgba(40,199,111,.16);color:#159a55}
.eu-ans.a-no{background:rgba(240,62,62,.14);color:#d6336c}
html.dark .eu-ans.a-yes{color:#5fe39a}
html.dark .eu-ans.a-no{color:#ff8a9e}
.eu-row .eu-w{flex:none;display:flex;flex-direction:column;align-items:center;min-width:52px;padding:3px 6px;font-size:12px;line-height:1.2}
.eu-row .eu-w small{font-size:9.5px;font-weight:700;opacity:.85;text-align:center}
.eu-mini{margin-bottom:12px}
.eu-mini-h{font-size:14px;font-weight:800}
@media print{
  html.pm-printing .rp-panel[hidden]{display:block!important}
  html.pm-printing .rp-bar{display:none!important}
  html.pm-printing body>*:not(#reportSheet){display:none!important}
  html.pm-printing,html.pm-printing body{overflow:visible!important;height:auto!important;background:#fff!important;color:#111!important}
  html.pm-printing #reportSheet{position:static!important;transform:none!important;width:100%!important;max-height:none!important;overflow:visible!important;box-shadow:none!important;background:#fff!important;color:#111!important}
  html.pm-printing #reportSheet .sheet-handle,html.pm-printing .pm-head-actions{display:none!important}
}
.noscript-intro{position:relative;z-index:5;max-width:640px;margin:16px auto;padding:16px;line-height:1.5;overflow:auto}
/* Étiquettes des boutons de vote : sous chaque bouton, la touche du clavier seulement avec une souris. */
.act{position:relative;display:flex;flex:0 0 auto}
.act-lbl{position:absolute;top:calc(100% + 6px);left:50%;transform:translateX(-50%);white-space:nowrap;font-size:11.5px;font-weight:700;color:var(--muted);line-height:1;pointer-events:none;display:flex;align-items:center;gap:4px}
.act-lbl kbd{font:700 10px/1 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;padding:2px 4px;border-radius:4px;border:1px solid var(--line);color:var(--muted);background:transparent}
/* Grand écran (mise en page en colonne) : place réservée sous les boutons pour les étiquettes. */
@media (min-width:1101px){.actions{flex-basis:94px;padding-bottom:24px}#play:has(#modeBanner:not([hidden])) .deck{height:calc(100% - 192px);flex-basis:calc(100% - 192px)}}
@media (hover:none),(pointer:coarse){.act-lbl kbd{display:none}}
@media (max-width:440px){.act-lbl{font-size:10.5px;top:calc(100% + 4px)}}
@media (max-height:620px){.act-lbl{display:none}}
#play.is-done .act-lbl{display:none}
/* Duel / second tour */
.duel-res{display:grid;gap:10px;margin:14px 0 4px;text-align:left;width:100%;max-width:440px}
.duel-row{display:grid;grid-template-columns:minmax(0,7.5em) minmax(0,1fr) 3.2em;grid-template-rows:auto auto;column-gap:10px;align-items:center}
.duel-name{font-weight:750;font-size:15px;display:flex;align-items:center;gap:6px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.duel-name i{width:10px;height:10px;border-radius:50%;flex:0 0 auto}
.duel-track{height:12px;border-radius:999px;background:var(--line);overflow:hidden}
.duel-track span{display:block;height:100%;border-radius:999px}
.duel-row b{font-variant-numeric:tabular-nums;text-align:right;font-size:15px}
.duel-row small{grid-column:2/4;font-size:11.5px;color:var(--muted)}
.duel-how{font-size:12px;color:var(--muted);line-height:1.4}
html.dark .duel-track span,html.dark .duel-name i{box-shadow:inset 0 0 0 1.5px rgba(255,255,255,.4)}
/* Profils « tout pareil » : aucun classement, aucun candidat mis en avant. */
#stats.is-odd .stats-intro,#stats.is-odd #statsHero,#stats.is-odd #statCards,#stats.is-odd #statMore{display:none!important}
.odd-box{margin:0 0 14px;width:100%}
.odd-card{--odd-base:#fffaf3;--odd-a:#ffdca6;--odd-b:#ffd1e2;--odd-ink:#1f1916;--odd-soft:rgba(31,25,22,.62);--odd-pill:rgba(31,25,22,.06);--odd-chip:#fff;--odd-line:rgba(31,25,22,.08);--odd-hl:#ff375f;
  position:relative;display:grid;grid-template-columns:minmax(150px,210px) minmax(0,1fr);gap:28px 32px;align-items:center;padding:30px;margin:12px 0;border-radius:32px;overflow:hidden;text-align:left;color:var(--odd-ink);
  background:radial-gradient(90% 120% at 0% 0%,var(--odd-a),transparent 62%),radial-gradient(90% 120% at 100% 100%,var(--odd-b),transparent 62%),var(--odd-base);border:1px solid var(--odd-line)}
html.dark .odd-card{--odd-base:#17141a;--odd-a:rgba(255,176,32,.20);--odd-b:rgba(255,55,95,.17);--odd-ink:#f6f1ec;--odd-soft:rgba(246,241,236,.66);--odd-pill:rgba(255,255,255,.07);--odd-chip:rgba(255,255,255,.06);--odd-line:rgba(255,255,255,.09);--odd-hl:#ff6b86}
.odd-card.odd-no{--odd-a:#ffd2d2;--odd-b:#e6d7ff;--odd-hl:#e03131}html.dark .odd-card.odd-no{--odd-a:rgba(255,80,80,.18);--odd-b:rgba(140,90,255,.16)}
.odd-card.odd-neutral{--odd-a:#dfe8f3;--odd-b:#d7f2e6;--odd-hl:#1098ad}html.dark .odd-card.odd-neutral{--odd-a:rgba(80,140,220,.18);--odd-b:rgba(40,199,111,.14)}
.odd-media{position:relative;width:100%;display:grid;place-items:center}
.odd-sticker{aspect-ratio:216/285;border-radius:22px;background:#111;border:6px solid #fff;box-shadow:0 18px 40px rgba(0,0,0,.18);transform:rotate(-3deg);overflow:hidden}
html.dark .odd-sticker{border-color:#2a2630;box-shadow:0 18px 40px rgba(0,0,0,.45)}
.odd-video{width:100%;height:100%;object-fit:cover;display:block}
.odd-credit{position:absolute;right:8px;bottom:8px;font-size:10px;font-weight:700;color:#fff;background:rgba(0,0,0,.55);padding:3px 7px;border-radius:999px;text-decoration:none}
.odd-emoji{font-size:96px;line-height:1;aspect-ratio:1;border-radius:28px;background:var(--odd-pill)}
.odd-emoji-in{font-size:84px;line-height:1}
.odd-txt{min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:12px}
.odd-kicker{display:inline-flex;align-items:center;gap:6px;font-size:11px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:var(--odd-hl);background:var(--odd-chip);border:1px solid var(--odd-line);padding:5px 11px;border-radius:999px}
.odd-card .odd-title{margin:2px 0 0;font-size:clamp(42px,6.4vw,66px);line-height:.92;letter-spacing:-.045em;font-weight:900;text-wrap:balance}
.odd-card .odd-sub{margin:-6px 0 2px;font-size:clamp(18px,2.4vw,23px);line-height:1.15;font-weight:750;color:var(--odd-soft);letter-spacing:-.01em}
.odd-tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(96px,1fr));gap:8px;width:100%;max-width:460px}
.odd-tiles div{background:var(--odd-chip);border:1px solid var(--odd-line);border-radius:16px;padding:10px 12px;display:grid;gap:2px}
.odd-tiles b{font-size:26px;line-height:1;font-weight:900;letter-spacing:-.03em;font-variant-numeric:tabular-nums}
.odd-tiles span{font-size:12px;line-height:1.25;font-weight:650;color:var(--odd-soft)}
.odd-card p{margin:0}
.odd-card .odd-lead{font-size:16.5px;line-height:1.45;font-weight:650;max-width:58ch}
.odd-clash{display:grid;gap:8px;width:100%}
.odd-clash-h{font-size:12px;font-weight:750;color:var(--odd-soft)}
.odd-clash-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.odd-clash-card{background:var(--odd-chip);border:1px solid var(--odd-line);border-radius:14px;padding:9px 13px;font-size:13.5px;line-height:1.3;font-weight:650;max-width:100%;box-shadow:0 4px 14px rgba(0,0,0,.05)}
.odd-clash-row i{font-style:normal;font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--odd-hl)}
.odd-card .odd-more{font-size:14.5px;line-height:1.55;font-weight:500;color:var(--odd-soft);max-width:62ch}
.odd-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:2px}
.odd-actions .pill-btn{text-decoration:none}
.odd-cands{grid-column:1/-1;display:grid;gap:10px;padding-top:18px;border-top:1px solid var(--odd-line)}
.odd-cands p{font-size:13.5px;line-height:1.4;color:var(--odd-soft)}
.odd-cands p b{color:var(--odd-ink)}
.odd-chips{display:flex;flex-wrap:wrap;gap:6px}
.odd-chips a{font-size:13px;font-weight:700;color:var(--odd-ink);text-decoration:none;background:var(--odd-chip);border:1px solid var(--odd-line);border-radius:999px;padding:6px 13px;transition:transform .15s,border-color .15s}
.odd-chips a:hover{transform:translateY(-1px);border-color:var(--odd-hl)}
.odd-note{font-weight:650}
.odd-compact{grid-template-columns:96px minmax(0,1fr);gap:16px;padding:18px;border-radius:24px}
.odd-compact .odd-title{font-size:34px}
.odd-compact .odd-sub{font-size:16px;margin-top:-4px}
.odd-compact .odd-lead{font-size:14px}
.odd-compact .odd-sticker{border-width:4px;border-radius:16px}
.odd-compact .odd-emoji{font-size:56px;border-radius:20px}
@media (max-width:600px){
  .odd-card{grid-template-columns:1fr;gap:20px;padding:22px 20px}
  .odd-card:not(.odd-compact) .odd-media{max-width:170px;justify-self:center}
  .odd-tiles{grid-template-columns:repeat(3,minmax(0,1fr))}
  .odd-tiles b{font-size:22px}
  .odd-compact{grid-template-columns:76px minmax(0,1fr);gap:14px;padding:16px}
  .odd-compact .odd-title{font-size:28px}
  .odd-clash-row{flex-direction:column;align-items:flex-start;gap:6px}
  .odd-clash-row i{padding-left:14px}
}
@media (prefers-reduced-motion:reduce){.odd-chips a{transition:none}}
.done-card .odd-card{margin:10px 0 4px}
/* Défi entre amis */
.ch-res{display:grid;gap:14px;margin:14px 0 4px;width:100%;text-align:left}
.ch-score{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap}
.ch-score b{font-size:56px;line-height:1;font-weight:900;letter-spacing:-2px;font-variant-numeric:tabular-nums}
.ch-score span{font-size:14px;color:var(--muted);font-weight:650}
.ch-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px}
/* Pour aller plus loin */
.explore h2{margin:0 0 12px;font-size:18px}
.ex-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,190px),1fr));gap:10px}
.ex-tile{display:grid;grid-template-columns:auto minmax(0,1fr);grid-template-rows:auto auto;column-gap:10px;row-gap:2px;align-items:center;padding:12px 14px;border-radius:16px;border:1px solid var(--hairline);background:var(--surface);color:var(--text);text-decoration:none;transition:border-color .15s,transform .15s}
.ex-tile:hover{border-color:var(--accent);transform:translateY(-1px)}
.ex-tile svg{grid-row:1/3;width:24px;height:24px;fill:none;stroke:var(--accent);stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.ex-tile b{font-size:14.5px;line-height:1.2}
.ex-tile small{font-size:12px;line-height:1.35;color:var(--muted)}
.done-explore{display:flex;flex-wrap:wrap;justify-content:center;gap:6px 16px;margin-top:18px;padding-top:14px;border-top:1px solid var(--hairline);font-size:13px;font-weight:650}
/* Écran de fin : le bouton principal d’abord, en pleine largeur jusqu’à 360 px, puis la suite du parcours et l’encart. */
/* Centré sur la carte (en bureau la carte est bien plus large que le bloc de 420 px). */
.done-card .done-actions{display:grid;gap:10px;justify-items:stretch;width:100%;max-width:420px;margin-inline:auto;padding-top:18px}
/* « De nouvelles propositions… » : un seul modèle, avec ou sans compte : la lettre en bleu, sans cadre ni pastille. */
.done-card .done-note,.done-card .ps-pitch-btn.done-news{display:flex;align-items:flex-start;gap:10px;margin:2px 0 0;padding:4px 2px 0;border:0;border-radius:0;background:transparent;box-shadow:none;text-align:left;font-size:13px;line-height:1.45;color:var(--muted)}
.done-card .done-note svg,.done-card .done-news .ps-pitch-ic svg{flex:0 0 18px;width:18px;height:18px;margin-top:1px;stroke:var(--accent)}
.done-card .done-news .ps-pitch-ic{width:18px;height:18px;flex:0 0 18px;border-radius:0;background:none}
.done-card .done-news .ps-pitch-tx b{font-size:13.5px;color:var(--text)}
.done-card .done-news .ps-pitch-tx .ps-t{font-size:13px;color:var(--muted)}
.done-card .ps-pitch-btn.done-news:hover{filter:none}
.done-card .ps-pitch-btn.done-news:hover b{color:var(--accent)}
.done-card .done-actions .pill-btn{justify-content:center;text-align:center;padding:13px 18px;font-size:15px}
.done-card .done-actions .pill-btn.primary{box-shadow:0 8px 20px rgba(0,0,0,.14)}
.done-card .done-actions .ps-pitch-btn{margin-top:4px}
.done-note{display:flex;align-items:center;gap:8px;margin:4px 0 0;font-size:13px;line-height:1.4;color:var(--muted)}
.done-note svg{flex:0 0 18px;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
#play.is-done .vote-actions{display:none}
.done-explore a{color:var(--muted);text-decoration:none}
.done-explore a:hover{color:var(--accent);text-decoration:underline}
.set-baro{margin-top:12px;padding-top:12px;border-top:1px solid var(--hairline)}
.set-baro small a{color:var(--accent)}
/* ===== Explorer (voir le bloc « Explorer » du script) ===== */
/* ===== Marque Swipe 2027 : logotype « Swipe », une carte en point du i (tracés : tools/build/build-swipe-logo.py du site) ===== */
.brand-link{display:inline-flex;align-items:flex-start;gap:5px;color:inherit;text-decoration:none;border-radius:8px}
.brand-link:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.brand-word{display:block;height:24px;width:auto;aspect-ratio:2624/1026;fill:currentColor}
.brand-ed{font-size:10.5px;line-height:1;font-weight:700;letter-spacing:.12em;color:var(--muted);margin-top:2px;font-variant-numeric:tabular-nums}
/* Le nom reste du texte pour les moteurs et les lecteurs d’écran (pas .sr-only : mesures.php s’en sert pour repérer la fin du lien). */
.brand-name{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
@media (max-width:360px){.brand-word{height:21px}}
@media (max-width:340px){.seg button{font-size:11.5px;padding-left:3px;padding-right:3px}}
.seg button:has(.seg-ico){display:inline-flex;align-items:center;justify-content:center;gap:7px}
.seg-ico .seg-fill{fill:currentColor;stroke:none}
.seg-ico{flex:0 0 auto;width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
@media (max-width:340px){.seg button:has(.seg-ico){gap:4px}.seg-ico{width:15px;height:15px}}

/* ===== Barres de défilement (ordinateur) : pages et fenêtres ===== */
:root{--sb:rgba(17,17,20,.2);--sb-h:rgba(17,17,20,.38)}
.info{--sb:rgba(255,255,255,.22);--sb-h:rgba(255,255,255,.4)}
html.dark{--sb:rgba(242,242,245,.18);--sb-h:rgba(242,242,245,.34)}
@media (hover:hover) and (pointer:fine){
  #stats,#profile,#explore,.sheet,.info,.done-card,.pause-card,.sm-dialog{scrollbar-width:thin;scrollbar-color:var(--sb) transparent}
  #stats::-webkit-scrollbar,#profile::-webkit-scrollbar,#explore::-webkit-scrollbar,.sheet::-webkit-scrollbar,.info::-webkit-scrollbar,.done-card::-webkit-scrollbar,.pause-card::-webkit-scrollbar{width:12px}
  #stats::-webkit-scrollbar-thumb,#profile::-webkit-scrollbar-thumb,#explore::-webkit-scrollbar-thumb,.sheet::-webkit-scrollbar-thumb,.info::-webkit-scrollbar-thumb,.done-card::-webkit-scrollbar-thumb,.pause-card::-webkit-scrollbar-thumb{background:var(--sb);border-radius:99px;border:3px solid transparent;background-clip:padding-box}
  #stats::-webkit-scrollbar-thumb:hover,#profile::-webkit-scrollbar-thumb:hover,#explore::-webkit-scrollbar-thumb:hover,.sheet::-webkit-scrollbar-thumb:hover,.info::-webkit-scrollbar-thumb:hover{background-color:var(--sb-h)}
  #stats::-webkit-scrollbar-track,#profile::-webkit-scrollbar-track,#explore::-webkit-scrollbar-track,.sheet::-webkit-scrollbar-track,.info::-webkit-scrollbar-track,.done-card::-webkit-scrollbar-track,.pause-card::-webkit-scrollbar-track{background:transparent}
  /* Fenêtres arrondies : la barre ne mord pas sur les coins. */
  .sheet::-webkit-scrollbar-track,.info::-webkit-scrollbar-track{margin:18px 0}
}

/* ===== Barre d’onglets : Swipe / Stats / Explorer, et Profil à part dans un bouton rond (comme la recherche des barres iOS) ===== */
.tabbar{display:flex;align-items:center;gap:8px;width:100%;max-width:560px;margin:10px auto 0;position:relative;z-index:101}
.tabbar .tabs{flex:1;min-width:0;margin-top:0;grid-template-columns:repeat(3,1fr)}
.tabbar .tab-indicator{width:calc((100% - 8px) / 3);transition:transform .42s cubic-bezier(.22,.8,.22,1),opacity .25s ease}
.tabbar .tabs.stats-active .tab-indicator{transform:translateX(100%)}
.tabbar .tabs.explore-active .tab-indicator{transform:translateX(200%)}
.tabbar .tabs.profile-active .tab-indicator{opacity:0;transform:translateX(calc(200% + 24px)) scale(.6)}
.tab-round{flex:0 0 auto;width:42px;height:42px;padding:0;border:0;border-radius:50%;display:grid;place-items:center;background:#e5e5ea;color:#666;box-shadow:inset 0 1px 2px rgba(0,0,0,.05);cursor:pointer;touch-action:manipulation;transition:background .3s ease,color .3s ease,transform .2s ease,box-shadow .3s ease}
.tab-round svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.tab-round:hover{color:#111;transform:scale(1.05)}
.tab-round:active{transform:scale(.94)}
.tab-round.active{background:#111;color:#fff;box-shadow:0 2px 7px rgba(0,0,0,.16)}
.tab-round:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
html.dark .tab-round{background:#24242a;color:#a0a0aa;box-shadow:none}
html.dark .tab-round:hover{color:#f2f2f5}
html.dark .tab-round.active{background:#f2f2f5;color:#111}
@media (max-width:340px){.tab-round{width:38px;height:38px}}

/* ===== Onglet Explorer : les pages publiques de Swipe, dans l’appli ===== */
#explore{position:absolute;top:10px;bottom:0;left:var(--bleed);right:var(--bleed);min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;touch-action:pan-y pinch-zoom;-webkit-overflow-scrolling:touch;padding:0 max(calc(var(--gap-out) + 12px),calc((100vw - 1104px) / 2)) 28px;opacity:0;pointer-events:none;transition:opacity .28s ease;z-index:1;scroll-padding-top:72px;
  --xp-ok:#13824a;--xp-ok-soft:#e8f8ef;--xp-warn:#a35c00;--xp-warn-soft:#fff5e0;--xp-shadow:0 1px 2px rgba(0,0,0,.04),0 10px 30px rgba(0,0,0,.06);
  font-size:16px;line-height:1.55;color:var(--text)}
#explore.panel-in{opacity:1;transform:none;pointer-events:auto;z-index:3}
html.dark #explore{--xp-ok:#3ccf86;--xp-ok-soft:#14261d;--xp-warn:#f0b75a;--xp-warn-soft:#2e2615;--xp-shadow:0 1px 2px rgba(0,0,0,.3),0 12px 30px rgba(0,0,0,.35)}
html.pp-restoring #explore{transition:none!important}
#explore [hidden]{display:none!important}
#explore a{color:var(--accent);text-underline-offset:2px}
#explore p{margin:0}
#explore h1{font-size:clamp(30px,4.6vw,46px);line-height:1.04;letter-spacing:-1.4px;margin:0;font-weight:850;text-wrap:balance}
#explore h2{font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);margin:0;font-weight:800;display:flex;align-items:center;gap:8px;flex-wrap:wrap;line-height:1.3}
#explore :focus-visible{outline:2px solid var(--accent);outline-offset:2px}

/* Sous-navigation : pastille glissante, comme les onglets du haut */
.xp-nav{position:sticky;top:8px;z-index:6;display:flex;gap:2px;width:max-content;max-width:100%;margin:8px auto 14px;padding:4px;overflow-x:auto;scrollbar-width:none;border-radius:999px;background:var(--surface-2);border:1px solid var(--hairline);box-shadow:0 8px 24px rgba(0,0,0,.08)}
html.dark .xp-nav{background:#24242a;box-shadow:0 8px 24px rgba(0,0,0,.4)}
.xp-nav::-webkit-scrollbar{display:none}
:is(#explore,.xp-ghost) .xp-nav a{position:relative;z-index:1;flex:0 0 auto;padding:8px 14px;border-radius:999px;font-size:13.5px;font-weight:750;color:var(--muted);text-decoration:none;white-space:nowrap;transition:color .25s ease}
:is(#explore,.xp-ghost) .xp-nav a:hover{color:var(--text)}
:is(#explore,.xp-ghost) .xp-nav a[aria-current="page"]{color:var(--surface)}
.xp-nav:not(.xp-ready) a[aria-current="page"]{background:var(--text)}
.xp-nav-ind{position:absolute;top:4px;bottom:4px;left:0;width:0;border-radius:999px;background:var(--text);box-shadow:0 2px 7px rgba(0,0,0,.16);opacity:0;pointer-events:none;transition:transform .42s cubic-bezier(.22,.8,.22,1),width .42s cubic-bezier(.22,.8,.22,1),opacity .2s}
@media (max-width:560px){:is(#explore,.xp-ghost) .xp-nav a{padding:8px 11px;font-size:13px}}
/* Sous-menu « trou noir » : seule la barre est aspirée par un point placé sous l’onglet Explorer, au bord bas
   de l’en-tête (fermeture), ou expulsée par ce même point (ouverture). L’effet se joue sur une copie de la barre
   (.xp-ghost, au-dessus des panneaux mais SOUS l’en-tête) : le panneau, lui, fait la même transition que les
   autres onglets, et l’effet est identique quel que soit l’onglet d’arrivée. Le vrai sous-menu reste masqué
   pendant l’effet (pas d’apparition fugitive avant l’ouverture). Transform et opacité seulement : pas de flou,
   qui faisait chuter la fluidité. */
.xp-ghost{position:fixed;inset:0;z-index:5;pointer-events:none;font-size:16px;line-height:1.55;color:var(--text);contain:layout style}
.xp-ghost .xp-nav{position:absolute;margin:0;box-sizing:border-box;overflow:visible;will-change:transform,opacity}
.xp-ghost .xp-nav a{will-change:transform,opacity}
#explore.xp-nav-off>.xp-nav{visibility:hidden}
html.xp-handoff #play,html.xp-handoff #stats,html.xp-handoff #profile{transition-delay:.22s}

/* Chargement : fine barre sous l’en-tête, contenu qui s’estompe puis glisse */
.xp-bar{position:fixed;top:104px;left:0;right:0;z-index:7;height:2px;background:var(--accent);transform-origin:0 50%;transform:scaleX(0);opacity:0;pointer-events:none}
#explore.xp-loading .xp-bar{opacity:1;animation:xpBar 1.4s cubic-bezier(.1,.7,.2,1) .12s both}
@keyframes xpBar{from{transform:scaleX(0)}to{transform:scaleX(.86)}}
.xp-root{transition:opacity .14s ease,transform .14s ease}
.xp-root.xp-out{opacity:.35;transform:translateY(4px)}
.xp-root.xp-in-r{animation:xpInR .34s cubic-bezier(.22,.8,.22,1)}
.xp-root.xp-in-l{animation:xpInL .34s cubic-bezier(.22,.8,.22,1)}
@keyframes xpInR{from{opacity:0;transform:translateX(18px)}to{opacity:1;transform:none}}
@keyframes xpInL{from{opacity:0;transform:translateX(-18px)}to{opacity:1;transform:none}}

/* Gabarit */
.sm-page{max-width:1080px;margin:0 auto;padding:0 4px;display:grid;gap:26px}
.sm-page>*{min-width:0}
.sm-crumb{font-size:12.5px;color:var(--muted);display:flex;flex-wrap:wrap;gap:6px;align-items:center;line-height:1.4}
#explore .sm-crumb a{color:var(--muted);text-decoration:none}
#explore .sm-crumb a:hover{color:var(--text)}
.sm-crumb [aria-current]{color:var(--text);font-weight:650;overflow-wrap:anywhere}
.sm-hero{display:grid;gap:14px}
.sm-kicker{font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);display:flex;align-items:center;gap:8px}
.sm-hero-ic{display:inline-grid;place-items:center;width:30px;height:30px;border-radius:10px;background:var(--accent-soft);color:var(--accent)}
.sm-hero-ic .sm-ic{width:18px;height:18px}
.sm-lede{font-size:clamp(16.5px,1.9vw,19px);line-height:1.5;color:var(--muted);max-width:64ch}
.sm-ctas{display:flex;flex-wrap:wrap;gap:10px}
#explore .sm-cta{display:inline-flex;align-items:center;justify-content:center;gap:8px;background:var(--text);color:var(--surface);border-radius:999px;padding:12px 20px;font-weight:750;font-size:15px;line-height:1.2;text-decoration:none;border:1px solid var(--text);font-family:inherit;cursor:pointer;transition:transform .15s ease,box-shadow .15s ease}
#explore .sm-cta:hover{transform:translateY(-1px);box-shadow:0 8px 20px rgba(0,0,0,.16)}
#explore .sm-cta:active{transform:scale(.97)}
#explore .sm-cta-2{background:var(--surface);color:var(--text);border-color:var(--hairline)}
.sm-more{display:grid;gap:12px}
.sm-more-h{display:flex;align-items:baseline;justify-content:space-between;gap:10px}
#explore .sm-more-h>a,#explore .sm-more-link{font-size:13.5px;font-weight:750;text-decoration:none;white-space:nowrap}
.sm-help{color:var(--muted);font-size:14px;line-height:1.5}
.sm-panel{background:var(--surface);border:1px solid var(--hairline);border-radius:22px;padding:20px;display:grid;gap:10px;box-shadow:var(--xp-shadow)}
.sm-panel>p{font-size:15px;line-height:1.55}
.sm-ic{width:22px;height:22px;flex:0 0 auto;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.sm-ic-s{width:15px;height:15px;flex:0 0 auto;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
#explore code{font-size:.9em;background:var(--surface-2);padding:1px 6px;border-radius:6px}

/* Pastilles */
.sm-chip{display:inline-flex;align-items:center;gap:6px;font-size:12.5px;font-weight:700;padding:5px 11px;border-radius:999px;background:var(--surface);color:var(--muted);border:1px solid var(--hairline);text-decoration:none;line-height:1.3;white-space:nowrap;text-transform:none;letter-spacing:0}
#explore .sm-chip.sm-theme{color:var(--accent);background:var(--accent-soft);border-color:transparent;transition:transform .15s}
#explore a.sm-chip.sm-theme:hover{transform:translateY(-1px)}
#explore .sm-chip[aria-current="page"]{background:var(--text);color:var(--surface)}
.sm-chip-n{font-size:11px;font-weight:800;opacity:.65;font-variant-numeric:tabular-nums}
#explore .sm-v-ok{color:var(--xp-ok);background:var(--xp-ok-soft);border-color:transparent}
#explore .sm-v-nu,#explore .sm-v-est,#explore .sm-v-vague,#explore .sm-v-fix{color:var(--xp-warn);background:var(--xp-warn-soft);border-color:transparent}
.sm-official{background:var(--text)!important;color:var(--surface)!important;border-color:transparent!important}
.sm-chips,.sm-meta{display:flex;flex-wrap:wrap;gap:6px}
.sm-scroll{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;margin:0 -12px;padding:2px 12px;-webkit-mask-image:linear-gradient(90deg,transparent,#000 12px,#000 calc(100% - 28px),transparent);mask-image:linear-gradient(90deg,transparent,#000 12px,#000 calc(100% - 28px),transparent)}
.sm-scroll::-webkit-scrollbar{display:none}
.sm-count{display:inline-block;min-width:1.8em;text-align:center;font-size:12px;font-weight:800;color:var(--muted);background:var(--surface-2);border-radius:999px;padding:2px 8px;letter-spacing:0;text-transform:none;font-variant-numeric:tabular-nums}

/* Chiffres clés */
.sm-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;max-width:600px}
.sm-kpis>div{background:var(--surface);border:1px solid var(--hairline);border-radius:18px;padding:12px 14px;display:grid;gap:2px}
.sm-kpis b{font-size:clamp(22px,3.4vw,32px);font-weight:850;letter-spacing:-1px;line-height:1.1;font-variant-numeric:tabular-nums}
.sm-kpis span{font-size:12.5px;line-height:1.3;color:var(--muted);font-weight:650}

/* Recherche */
.sm-filter{display:flex;align-items:center;gap:10px;height:50px;padding:0 8px 0 16px;border-radius:999px;background:var(--surface);border:1px solid var(--hairline);box-shadow:var(--xp-shadow);transition:border-color .15s,box-shadow .15s}
.sm-filter:focus-within{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}
.sm-filter svg{width:18px;height:18px;flex:0 0 18px;fill:none;stroke:var(--muted);stroke-width:2;stroke-linecap:round}
.sm-filter input{flex:1;min-width:0;height:100%;border:0;outline:none;background:transparent;color:var(--text);font:inherit;font-size:15.5px}
.sm-filter input::-webkit-search-cancel-button{cursor:pointer}
.sm-filter-n{font-size:12px;font-weight:800;color:var(--muted);background:var(--surface-2);border-radius:999px;padding:4px 10px;font-variant-numeric:tabular-nums}
.sm-empty{color:var(--muted);text-align:center;padding:24px 10px}

/* Grille de propositions : de petites cartes */
.sm-grid{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,260px),1fr));gap:12px}
#explore .sm-tile{height:100%;display:flex;flex-direction:column;gap:8px;padding:16px 16px 14px;border-radius:20px;background:var(--surface);border:1px solid var(--hairline);color:var(--text);text-decoration:none;box-shadow:0 1px 2px rgba(0,0,0,.03);transition:transform .2s cubic-bezier(.2,.8,.2,1),box-shadow .2s,border-color .2s}
#explore .sm-tile:hover{transform:translateY(-2px) rotate(-.5deg);box-shadow:0 14px 30px rgba(0,0,0,.11);border-color:color-mix(in srgb,var(--accent) 40%,var(--hairline))}
.sm-tile-k{font-size:11.5px;font-weight:800;text-transform:uppercase;letter-spacing:.07em;color:var(--muted);display:flex;align-items:center;gap:6px}
.sm-tile-t{font-size:16.5px;line-height:1.25;font-weight:780;letter-spacing:-.2px}
.sm-tile-s{font-size:13.5px;line-height:1.45;color:var(--muted);flex:1}
.sm-tile-f{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:auto}
.sm-tile-go{font-size:22px;line-height:1;color:var(--muted);transition:transform .2s,color .2s}
#explore .sm-tile:hover .sm-tile-go{transform:translateX(3px);color:var(--accent)}

/* Index : un bloc par thème */
.sm-themes{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,320px),1fr));gap:14px;align-items:stretch}
.sm-theme-block{display:flex;flex-direction:column;background:var(--surface);border:1px solid var(--hairline);border-radius:22px;padding:8px 8px 10px;box-shadow:var(--xp-shadow)}
.sm-theme-block .sm-titles{flex:1;align-content:start}
.sm-theme-block .sm-clamp-more{margin-top:auto}
.xp-filtering .sm-themes{align-items:start}
#explore .sm-tb-head{display:flex;align-items:center;gap:12px;padding:10px 10px 12px;border-radius:16px;color:var(--text);text-decoration:none;transition:background .15s}
#explore .sm-tb-head:hover{background:var(--surface-2)}
.sm-tb-ic{width:42px;height:42px;flex:0 0 42px;border-radius:14px;display:grid;place-items:center;background:var(--accent-soft);color:var(--accent)}
.sm-tb-t{display:grid;flex:1;min-width:0}
.sm-tb-t b{font-size:16.5px;line-height:1.2;letter-spacing:-.2px}
.sm-tb-t small{font-size:12.5px;color:var(--muted)}
.sm-tb-go{font-size:24px;line-height:1;color:var(--muted)}
.sm-titles{list-style:none;margin:0;padding:0 4px;display:grid}
.sm-titles>li{border-top:1px solid var(--hairline)}
#explore .sm-titles a{display:block;padding:9px 8px;font-size:14.5px;line-height:1.35;color:var(--text);text-decoration:none;border-radius:10px}
#explore .sm-titles a:hover{background:var(--surface-2)}
.sm-clamp.xp-clamped:not(.open)>li:nth-child(n+7){display:none}
.xp-filtering .sm-clamp.xp-clamped>li:not([hidden]){display:block}
.sm-clamp-more{display:block;margin:8px 4px 0;width:calc(100% - 8px);border:0;border-radius:12px;background:var(--surface-2);color:var(--text);font:inherit;font-size:13.5px;font-weight:750;padding:9px;cursor:pointer;transition:background .15s}
.sm-clamp-more:hover{background:var(--hairline)}
.xp-filtering .sm-clamp-more{display:none}

/* Page d’une proposition */
.sm-mesure{display:grid;gap:22px;align-items:start}
@media (min-width:980px){.sm-mesure{grid-template-columns:minmax(0,500px) minmax(0,1fr);gap:30px}.sm-mesure-vote{position:sticky;top:66px}}
.sm-mesure-vote{display:grid;gap:12px}
.sm-fiche{display:grid;gap:12px}
.sm-sec{background:var(--surface);border:1px solid var(--hairline);border-radius:20px;padding:18px 20px;display:grid;gap:8px}
.sm-sec p,.sm-sec li{font-size:15.5px;line-height:1.6}
.sm-sec ul{margin:0;padding-left:20px;display:grid;gap:6px}
.sm-fact{background:var(--surface-2)}
.sm-unknown{padding:10px 12px;border-radius:12px;background:var(--xp-warn-soft)}
.sm-sec .sm-help{font-size:13px}

/* Carte à juger : celle du jeu, à glisser */
.xp-vote{display:grid;gap:14px;min-width:0}
.xp-deck{position:relative;padding-top:4px}
.xp-deck::before{content:"";position:absolute;inset:16px 20px -8px;border-radius:28px;background:var(--surface);opacity:.6;transform:rotate(-2.6deg);box-shadow:0 8px 20px rgba(0,0,0,.06);pointer-events:none}
html.dark .xp-deck::before{background:#24242b}
.xp-swipe{position:relative;z-index:1;display:flex;flex-direction:column;min-height:310px;padding:24px 22px 16px;border-radius:28px;background:var(--card);box-shadow:0 12px 35px rgba(0,0,0,.10);touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;cursor:grab;outline:none;will-change:transform}
.xp-swipe:active{cursor:grabbing}
.xp-swipe:focus-visible{box-shadow:0 0 0 3px var(--accent),0 12px 35px rgba(0,0,0,.10)}
html.dark .xp-swipe{background:#1b1b20;box-shadow:0 12px 35px rgba(0,0,0,.45)}
.xp-swipe.returning{animation:cardReturn .48s cubic-bezier(.2,.8,.2,1) both}
#explore .xp-title{display:block;font-size:clamp(26px,3.4vw,31px);line-height:1.06;letter-spacing:-1.1px;margin:14px 0 16px;text-transform:none;color:var(--text);font-weight:800}
.xp-swipe .statement{margin-bottom:14px}
#explore .xp-hint{margin-top:auto;text-align:center;color:#8a8a92;font-size:12px}
.xp-stamp{position:absolute;top:20px;z-index:2;padding:5px 12px;border:3px solid currentColor;border-radius:12px;background:color-mix(in srgb,var(--card) 82%,transparent);font-size:19px;font-weight:900;letter-spacing:.05em;text-transform:uppercase;line-height:1.1;opacity:0;pointer-events:none;transition:opacity .12s ease}
html.dark .xp-stamp{background:rgba(27,27,32,.85)}
.xp-stamp-yes{right:18px;color:var(--green);transform:rotate(11deg)}
.xp-stamp-no{left:18px;color:var(--red);transform:rotate(-11deg)}
.xp-stamp-neutral{left:50%;top:auto;bottom:44px;color:var(--muted);transform:translateX(-50%) rotate(-3deg)}
.xp-stamp-super{left:50%;color:var(--accent);transform:translateX(-50%) rotate(-4deg)}
.xp-swipe[data-voted="yes"] .xp-stamp-yes,.xp-swipe[data-voted="no"] .xp-stamp-no,.xp-swipe[data-voted="neutral"] .xp-stamp-neutral,.xp-swipe[data-voted="super"] .xp-stamp-super{opacity:.92}
/* Réponse donnée : le tampon se range en bas de la carte, à la place de l’aide, et laisse lire le titre */
.xp-swipe[data-voted]:not([data-voted=""]) .xp-stamp{top:auto;bottom:12px;padding:3px 9px;border-width:2px;border-radius:9px;font-size:12.5px}
.xp-swipe[data-voted]:not([data-voted=""]) .xp-hint{visibility:hidden}
.xp-actions{display:flex;justify-content:center;align-items:center;gap:18px;padding:4px 0 22px}
.xp-actions .action{transition:transform .15s ease,box-shadow .15s ease}
.xp-actions .action:hover{transform:scale(1.07)}
.xp-actions .action:active{transform:scale(.94)}
.xp-actions .superlike{color:var(--accent)}
.xp-actions .action[aria-pressed="true"]{box-shadow:0 0 0 3px currentColor,0 6px 20px rgba(0,0,0,.12)}
.xp-actions .neutral[aria-pressed="true"]{box-shadow:0 0 0 3px #8a8a92,0 6px 20px rgba(0,0,0,.12)}
@media (max-width:440px){.xp-actions{gap:12px}.xp-actions .action{width:56px;height:56px}}
.xp-status{font-size:14px;color:var(--muted);text-align:center;line-height:1.45}
/* Réponse déjà donnée (hors carte du jour) : la carte montre la réponse, les boutons de vote cèdent la place
   à « Changer ma réponse », seule façon de la rouvrir. */
.xp-change-row{display:none;justify-content:center;padding:6px 0 18px}
.xp-locked .xp-change-row{display:flex}
.xp-locked .xp-actions{display:none}
.xp-locked .xp-swipe{cursor:default}
.xp-change{display:inline-flex;align-items:center;gap:8px;border:1px solid var(--hairline);background:var(--surface);color:var(--text);border-radius:999px;padding:11px 18px;font:inherit;font-size:14px;font-weight:750;cursor:pointer;transition:transform .16s cubic-bezier(.23,1,.32,1),background .15s ease}
.xp-change svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.xp-change:active{transform:scale(.97)}
@media (hover:hover) and (pointer:fine){.xp-change:hover{background:var(--surface-2)}}
.xp-status:empty{display:none}
.xp-players{display:grid;gap:7px;padding:12px 14px;border-radius:16px;background:var(--surface);border:1px solid var(--hairline)}
.sm-pl-h{font-size:12px;font-weight:750;color:var(--muted)}
.sm-pl-l{font-size:13.5px;color:var(--muted)}
.sm-pl-l b{color:var(--text)}
.sm-bar{display:flex;gap:2px;height:10px;border-radius:99px;overflow:hidden;background:var(--surface-2)}
.sm-bar>span{display:block;height:100%}
.b-yes{background:var(--green)}.b-neutral{background:#a0a0aa}.b-no{background:var(--red)}
.xp-reveal{border:1.5px dashed var(--hairline);border-radius:18px;transition:background .2s,border-color .2s}
.xp-reveal[open]{border-style:solid;background:var(--surface)}
.xp-reveal summary{list-style:none;cursor:pointer;padding:14px 16px;display:grid;gap:3px}
.xp-reveal summary::-webkit-details-marker{display:none}
.xp-reveal-t{font-weight:800;font-size:15.5px;display:flex;align-items:center;justify-content:space-between;gap:10px}
.xp-reveal-t::after{content:"";width:9px;height:9px;border:solid var(--muted);border-width:0 2px 2px 0;transform:rotate(45deg) translateY(-2px);transition:transform .2s}
.xp-reveal[open] .xp-reveal-t::after{transform:rotate(-135deg)}
.xp-reveal-h{font-size:13px;line-height:1.45;color:var(--muted)}
.xp-reveal[open] .xp-reveal-h{display:none}
.xp-reveal-b{padding:0 16px 16px;display:grid;gap:10px}
.xp-reveal.xp-pop .xp-reveal-b{animation:xpPop .5s cubic-bezier(.2,.9,.2,1)}
@keyframes xpPop{from{opacity:0;transform:translateY(-6px) scale(.98)}to{opacity:1;transform:none}}
.sm-who-lead{font-size:14px;color:var(--muted)}
.sm-who{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:8px}
#explore .sm-who a{display:inline-flex;align-items:center;gap:9px;padding:4px 13px 4px 4px;border-radius:999px;background:var(--surface-2);color:var(--text);font-weight:750;font-size:14px;text-decoration:none;transition:transform .15s}
#explore .sm-who a:hover{transform:translateY(-1px)}
.sm-src-h{font-size:11.5px;font-weight:800;text-transform:uppercase;letter-spacing:.07em;color:var(--muted)}
.sm-src{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:6px}
#explore .sm-src a{display:inline-block;font-size:13px;padding:4px 10px;border-radius:999px;border:1px solid var(--hairline);text-decoration:none}

/* Portraits */
.sm-badge{position:relative;display:inline-grid;place-items:center;width:32px;height:32px;flex:0 0 32px;border-radius:50%;background:var(--c);color:#fff;font-size:12px;font-weight:800;letter-spacing:0;overflow:hidden;box-shadow:0 0 0 2px var(--surface),0 0 0 3.5px var(--c)}
.sm-badge img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 25%}
.sm-badge-l{width:64px;height:64px;flex-basis:64px;font-size:20px;box-shadow:0 0 0 3px var(--surface),0 0 0 5px var(--c)}
.sm-badge-xl{width:96px;height:96px;flex-basis:96px;font-size:30px;box-shadow:0 0 0 4px var(--surface),0 0 0 7px var(--c)}
/* Fond sombre : l’anneau prend la teinte éclaircie (--cr) quand la couleur du candidat se perd dans le fond. */
html.dark .sm-badge{box-shadow:0 0 0 2px var(--surface),0 0 0 3.5px var(--cr,var(--c))}
html.dark .sm-badge-l{box-shadow:0 0 0 3px var(--surface),0 0 0 5px var(--cr,var(--c))}
html.dark .sm-badge-xl{box-shadow:0 0 0 4px var(--surface),0 0 0 7px var(--cr,var(--c))}
.sm-people{display:flex;flex-wrap:wrap;gap:8px}
#explore .sm-person{display:inline-flex;align-items:center;gap:10px;padding:5px 14px 5px 5px;border-radius:999px;background:var(--surface);border:1px solid var(--hairline);color:var(--text);text-decoration:none;font-weight:700;font-size:14px;line-height:1.2;transition:transform .15s,border-color .15s}
#explore .sm-person:hover{transform:translateY(-1px);border-color:var(--accent)}
.sm-person small{display:block;font-size:11px;color:var(--muted);font-weight:650}
#explore .sm-person-s{font-size:13px;padding-right:12px}
.sm-credits{font-size:12px;line-height:1.5;color:var(--muted)}
#explore .sm-credits a{color:var(--muted)}

/* Candidats */
.sm-cands{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,220px),1fr));gap:12px}
#explore .sm-cand-card{position:relative;height:100%;display:grid;justify-items:center;text-align:center;gap:5px;padding:24px 16px 18px;border-radius:24px;background:var(--surface);border:1px solid var(--hairline);color:var(--text);text-decoration:none;overflow:hidden;transition:transform .2s cubic-bezier(.2,.8,.2,1),box-shadow .2s}
.sm-cand-card::before{content:"";position:absolute;inset:0 0 auto;height:64px;background:linear-gradient(180deg,color-mix(in srgb,var(--c) 26%,transparent),transparent);pointer-events:none}
#explore .sm-cand-card:hover{transform:translateY(-3px) rotate(-.6deg);box-shadow:0 14px 30px rgba(0,0,0,.12)}
.sm-cand-card .sm-badge{margin-bottom:8px}
.sm-cand-name{font-weight:800;font-size:17px;letter-spacing:-.3px}
.sm-cand-meta{font-size:13px;color:var(--muted)}
.sm-cand-go{font-size:13px;font-weight:750;color:var(--accent);margin-top:4px}
.sm-cand-hero{grid-template-columns:auto minmax(0,1fr);align-items:center;gap:24px}
.sm-cand-hero-t{display:grid;gap:10px}
@media (max-width:620px){.sm-cand-hero{grid-template-columns:1fr;justify-items:start;gap:18px}}
.sm-tip{background:var(--accent-soft);border-radius:20px;padding:16px 18px;display:grid;gap:12px;font-size:15px;line-height:1.5}

/* Second tour */
.sm-duel-hero{justify-items:center;text-align:center}
.sm-duel-hero .sm-lede{margin:0 auto}
.sm-duel-hero .sm-ctas{justify-content:center}
.sm-vs{display:flex;align-items:center;justify-content:center;gap:clamp(14px,5vw,44px);padding:8px 0}
#explore .sm-vs-side{display:grid;justify-items:center;gap:8px;color:var(--text);text-decoration:none}
.sm-vs-side b{font-size:16px;line-height:1.2}
.sm-vs-side small{font-size:12px;color:var(--muted)}
.sm-vs-side:first-child .sm-badge{animation:xpVsL .6s cubic-bezier(.2,.9,.2,1) both}
.sm-vs-side:last-child .sm-badge{animation:xpVsR .6s cubic-bezier(.2,.9,.2,1) both}
@keyframes xpVsL{from{transform:translateX(-24px) rotate(-8deg);opacity:0}}
@keyframes xpVsR{from{transform:translateX(24px) rotate(8deg);opacity:0}}
.sm-vs-or{display:grid;place-items:center;width:46px;height:46px;flex:0 0 46px;border-radius:50%;background:var(--surface-2);font-size:13px;font-weight:900;text-transform:uppercase;letter-spacing:.08em;color:var(--muted)}
.sm-themecount{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.sm-themecount li{display:grid;grid-template-columns:minmax(0,240px) minmax(0,1fr) auto;align-items:center;gap:12px}
#explore .sm-themecount a{display:inline-flex;align-items:center;gap:7px;font-weight:700;font-size:14px;color:var(--text);text-decoration:none}
.sm-tbar{height:8px;border-radius:99px;background:var(--surface-2);overflow:hidden}
.sm-tbar span{display:block;height:100%;border-radius:99px;background:var(--accent)}
@media (max-width:560px){.sm-themecount li{grid-template-columns:minmax(0,1fr) auto;row-gap:6px}.sm-themecount .sm-tbar{grid-column:1/-1;grid-row:2}}
.sm-picker{background:var(--surface);border:1px solid var(--hairline);border-radius:26px;padding:20px;display:grid;gap:16px;box-shadow:var(--xp-shadow)}
.sm-picker-h{display:flex;justify-content:space-between;align-items:baseline;gap:6px 14px;flex-wrap:wrap}
.sm-picker-state{font-size:14px;font-weight:700}
.sm-picks{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,116px),1fr));gap:10px}
.sm-pick{position:relative;display:grid;justify-items:center;align-content:start;gap:9px;padding:16px 8px 12px;border-radius:18px;border:2px solid transparent;background:var(--surface-2);color:var(--text);font:inherit;font-size:13px;font-weight:750;line-height:1.2;cursor:pointer;touch-action:manipulation;transition:transform .2s cubic-bezier(.2,.9,.2,1),border-color .2s,background .2s}
.sm-pick:hover{transform:translateY(-2px)}
.sm-pick[aria-pressed="true"]{border-color:var(--text);background:var(--surface);transform:translateY(-2px) scale(1.03)}
.sm-pick[aria-pressed="true"]::after{content:attr(data-order);position:absolute;top:7px;right:8px;width:22px;height:22px;border-radius:50%;background:var(--text);color:var(--surface);font-size:12px;font-weight:800;display:grid;place-items:center}
.sm-pick-out{display:grid;justify-items:center;gap:12px;text-align:center;padding:20px 16px;border-radius:20px;background:var(--surface-2)}
.sm-pick-out .sm-ctas{justify-content:center}
.sm-pick-vs{display:flex;align-items:center;gap:16px}
#explore .sm-official-card{display:grid;justify-items:start;gap:8px;padding:18px 20px;border-radius:22px;background:var(--surface);border:2px solid var(--text);color:var(--text);text-decoration:none;font-size:20px}
.sm-duel-rows{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,340px),1fr));gap:10px;align-items:start}
.sm-duel-row,.sm-duel-links details{background:var(--surface);border:1px solid var(--hairline);border-radius:18px}
.sm-duel-row summary,.sm-duel-links summary{list-style:none;display:flex;align-items:center;gap:10px;padding:10px 14px 10px 10px;cursor:pointer;font-size:15px}
.sm-duel-links summary{padding:14px 16px;font-weight:750}
.sm-duel-row summary::-webkit-details-marker,.sm-duel-links summary::-webkit-details-marker{display:none}
.sm-duel-row summary small{margin-left:auto;color:var(--muted);font-size:12.5px;font-weight:650}
.sm-duel-row summary::after,.sm-duel-links summary::after{content:"";width:8px;height:8px;margin-left:8px;border:solid var(--muted);border-width:0 2px 2px 0;transform:rotate(45deg) translateY(-2px);transition:transform .2s}
.sm-duel-links summary::after{margin-left:auto}
.sm-duel-row[open] summary::after,.sm-duel-links details[open] summary::after{transform:rotate(-135deg)}
.sm-duel-row .sm-people,.sm-duel-links .sm-people{padding:0 12px 12px}
.sm-duel-links{gap:10px}

/* Carte du jour */
.sm-code{display:grid;gap:10px}
.sm-code textarea{width:100%;font:13px/1.5 ui-monospace,SFMono-Regular,Menlo,monospace;padding:12px 14px;border-radius:14px;border:1px solid var(--hairline);background:var(--surface-2);color:var(--text);resize:vertical}
#explore .sm-code .sm-cta{justify-self:start}
.sm-embed-details summary{cursor:pointer;font-weight:750;font-size:14px}
.sm-embed-preview{margin-top:12px;display:flex;justify-content:center}
.sm-embed-preview iframe{border:0;width:100%;max-width:480px;border-radius:24px;background:transparent}

/* Baromètre */
.sm-tabs{display:inline-flex;gap:3px;padding:3px;border-radius:999px;background:var(--surface-2);justify-self:start}
#explore .sm-tabs a{padding:8px 14px;border-radius:999px;font-size:13.5px;font-weight:750;color:var(--muted);text-decoration:none;transition:background .2s,color .2s}
#explore .sm-tabs a[aria-current="page"]{background:var(--text);color:var(--surface)}
.sm-baro-meta{font-size:13px;color:var(--muted);margin-top:-12px!important}
.sm-baro{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.sm-baro>li{display:flex;gap:12px;align-items:flex-start;background:var(--surface);border:1px solid var(--hairline);border-radius:18px;padding:12px 14px}
.sm-rank{flex:0 0 28px;height:28px;border-radius:50%;display:grid;place-items:center;background:var(--surface-2);font-size:13px;font-weight:800;color:var(--muted)}
.sm-baro-b{flex:1;min-width:0;display:grid;gap:7px}
#explore .sm-baro-b>a{font-weight:750;font-size:15px;line-height:1.3;color:var(--text);text-decoration:none}
#explore .sm-baro-b>a:hover{color:var(--accent)}
.sm-bar-l{font-size:13px;color:var(--muted)}
.sm-bar-l b{color:var(--text)}
.sm-progress{height:8px;border-radius:99px;background:var(--surface-2);overflow:hidden}
.sm-progress span{display:block;height:100%;background:var(--accent);border-radius:99px}
.sm-baro-cols{display:grid;gap:26px}
@media (min-width:900px){.sm-baro-cols{grid-template-columns:1fr 1fr}}
.sm-dot-yes,.sm-dot-no{width:10px;height:10px;border-radius:50%;background:var(--green)}
.sm-dot-no{background:var(--red)}
.sm-join{grid-template-columns:minmax(0,1fr) minmax(0,auto);align-items:center;gap:16px}
.sm-join>div{display:grid;gap:6px}
.sm-join-t{gap:16px;padding:12px 14px;border-radius:16px;background:var(--surface-2)}
.sm-join-t>span{display:grid;gap:2px}
.sm-join-t small{font-size:12.5px;color:var(--muted)}
@media (max-width:640px){.sm-join{grid-template-columns:1fr}}
.sm-method{background:var(--surface-2)}

/* Pied de page */
/* Pied de page Explorer, en trois temps et peu de mots : le bandeau d’appel au jeu (encre inversée), la marque
   avec les cinq rubriques en pastilles, puis une seule ligne légale discrète. */
.sm-foot{margin-top:36px;display:grid;gap:10px}
.sm-foot-cta{display:flex;align-items:center;justify-content:space-between;gap:18px 28px;flex-wrap:wrap;padding:26px 28px;border-radius:26px;background:var(--text);color:var(--surface)}
#explore .sm-foot-title{font-size:clamp(24px,3.8vw,36px);line-height:1.06;font-weight:850;letter-spacing:-1px}
/* « Faire le test » : un geste de swipe. Au repos, le rond fléché attend à gauche. Au clic (ou au tap), il glisse
   jusqu’à droite puis le test s’ouvre ; on peut aussi l’attraper et le faire glisser (main à la souris, doigt
   sur mobile) : lâché après la moitié, il file au bout et ouvre le test, sinon il revient. Tout suit une seule
   progression --sm-p (0 → 1) : la traînée d’encre qui remplit la pastille, anneau blanc compris, et le texte
   passé en clair avancent exactement avec le rond, au lieu d’un remplissage d’un coup à la fin. Sur les derniers
   10 % de la course, le fond du bouton vire lui aussi au sombre : le bord lissé de la traînée laissait un liseré blanc. */
@property --sm-p{syntax:'<number>';inherits:true;initial-value:0}
#explore .sm-foot-play{--sm-p:0;position:relative;isolation:isolate;display:inline-flex;align-items:center;justify-content:center;min-height:50px;padding:7px 58px 7px 64px;border-radius:999px;background:color-mix(in srgb,var(--text) clamp(0%,(var(--sm-p) - .9) * 1000%,100%),var(--surface));color:var(--text);font-weight:800;font-size:16px;text-decoration:none;white-space:nowrap;cursor:grab;touch-action:pan-y;user-select:none;-webkit-user-select:none;-webkit-user-drag:none;-webkit-tap-highlight-color:transparent;transition:transform .16s cubic-bezier(.23,1,.32,1),--sm-p .3s cubic-bezier(.4,0,.2,1)}
#explore .sm-foot-play::before{content:'';position:absolute;z-index:-1;inset:0;border-radius:999px;background:var(--text);clip-path:inset(calc(7px * (1 - var(--sm-p))) calc((100% - 43px) * (1 - var(--sm-p))) calc(7px * (1 - var(--sm-p))) calc(7px * (1 - var(--sm-p))) round 25px)}
/* Texte clair : copie du libellé découpée comme la traînée, pour que l’inversion suive le rond au pixel près. */
#explore .sm-foot-play::after{content:attr(data-label);position:absolute;inset:0;display:flex;align-items:center;justify-content:center;padding:inherit;color:var(--surface);pointer-events:none;clip-path:inset(calc(7px * (1 - var(--sm-p))) calc((100% - 43px) * (1 - var(--sm-p))) calc(7px * (1 - var(--sm-p))) calc(7px * (1 - var(--sm-p))) round 25px)}
.sm-foot-play i{position:absolute;z-index:1;top:7px;left:calc(7px + (100% - 50px) * var(--sm-p));width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:var(--text);color:var(--surface);box-shadow:0 0 0 1.5px color-mix(in srgb,var(--surface) 30%,transparent),0 3px 10px rgba(0,0,0,.18);font-style:normal;font-size:17px;line-height:1;pointer-events:none}
#explore .sm-foot-play:focus-visible{outline:2px solid var(--surface);outline-offset:3px}
#explore .sm-foot-play.is-dragging{cursor:grabbing;transition:transform .16s cubic-bezier(.23,1,.32,1)}
#explore .sm-foot-play.is-going{--sm-p:1;transition:transform .16s cubic-bezier(.23,1,.32,1),--sm-p .42s cubic-bezier(.65,0,.35,1)}
/* Survol : le rond s’avance un peu, pour inviter à l’attraper. */
@media (hover:hover) and (pointer:fine){#explore .sm-foot-play:hover:not(.is-dragging):not(.is-going){--sm-p:.1}}
@media (prefers-reduced-motion:reduce){#explore .sm-foot-play,#explore .sm-foot-play.is-going{transition:none!important}}
.sm-foot-body{display:flex;align-items:center;justify-content:space-between;gap:16px 32px;flex-wrap:wrap;padding:20px 22px 20px 26px;border-radius:26px;background:var(--surface);border:1px solid var(--hairline)}
#explore .sm-foot-brand{display:inline-flex;align-items:flex-start;gap:5px;color:var(--text);text-decoration:none}
.sm-foot-word{display:block;height:28px;width:auto;aspect-ratio:2624/1026;fill:currentColor}
.sm-foot-brand span{font-size:10.5px;line-height:1;font-weight:700;letter-spacing:.12em;color:var(--muted);margin-top:3px}
.sm-foot-nav{display:flex;flex-wrap:wrap;gap:6px}
#explore .sm-foot-nav a{padding:8px 14px;border-radius:999px;background:var(--surface-2);color:var(--text);font-size:14px;font-weight:700;text-decoration:none;white-space:nowrap;transition:background .2s ease,color .2s ease,transform .16s cubic-bezier(.23,1,.32,1)}
#explore .sm-foot-nav a:active{transform:scale(.97)}
.sm-foot-legal{display:flex;align-items:center;flex-wrap:wrap;gap:6px 18px;padding:6px 12px 0;font-size:12.5px;line-height:1.5;color:var(--muted)}
.sm-foot-legal nav{display:flex;flex-wrap:wrap;gap:4px 14px}
.sm-foot-cookies{appearance:none;margin:0;padding:0;border:0;background:none;color:inherit;font:inherit;text-decoration:underline;cursor:pointer}
#explore .sm-foot-legal a{color:var(--muted);text-decoration:none;transition:color .2s ease}
#explore .sm-foot-legal .sm-foot-pe{display:inline-flex;align-items:center;gap:7px;color:var(--text);font-weight:700}
.sm-foot-pe img{width:20px;height:20px;object-fit:contain;border-radius:5px}
#explore .sm-foot-legal p{margin-left:auto}
@media (hover:hover) and (pointer:fine){
  #explore .sm-foot-nav a:hover{background:var(--text);color:var(--surface)}
  #explore .sm-foot-legal a:hover{color:var(--text)}
}
@media (max-width:640px){
  .sm-foot-cta{padding:22px 20px;border-radius:24px}
  #explore .sm-foot-play{width:100%}
  .sm-foot-body{padding:18px;border-radius:24px}
  .sm-foot-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}
  #explore .sm-foot-nav a{text-align:center;padding:10px 8px}
  #explore .sm-foot-nav a:last-child:nth-child(odd){grid-column:1/-1}
  .sm-foot-legal{justify-content:center;text-align:center;padding:8px 8px 0}
  .sm-foot-legal nav{justify-content:center}
  #explore .sm-foot-legal p{margin-left:0;flex-basis:100%}
}

@media (max-width:560px){
  .sm-page{gap:22px;padding:0 2px}
  #explore h1{font-size:31px;letter-spacing:-1px}
  .sm-kpis{gap:8px}
  .sm-kpis>div{padding:10px 11px}
  .xp-swipe{min-height:280px;padding:20px 18px 14px}
  .sm-panel,.sm-picker{padding:16px}
  .sm-badge-xl{width:78px;height:78px;flex-basis:78px;font-size:24px}
}
/* Baromètre : coup d’œil, spectre, barres divergentes, boussole des joueurs, vous et les autres, activité */
.sm-kpis-4{grid-template-columns:repeat(4,minmax(0,1fr));max-width:none}
@media (max-width:640px){.sm-kpis-4{grid-template-columns:repeat(2,minmax(0,1fr))}}
.sm-kpis b small{font-size:.5em;font-weight:750;letter-spacing:0;color:var(--muted)}
.sm-glance{gap:18px}
.sm-glance-t{display:grid;gap:10px}
.sm-glance-big{font-size:clamp(19px,2.4vw,24px);line-height:1.35;font-weight:700;letter-spacing:-.3px;max-width:48ch}
#explore .sm-t-p3{color:var(--xp-ok)}
#explore .sm-t-p2{color:color-mix(in srgb,var(--xp-ok) 70%,var(--muted))}
#explore .sm-t-n1{color:var(--muted)}
#explore .sm-t-n2{color:color-mix(in srgb,var(--red) 70%,var(--muted))}
#explore .sm-t-n3{color:var(--red)}
.sm-spectrum svg{display:block;width:100%;height:auto;overflow:visible}
.sm-spectrum .sm-dot{stroke:var(--surface);stroke-width:1.5;transform-box:fill-box;transform-origin:center;transition:transform .15s ease}
.sm-spectrum .sm-dot.sm-t-p3{fill:#28c76f}
.sm-spectrum .sm-dot.sm-t-p2{fill:#93ddb3}
.sm-spectrum .sm-dot.sm-t-n1{fill:#b9b9c2}
.sm-spectrum .sm-dot.sm-t-n2{fill:#ffa3b6}
.sm-spectrum .sm-dot.sm-t-n3{fill:#ff375f}
html.dark .sm-spectrum .sm-dot.sm-t-p2{fill:#2f8f5a}
html.dark .sm-spectrum .sm-dot.sm-t-n1{fill:#5d5d67}
html.dark .sm-spectrum .sm-dot.sm-t-n2{fill:#a8455a}
.sm-spectrum a:hover .sm-dot,.sm-spectrum a:focus .sm-dot{transform:scale(1.4)}
.sm-spectrum a:focus{outline:none}
.sm-spectrum a.sm-mine .sm-dot{stroke:var(--text);stroke-width:2.6}
.sm-sp-axis{stroke:var(--hairline);stroke-width:2}
.sm-sp-mid{stroke:var(--muted);stroke-opacity:.35;stroke-width:1.5;stroke-dasharray:4 5}
.sm-sp-legend{display:flex;justify-content:space-between;gap:10px;margin-top:6px;font-size:12px;font-weight:700;color:var(--muted)}
.sm-sp-help{font-size:12.5px}
.sm-div{position:relative;display:block;height:10px;border-radius:99px;background:var(--surface-2)}
.sm-div::after{content:"";position:absolute;left:50%;top:-3px;bottom:-3px;width:2px;margin-left:-1px;border-radius:2px;background:var(--text);opacity:.22}
.sm-div-no,.sm-div-yes{position:absolute;top:0;bottom:0}
.sm-div-no{right:50%;border-radius:99px 0 0 99px;background:var(--red)}
.sm-div-yes{left:50%;border-radius:0 99px 99px 0;background:var(--green)}
.sm-baro-big{flex:0 0 auto;min-width:66px;display:grid;gap:3px;text-align:right;font-size:22px;font-weight:850;letter-spacing:-.6px;line-height:1;font-variant-numeric:tabular-nums}
.sm-baro-big small{font-size:11px;font-weight:700;letter-spacing:0;color:var(--muted)}
#explore .sm-rank-ic{color:var(--accent);background:var(--accent-soft)}
.sm-th-ex{display:grid;gap:2px;font-size:12.5px;line-height:1.4;color:var(--muted)}
#explore .sm-th-ex a{color:var(--muted);text-decoration:none}
#explore .sm-th-ex a:hover{color:var(--text)}
#explore .sm-you-tag{font-weight:750}
#explore .a-yes{color:var(--xp-ok)}
#explore .a-no{color:var(--red)}
#explore .a-neutral{color:var(--muted)}
.sm-you{gap:14px}
.sm-you-h{display:flex;align-items:center;gap:18px}
.sm-you-h>div:last-child{display:grid;gap:4px}
.sm-ring{position:relative;flex:0 0 96px;width:96px;height:96px;border-radius:50%;display:grid;place-items:center;background:conic-gradient(var(--accent) calc(var(--p) * 1%),var(--surface-2) 0)}
.sm-ring::before{content:"";position:absolute;inset:9px;border-radius:50%;background:var(--surface)}
.sm-ring b{position:relative;font-size:22px;font-weight:850;letter-spacing:-.6px}
.sm-you-big{font-size:20px;font-weight:800;letter-spacing:-.3px}
.sm-you-sub{margin:4px 0 0;font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.sm-you-list{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr));gap:8px}
.sm-you-list li{display:grid;gap:3px;padding:10px 12px;border-radius:14px;background:var(--surface-2)}
#explore .sm-you-list a{font-weight:750;font-size:14.5px;line-height:1.3;color:var(--text);text-decoration:none}
.sm-you-list span{font-size:13px;color:var(--muted)}
@media (max-width:480px){.sm-you-h{flex-direction:column;align-items:flex-start}}
.sm-compass{gap:18px}
.sm-cp-row{display:grid;gap:8px}
.sm-cp-h{display:flex;justify-content:space-between;align-items:baseline;gap:4px 10px;flex-wrap:wrap}
.sm-cp-h b{font-size:16px}
.sm-cp-h span{font-size:13.5px;font-weight:650;color:var(--muted)}
.sm-cp-track{position:relative;height:12px;margin-top:20px;border-radius:99px;background:linear-gradient(90deg,var(--hairline),var(--surface-2) 50%,var(--hairline))}
.sm-cp-mid{position:absolute;left:50%;top:-4px;bottom:-4px;width:2px;margin-left:-1px;background:var(--muted);opacity:.4}
.sm-cp-all,.sm-cp-me{position:absolute;top:50%;border-radius:50%;transition:left .6s cubic-bezier(.2,.9,.2,1)}
.sm-cp-all{width:20px;height:20px;margin:-10px 0 0 -10px;background:var(--accent);box-shadow:0 0 0 3px var(--surface),0 4px 10px rgba(0,0,0,.2)}
.sm-cp-me{width:14px;height:14px;margin:-7px 0 0 -7px;background:var(--text);box-shadow:0 0 0 3px var(--surface)}
.sm-cp-all i,.sm-cp-me i{position:absolute;left:50%;transform:translateX(-50%);font-style:normal;font-size:11px;font-weight:800;white-space:nowrap}
.sm-cp-all i{bottom:calc(100% + 6px);color:var(--accent)}
.sm-cp-me i{top:calc(100% + 6px);color:var(--text)}
.sm-cp-poles{display:flex;justify-content:space-between;margin-top:20px;font-size:12px;font-weight:700;color:var(--muted)}
.sm-act-svg{display:block;width:100%;height:120px}
.sm-act-svg rect{fill:var(--accent);opacity:.75;transition:opacity .15s}
.sm-act-svg rect:hover{opacity:1}
#explore .sm-up{color:var(--xp-ok);font-weight:800}
#explore .sm-down{color:var(--red);font-weight:800}
@media (max-width:560px){.sm-baro-big{min-width:54px;font-size:19px}}
.sm-baro-themes{grid-template-columns:repeat(auto-fill,minmax(min(100%,470px),1fr))}
/* Carte du jour : l’écran du paquet (bandeau de mode, grande carte, boutons ronds), puis le verso */
.sm-daily{display:grid;gap:12px;width:100%;max-width:560px;margin:0 auto}
.xp-banner{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;padding:8px 8px 8px 12px;border-radius:14px;background:var(--accent-soft);color:#24366e;font-size:12.5px;line-height:1.35}
html.dark .xp-banner{color:#c9d6ff}
#explore .xp-banner a{flex:0 0 auto;padding:4px 11px;border-radius:999px;background:var(--surface);font-size:12.5px;font-weight:800;text-decoration:none}
.xp-flipcard .xp-swipe,.xp-back{min-height:clamp(360px,52vh,500px)}
#explore .xp-flipcard .xp-title{font-size:clamp(28px,4vw,34px)}
.xp-back{position:relative;z-index:1;display:none;flex-direction:column;gap:12px;padding:24px 22px 18px;border-radius:28px;background:var(--card);box-shadow:0 12px 35px rgba(0,0,0,.10)}
html.dark .xp-back{background:#1b1b20;box-shadow:0 12px 35px rgba(0,0,0,.45)}
.xp-flipped .xp-swipe,.xp-flipped~.xp-actions{display:none}
.xp-flipped .xp-back{display:flex}
.xp-flipped .xp-actions,.xp-flipped .xp-status{display:none}
.xp-back.xp-in{animation:xpFlipIn .62s cubic-bezier(.2,.9,.2,1) both}
@keyframes xpFlipIn{from{opacity:.2;transform:perspective(1000px) rotateY(-88deg) translateX(-24px)}to{opacity:1;transform:none}}
.xp-back-ans{margin:2px 0 4px!important}
.xp-back-ans span{display:inline-block;padding:4px 14px;border:3px solid currentColor;border-radius:14px;font-size:clamp(22px,3.6vw,28px);font-weight:900;letter-spacing:.04em;text-transform:uppercase;line-height:1.1;transform:rotate(-3deg)}
#explore .xp-back-ans .a-yes{color:var(--green)}
#explore .xp-back-ans .a-super{color:var(--accent)}
.xp-back .xp-players{background:var(--surface-2);border-color:transparent}
#explore .xp-back .sm-who a{background:var(--surface-2)}
.xp-back-who{display:grid;gap:8px}
.xp-back-links{display:flex;flex-wrap:wrap;gap:8px;margin-top:auto}
.xp-back-next{font-size:12.5px;color:var(--muted);text-align:center}
/* scroll-padding : le cran de la première carte tombe à 0, sinon la liste s’ouvrait décalée (carte de gauche rognée ou masquée). */
.sm-minis{list-style:none;margin:0 -12px;padding:6px 12px 14px;display:flex;gap:14px;overflow-x:auto;scroll-snap-type:x mandatory;scroll-padding-inline:12px;scrollbar-width:none;cursor:grab;overscroll-behavior-x:contain}
.sm-minis a{-webkit-user-drag:none;user-select:none}
.sm-minis.is-grabbing{cursor:grabbing;scroll-snap-type:none;scroll-behavior:auto}
.sm-minis.is-grabbing a{cursor:grabbing;pointer-events:none}
.xp-nav a,.xp-nav svg{-webkit-user-drag:none;user-select:none;-webkit-user-select:none}
.sm-minis::-webkit-scrollbar{display:none}
.sm-minis li{flex:0 0 min(78%,230px);scroll-snap-align:start}
#explore .sm-mini{height:100%;min-height:176px;display:flex;flex-direction:column;gap:8px;padding:16px 16px 14px;border-radius:22px;background:var(--card);box-shadow:0 8px 22px rgba(0,0,0,.08);color:var(--text);text-decoration:none;transition:transform .3s cubic-bezier(.2,.9,.2,1),box-shadow .3s}
html.dark #explore .sm-mini{background:#1b1b20;box-shadow:0 8px 22px rgba(0,0,0,.4)}
.sm-minis li:nth-child(odd) .sm-mini{transform:rotate(-1.4deg)}
.sm-minis li:nth-child(even) .sm-mini{transform:rotate(1.2deg)}
#explore .sm-minis .sm-mini:hover{transform:translateY(-4px) rotate(0);box-shadow:0 16px 32px rgba(0,0,0,.13)}
.sm-mini-k{font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.07em;color:var(--muted)}
.sm-mini b{font-size:16px;line-height:1.2;letter-spacing:-.3px;font-weight:800}
.sm-mini-f{margin-top:auto;display:flex;align-items:center;justify-content:space-between;gap:6px;font-size:12px;font-weight:700;color:var(--muted)}
.sm-mini-t{display:inline-flex;align-items:center;gap:5px;min-width:0}
.sm-mini-v{flex:0 0 auto;font-weight:800}

/* Podium des idées : des marches en forme de cartes Swipe, aux couleurs des candidats ; on y monte, on s’y pose */
.sm-pd{gap:16px;overflow:hidden}
.sm-pd-head{display:flex;align-items:center;gap:14px}
/* La coupe seule, sans pastille : or soutenu en clair (contraste > 3:1 sur blanc), plus lumineux en sombre */
.sm-pd-badge{display:grid;place-items:center;width:36px;height:36px;flex:0 0 36px;color:#a87400}
html.dark .sm-pd-badge{color:#f2c230}
.sm-pd-ic{width:34px;height:34px;transform-origin:50% 85%}
.sm-pd.is-in .sm-pd-ic{animation:xpCup .9s cubic-bezier(.3,1.6,.5,1) .15s 1}
@keyframes xpCup{0%{transform:rotate(0) scale(1)}30%{transform:rotate(-12deg) scale(1.12)}60%{transform:rotate(8deg) scale(1.05)}100%{transform:none}}
.sm-pd-t{flex:1;min-width:0;display:grid;gap:3px}
.sm-pd-lede{font-size:15px;line-height:1.4;color:var(--muted)}
.sm-pd-tools{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.sm-pd-warn{display:inline-flex;align-items:center;gap:5px;padding:5px 9px;border:0;border-radius:999px;background:transparent;color:var(--muted);font:inherit;font-size:12.5px;font-weight:700;white-space:nowrap;cursor:pointer;transition:background .2s,color .2s}
.sm-pd-warn:hover,.sm-pd-warn[aria-expanded="true"]{background:var(--surface-2);color:var(--text)}
.sm-pd-how{display:grid;gap:12px;padding:14px 16px;border-radius:18px;background:var(--surface-2)}
.sm-pd-alert{display:flex;align-items:flex-start;gap:10px;padding:12px 14px;border-radius:14px;background:var(--surface);border:1px solid var(--hairline);font-size:14px;line-height:1.45}
.sm-pd-alert svg{flex:0 0 22px;width:22px;height:22px;margin-top:1px;fill:none;stroke:var(--xp-warn);stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.sm-pd-alert b{color:var(--text)}
.sm-pd-how ul{margin:0;padding-left:18px;display:grid;gap:5px;font-size:13.5px;line-height:1.45;color:var(--muted)}
.sm-pd-how ul b{color:var(--text)}
.sm-pd-warn svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;opacity:.8}
.sm-seg{position:relative;display:inline-grid;grid-auto-flow:column;grid-auto-columns:max-content;max-width:100%;padding:3px;border-radius:999px;background:var(--surface-2)}
.sm-seg button{position:relative;z-index:1;padding:8px 16px;border:0;border-radius:999px;background:transparent;color:var(--muted);font:inherit;font-size:13.5px;font-weight:750;white-space:nowrap;cursor:pointer;transition:color .25s}
.sm-seg button[aria-pressed="true"]{color:var(--surface)}
.sm-seg-ind{position:absolute;top:3px;bottom:3px;left:0;width:var(--w,50%);border-radius:999px;background:var(--text);box-shadow:0 2px 7px rgba(0,0,0,.16);transform:translateX(var(--x,3px));transition:transform .42s cubic-bezier(.22,.8,.22,1),width .42s cubic-bezier(.22,.8,.22,1)}
.sm-pd-stage{display:grid;gap:14px}
.sm-pd-podium{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:end;gap:clamp(8px,2vw,16px);width:100%;max-width:680px;margin:8px auto 0}
#explore .sm-pd-step{--d:0s;display:flex;flex-direction:column;align-items:center;min-width:0;color:var(--text);text-decoration:none}
.sm-pd-2{--d:.05s!important}.sm-pd-1{--d:.2s!important}.sm-pd-3{--d:.35s!important}
.sm-pd-who{position:relative;z-index:2;margin-bottom:-28px;transition:transform .25s cubic-bezier(.2,.9,.2,1)}
.sm-pd-who .sm-badge{box-shadow:0 0 0 4px var(--card),0 0 0 6.5px var(--c),0 10px 22px rgba(0,0,0,.18)}
html.dark .sm-pd-who .sm-badge{box-shadow:0 0 0 4px #24242b,0 0 0 6.5px var(--cr,var(--c)),0 10px 22px rgba(0,0,0,.4)}
.sm-pd-1 .sm-badge-l{width:88px;height:88px;flex-basis:88px;font-size:26px}
#explore .sm-pd-step:hover .sm-pd-who{transform:translateY(-4px) rotate(-3deg)}
.sm-pd-medal{position:absolute;right:-6px;bottom:-2px;width:28px;height:28px;border-radius:50%;display:grid;place-items:center;font-size:12.5px;font-weight:900;color:#3a2a00;background:linear-gradient(135deg,#ffe596,#f5b301);box-shadow:0 0 0 3px var(--card),0 4px 10px rgba(0,0,0,.2)}
.sm-pd-2 .sm-pd-medal{color:#2b3240;background:linear-gradient(135deg,#f2f4f8,#a9b1be)}
.sm-pd-3 .sm-pd-medal{color:#3b1f08;background:linear-gradient(135deg,#f6c9a1,#c27a40)}
.sm-pd-block{position:relative;width:100%;display:flex;flex-direction:column;align-items:center;gap:2px;padding:38px 8px 14px;border-radius:22px 22px 10px 10px;background:var(--card);box-shadow:0 12px 30px rgba(0,0,0,.08);text-align:center;overflow:hidden;transform-origin:50% 100%}
html.dark .sm-pd-block{background:#24242b;box-shadow:0 12px 30px rgba(0,0,0,.35)}
.sm-pd-block{--hl:rgba(255,255,255,.7)}
html.dark .sm-pd-block{--hl:rgba(255,255,255,.07)}
.sm-pd-1 .sm-pd-block{min-height:198px;color:#4a3300;background:linear-gradient(165deg,color-mix(in srgb,#ffe27a 60%,var(--card)),color-mix(in srgb,#efb21c 52%,var(--card)));box-shadow:inset 0 1px 0 var(--hl),0 12px 28px rgba(200,140,0,.16)}
.sm-pd-2 .sm-pd-block{min-height:166px;color:#28303d;background:linear-gradient(165deg,color-mix(in srgb,#f1f4f8 70%,var(--card)),color-mix(in srgb,#b4bcc8 52%,var(--card)));box-shadow:inset 0 1px 0 var(--hl),0 12px 28px rgba(90,105,125,.14)}
.sm-pd-3 .sm-pd-block{min-height:144px;color:#4a250b;background:linear-gradient(165deg,color-mix(in srgb,#f8cfa8 60%,var(--card)),color-mix(in srgb,#cd8750 50%,var(--card)));box-shadow:inset 0 1px 0 var(--hl),0 12px 28px rgba(160,90,40,.14)}
html.dark .sm-pd-1 .sm-pd-block,html.dark .sm-pd-2 .sm-pd-block,html.dark .sm-pd-3 .sm-pd-block{color:var(--text)}
html.dark .sm-pd-1 .sm-pd-block{background:linear-gradient(165deg,color-mix(in srgb,#f2c230 34%,#24242b),color-mix(in srgb,#b8860b 26%,#24242b))}
html.dark .sm-pd-2 .sm-pd-block{background:linear-gradient(165deg,color-mix(in srgb,#d9dee6 26%,#24242b),color-mix(in srgb,#8d97a6 22%,#24242b))}
html.dark .sm-pd-3 .sm-pd-block{background:linear-gradient(165deg,color-mix(in srgb,#e3a273 32%,#24242b),color-mix(in srgb,#a3602d 24%,#24242b))}
.sm-pd-block .sm-pd-val small,.sm-pd-block .sm-pd-sub{color:inherit;opacity:.72}
.sm-pd-block .sm-pd-num{color:inherit;opacity:.13}
.sm-pd-name{max-width:100%;font-size:clamp(10.5px,3.4vw,13.5px);line-height:1.2;font-weight:800;text-wrap:balance}
.sm-pd-val{display:flex;align-items:baseline;gap:1px;margin-top:4px;font-size:clamp(26px,4.4vw,36px);font-weight:900;letter-spacing:-1.2px;line-height:1;font-variant-numeric:tabular-nums}
.sm-pd-val small{font-size:.5em;letter-spacing:0;color:var(--muted)}
.sm-pd-1 .sm-pd-val{font-size:clamp(32px,5.4vw,46px)}
.sm-pd-sub{font-size:11.5px;font-weight:700;color:var(--muted)}
.sm-pdtab-wrap{overflow-x:auto;margin:6px 0 4px;border-radius:14px;background:var(--surface-2)}
.sm-pdtab{width:100%;border-collapse:collapse;font-size:13px;font-variant-numeric:tabular-nums}
.sm-pdtab th,.sm-pdtab td{padding:9px 10px;text-align:right;white-space:nowrap}
.sm-pdtab thead th{font-size:11px;font-weight:750;color:var(--muted);white-space:normal;vertical-align:bottom}
.sm-pdtab th[scope="row"],.sm-pdtab td:first-child,.sm-pdtab thead th:nth-child(-n+2){text-align:left}
.sm-pdtab tbody tr+tr{border-top:1px solid var(--line,rgba(127,127,127,.18))}
.sm-pdtab tbody td:nth-child(3){font-weight:850}
.sm-pd-solid{margin:14px 2px 0;font-size:12.5px;line-height:1.5;color:var(--muted)}
.sm-pd-solid b{color:var(--text)}
.sm-pd-solid a{color:inherit;font-weight:750;text-underline-offset:2px}
#explore .sm-faceoff{margin:0 0 14px}
.sm-pd-num{position:absolute;right:8px;bottom:-14px;font-style:normal;font-size:74px;font-weight:900;line-height:1;color:var(--text);opacity:.06;pointer-events:none}
.sm-pd-block::after{content:"";position:absolute;inset:0;background:linear-gradient(105deg,transparent 35%,var(--hl) 50%,transparent 65%);transform:translateX(-130%);pointer-events:none}
.sm-pd.is-in .sm-pd-block::after{animation:xpShine 1.1s ease calc(var(--d) + 1.05s) 1}
@keyframes xpShine{to{transform:translateX(130%)}}
.sm-pd-list{list-style:none;margin:4px 0 0;padding:0;display:grid;gap:6px}
#explore .sm-pd-list a{display:flex;align-items:center;gap:12px;padding:9px 14px 9px 10px;border-radius:16px;background:var(--surface-2);color:var(--text);text-decoration:none;transition:transform .2s cubic-bezier(.2,.9,.2,1)}
#explore .sm-pd-list a:hover{transform:translateX(4px)}
.sm-pd-rk{width:22px;flex:0 0 22px;text-align:center;font-size:13px;font-weight:800;color:var(--muted);font-variant-numeric:tabular-nums}
.sm-pd-row{flex:1;min-width:0;display:grid;gap:6px}
.sm-pd-row-t{display:flex;align-items:baseline;justify-content:space-between;gap:8px;min-width:0}
.sm-pd-row-t b{min-width:0;font-size:14.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sm-pd-row-t small{flex:0 0 auto;font-size:11.5px;color:var(--muted);white-space:nowrap}
.sm-pd-bar{height:7px;border-radius:99px;background:var(--surface);overflow:hidden}
html.dark .sm-pd-bar{background:#1b1b20}
.sm-pd-bar span{display:block;width:var(--w);height:100%;border-radius:99px;background:var(--c)}
.sm-pd-rv{flex:0 0 auto;min-width:46px;margin-left:4px;text-align:right;font-size:17px;font-weight:850;font-variant-numeric:tabular-nums}
.sm-pd.xp-anim .sm-pd-block{transform:scaleY(0)}
.sm-pd.xp-anim .sm-pd-who{opacity:0;transform:translateY(-18px) scale(.85)}
.sm-pd.xp-anim .sm-pd-name,.sm-pd.xp-anim .sm-pd-val,.sm-pd.xp-anim .sm-pd-sub{opacity:0;transform:translateY(8px)}
.sm-pd.xp-anim .sm-pd-list li{opacity:0;transform:translateY(10px)}
.sm-pd.xp-anim .sm-pd-bar span{width:0}
.sm-pd.is-in .sm-pd-block{transform:none;transition:transform .7s cubic-bezier(.2,.9,.2,1) var(--d)}
.sm-pd.is-in .sm-pd-who{opacity:1;transform:none;transition:opacity .35s ease calc(var(--d) + .45s),transform .6s cubic-bezier(.3,1.5,.5,1) calc(var(--d) + .45s)}
.sm-pd.is-in .sm-pd-name,.sm-pd.is-in .sm-pd-val,.sm-pd.is-in .sm-pd-sub{opacity:1;transform:none;transition:opacity .4s ease calc(var(--d) + .3s),transform .5s cubic-bezier(.2,.9,.2,1) calc(var(--d) + .3s)}
.sm-pd.is-in .sm-pd-list li{opacity:1;transform:none;transition:opacity .4s ease calc(.6s + var(--i,0) * 60ms),transform .5s cubic-bezier(.2,.9,.2,1) calc(.6s + var(--i,0) * 60ms)}
.sm-pd.is-in .sm-pd-bar span{width:var(--w);transition:width .9s cubic-bezier(.2,.9,.2,1) calc(.75s + var(--i,0) * 60ms)}
.sm-how{padding-top:10px;border-top:1px solid var(--hairline)}
.sm-how summary{display:flex;align-items:center;gap:7px;list-style:none;cursor:pointer;font-size:13px;font-weight:750;color:var(--muted)}
.sm-how summary::-webkit-details-marker{display:none}
.sm-how summary::before{content:"";width:6px;height:6px;border:solid currentColor;border-width:0 2px 2px 0;transform:rotate(-45deg);transition:transform .2s}
.sm-how[open] summary::before{transform:rotate(45deg)}
.sm-how ul{margin:8px 0 0;padding-left:18px;display:grid;gap:4px;font-size:13px;line-height:1.45;color:var(--muted)}
.sm-how b{color:var(--text)}
@media (max-width:520px){
  .sm-pd-step .sm-badge-l{width:56px;height:56px;flex-basis:56px;font-size:17px}
  .sm-pd-1 .sm-badge-l{width:70px;height:70px;flex-basis:70px;font-size:21px}
  .sm-pd-who{margin-bottom:-22px}
  .sm-pd-medal{width:23px;height:23px;font-size:11px}
  .sm-pd-block{padding:30px 4px 10px;border-radius:18px 18px 8px 8px}
  .sm-pd-1 .sm-pd-block{min-height:160px}.sm-pd-2 .sm-pd-block{min-height:134px}.sm-pd-3 .sm-pd-block{min-height:118px}
  .sm-pd-num{display:none}
  .sm-pd-row-t{flex-direction:column;align-items:flex-start;gap:1px}
  .sm-seg button{padding:8px 13px;font-size:12.5px}
}
@media (max-width:420px){.sm-pd-fn{display:none}}
@media (max-width:340px){html :is(#explore,.xp-ghost) .xp-nav a{font-size:9.6px;letter-spacing:-.3px;padding-left:0;padding-right:0}html .xp-nav svg{width:19px;height:19px}}

/* Comment lire ces chiffres : quatre repères courts */
.sm-facts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
@media (max-width:900px){.sm-facts{grid-template-columns:repeat(2,minmax(0,1fr))}}
.sm-facts>div{display:grid;gap:3px;align-content:start;padding:14px;border-radius:18px;background:var(--surface);border:1px solid var(--hairline)}
.sm-facts svg{width:22px;height:22px;margin-bottom:4px;fill:none;stroke:var(--accent);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.sm-facts b{font-size:14.5px;line-height:1.25}
.sm-facts span{font-size:13px;line-height:1.4;color:var(--muted)}

/* Raccourcis clavier sous les boutons : seulement quand la place et un clavier sont là */
@media (max-width:640px),(hover:none),(pointer:coarse){.act-lbl kbd{display:none}}

/* Sous-navigation sur mobile : quatre onglets à icône, tous visibles, comme une barre d’onglets iOS */
.xp-nav svg,.xp-nav .xp-s{display:none}
@media (max-width:560px){
  .xp-nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));width:100%;overflow:visible;border-radius:20px}
  :is(#explore,.xp-ghost) .xp-nav a{display:grid;justify-items:center;gap:3px;min-width:0;padding:7px 1px 6px;border-radius:16px;font-size:10.5px;font-weight:750;line-height:1.1;letter-spacing:-.1px}
  .xp-nav svg{display:block;width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
  .xp-nav .xp-l{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
  .xp-nav .xp-s{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .xp-nav .xp-day{fill:currentColor;stroke:none;font:900 7.6px/1 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
  .xp-nav-ind{border-radius:16px}
}

/* Fiches : chaque rubrique repérée par un pictogramme dans une pastille teintée (plus de liseré coloré) */
.sm-sec h2{gap:9px}
.sm-sec-ic{display:inline-grid;place-items:center;width:26px;height:26px;flex:0 0 26px;border-radius:9px;background:var(--surface-2);color:var(--muted)}
.sm-sec-ic svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
#explore .sm-sec-ic.sm-t-acc{background:var(--accent-soft);color:var(--accent)}
#explore .sm-sec-ic.sm-t-ok{background:var(--xp-ok-soft);color:var(--xp-ok)}
#explore .sm-sec-ic.sm-t-red{background:color-mix(in srgb,var(--red) 12%,var(--surface));color:var(--red)}
.sm-fact .sm-sec-ic{background:var(--surface)}
.sm-caution li::marker{color:var(--red)}
/* Carte déjà répondue */
.xp-known{display:flex;align-items:center;flex-wrap:wrap;gap:8px 10px;padding:10px 12px;border-radius:14px;background:var(--surface);border:1px solid var(--hairline);font-size:13.5px}
.xp-known svg{width:18px;height:18px;flex:0 0 18px;fill:none;stroke:var(--xp-ok);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.xp-known-t{flex:1;min-width:150px;font-weight:650}
.xp-known-b{display:flex;gap:6px}
.xp-known button{padding:6px 12px;border:0;border-radius:999px;font:inherit;font-size:12.5px;font-weight:800;cursor:pointer;transition:transform .15s}
.xp-known button:active{transform:scale(.96)}
.xp-known-keep{background:var(--text);color:var(--surface)}
.xp-known-change{background:var(--surface-2);color:var(--text)}
#explore .sm-mini-done{color:var(--xp-ok)}
/* Lien PromethEUs : logo en petit, souligné net, flèche qui s’échappe au survol */
.pe-link{font-weight:800;color:var(--text)!important;text-decoration:underline;text-decoration-thickness:1.5px;text-underline-offset:3px;text-decoration-color:color-mix(in srgb,currentColor 35%,transparent);white-space:nowrap;transition:text-decoration-color .2s}
.pe-link img{display:inline-block;width:1.2em;height:auto;margin:0 .3em 0 .05em;vertical-align:-.27em}
.pe-link::after{content:"↗";display:inline-block;margin-left:.15em;font-size:.82em;transition:transform .2s ease}
.pe-link:hover{text-decoration-color:currentColor}
.pe-link:hover::after{transform:translate(2px,-2px)}
/* Lien discret vers la page d’intégration */
.sm-aside{text-align:center;font-size:13px}
#explore .sm-aside a{color:var(--muted);text-decoration:none}
#explore .sm-aside a:hover{color:var(--text);text-decoration:underline}
.sm-embed{gap:12px}
