/* =====================================================================
   Dis oui : styles (mobile d'abord, ordinateur à partir de 960 px)
   ===================================================================== */
:root {
  --soft: #FFE6EF; --paper: #FFF7FA; --candy: #EE3F72; --rasp: #8A1446; --ink0: #5A0B2E; --line: #FFC8DD; --muted: #B0577D;
  --logo: 'Bagel Fat One', 'Rubik', 'ZCOOL KuaiLe', system-ui, sans-serif;
  --body: 'Bricolage Grotesque', 'Rubik', 'PingFang SC', 'Microsoft YaHei', system-ui, -apple-system, sans-serif;
  --sat: env(safe-area-inset-top, 0px); --sab: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: var(--body); color: var(--ink0); background: var(--soft); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
body.solo { overflow: hidden; overscroll-behavior: none; position: fixed; inset: 0; }
button, input, select { font: inherit; }
button { touch-action: manipulation; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* =====================================================================
   Scène destinataire
   ===================================================================== */
.stage { --disp: 'Bagel Fat One', system-ui, sans-serif; position: relative; width: 100%; height: 100%; background: var(--bg); overflow: hidden; font-family: var(--body); color: var(--ink); transition: background .5s; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.sat, .sab { position: absolute; left: 0; width: 1px; pointer-events: none; visibility: hidden; }
.sat { top: 0; height: var(--sat); } .sab { bottom: 0; height: var(--sab); }
.stage.inset { --sat: 34px; --sab: 0px; }
.bgh { position: absolute; inset: 0; pointer-events: none; }
.fl { position: absolute; bottom: -60px; animation: rise linear infinite; will-change: transform; }
.fl svg { display: block; width: 100%; height: 100%; overflow: visible; }
@keyframes rise { 0% { transform: translateY(0) rotate(-14deg); opacity: 0; } 12% { opacity: 1; } 100% { transform: translateY(calc(var(--h, 800px) * -1)) rotate(24deg); opacity: 0; } }
.scene { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(12px, 2.6vh, 22px); padding: calc(58px + var(--sat)) 16px calc(26px + var(--sab)); text-align: center; }
.hw { position: relative; width: min(84%, 420px, 46vh); aspect-ratio: 100/92; container-type: inline-size; flex: none; }
.hw.small { width: min(44%, 240px, 26vh); }
.hw.balloon { margin-bottom: 26px; }
.hw.small.balloon { margin-bottom: 14px; }
.tilt { position: absolute; inset: 0; transition: transform .25s ease-out; }
.hsvg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ht { position: absolute; display: flex; align-items: center; justify-content: center; }
.qq { margin: 0; font-family: var(--disp); font-weight: 800; font-synthesis: none; color: var(--ontext); line-height: 1.04; overflow-wrap: anywhere; }
.f-pacifico .qq { line-height: 1.3; }
.f-playfair .qq { font-style: italic; line-height: 1.08; }
.f-mono .qq { line-height: 1.12; }
.hsub { margin: .45em 0 0; color: var(--sub); font-weight: 600; font-family: var(--body); font-style: normal; line-height: 1.2; }
.w { display: inline-block; animation: wd .5s cubic-bezier(.2, 1.6, .4, 1) both; }
@keyframes wd { 0% { transform: translateY(.45em) scale(.5); opacity: 0; } 100% { transform: none; opacity: 1; } }
.beat { animation: arrive .7s cubic-bezier(.2, 1.5, .4, 1) both, beat 1.7s ease-in-out .8s infinite; }
@keyframes arrive { 0% { transform: translateY(-60px) scale(.4); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes beat { 0%, 100% { transform: scale(1); } 12% { transform: scale(1.06); } 24% { transform: scale(.98); } 36% { transform: scale(1.04); } 52% { transform: scale(1); } }
.popin { animation: in .62s cubic-bezier(.2, 1.5, .4, 1) both; }
@keyframes in { 0% { transform: scale(.4) rotate(-12deg); opacity: 0; } 100% { transform: none; opacity: 1; } }
.out { animation: out .38s ease-in forwards; }
@keyframes out { to { transform: scale(1.5) rotate(6deg); opacity: 0; } }
.shake { animation: shake .45s ease; }
@keyframes shake { 20% { rotate: -7deg; } 40% { rotate: 6deg; } 60% { rotate: -4deg; } 80% { rotate: 2deg; } 100% { rotate: 0deg; } }
.from { margin: 0; color: var(--mut); font-size: 17px; animation: rise2 .5s .45s both; }
.from b { font-weight: 800; color: var(--ink); }
@keyframes rise2 { 0% { translate: 0 14px; opacity: 0; } 100% { translate: 0 0; opacity: 1; } }
.pills { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; align-items: center; min-height: 64px; max-width: 100%; }
.pill { --s: 1; font-family: var(--disp); font-size: 20px; font-weight: 800; font-synthesis: none; line-height: 1.1; min-height: 52px; padding: 14px 28px; border: none; border-radius: 999px; cursor: pointer; white-space: nowrap; max-width: 92vw; overflow: hidden; text-overflow: ellipsis;
  transform: scale(var(--s)); transition: transform .28s cubic-bezier(.3, 1.6, .5, 1), left .35s ease, top .35s ease; box-shadow: inset 0 -5px 0 rgba(0, 0, 0, .14); touch-action: none;
  animation: drop .5s cubic-bezier(.2, 1.6, .4, 1) both; }
.f-playfair .pill { font-style: italic; }
.f-mono .pill { font-size: 16px; }
.pill:active { box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .14); }
.pill:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.pill.main { background: var(--main); color: var(--onmain); animation: drop .5s cubic-bezier(.2, 1.6, .4, 1) both, wig 3.2s ease-in-out infinite; }
.pill.c0 { background: var(--c0b); color: var(--c0t); }
.pill.c1 { background: var(--c1b); color: var(--c1t); }
.pill.c2 { background: var(--c2b); color: var(--c2t); }
.pill.loose { position: absolute; z-index: 6; margin: 0; animation: none; }
.pill.tp { transition: transform .28s; }
.pill.chosen { animation: ch .32s ease; }
@keyframes drop { 0% { translate: 0 34px; opacity: 0; } 100% { translate: 0 0; opacity: 1; } }
@keyframes wig { 0%, 84%, 100% { rotate: 0deg; } 88% { rotate: -7deg; } 92% { rotate: 6deg; } 96% { rotate: -3deg; } }
@keyframes ch { 50% { scale: 1.22; } 100% { scale: 1; } }
.prog { display: flex; gap: 6px; justify-content: center; align-items: center; height: 12px; }
.pip { width: 10px; height: 10px; border-radius: 999px; background: var(--pip); transition: width .4s cubic-bezier(.3, 1.6, .5, 1), background .3s; }
.pip.on { background: var(--main); }
.pip.cur { width: 28px; background: var(--shape); }
.sent { display: flex; gap: 12px; align-items: center; background: #fff; border-radius: 999px; padding: 9px 20px 9px 9px; box-shadow: 0 5px 0 rgba(0, 0, 0, .08); animation: drop .5s cubic-bezier(.2, 1.6, .4, 1) 1s both; text-align: left; max-width: 94%; }
.chk { width: 40px; height: 40px; flex: none; }
.chk circle { fill: #2FB57A; transform-origin: center; animation: ckc .4s cubic-bezier(.2, 1.6, .4, 1) 1.1s both; }
.chk path { fill: none; stroke: #fff; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .35s ease-out 1.4s forwards; }
@keyframes ckc { 0% { transform: scale(0); } 100% { transform: scale(1); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
.s1 { margin: 0; font-weight: 800; font-size: 16px; color: var(--tink); }
.s2 { margin: 2px 0 0; font-size: 13px; color: var(--tmut); }
.ticket { background: rgba(255, 255, 255, .9); border-radius: 18px; padding: 10px 18px 4px; width: min(92%, 380px); text-align: left; box-shadow: 0 6px 0 rgba(0, 0, 0, .08); overflow: auto; min-height: 0; flex: 0 1 auto; animation: drop .55s cubic-bezier(.2, 1.4, .4, 1) 1.55s both; -webkit-overflow-scrolling: touch; }
.tk-h { margin: 0 0 4px; font-size: 13px; color: var(--tmut); font-weight: 800; }
.tk-r { padding: 7px 0; border-top: 2px dotted var(--tline); }
.tk-q { font-size: 13px; color: var(--tmut); }
.tk-a { font-weight: 800; font-size: 16px; color: var(--tink); }
.turn { display: flex; flex-direction: column; align-items: center; gap: 10px; animation: drop .55s cubic-bezier(.2, 1.4, .4, 1) 1.9s both; }
.turn p { margin: 0; font-size: 15px; color: var(--ink); font-weight: 600; max-width: 300px; line-height: 1.35; }
.turn .hint { font-size: 12px; color: var(--mut); max-width: 280px; }
.turn .pill { animation: wig 3.2s ease-in-out 3s infinite; }
.foot { position: absolute; left: 0; right: 0; bottom: calc(8px + var(--sab)); display: flex; justify-content: center; gap: 8px; font-size: 12px; color: var(--mut); z-index: 3; }
.foot a, .foot button { color: inherit; background: none; border: none; padding: 4px 6px; text-decoration: none; cursor: pointer; font-size: 12px; opacity: .85; }
.plane { position: absolute; z-index: 7; width: 54px; height: 54px; pointer-events: none; animation: fly 1.25s cubic-bezier(.45, .05, .4, 1) .2s both; }
@keyframes fly { 0% { left: -12%; top: 72%; rotate: -6deg; opacity: 0; } 10% { opacity: 1; } 55% { top: 48%; rotate: -14deg; } 100% { left: 108%; top: 16%; rotate: -30deg; opacity: 1; } }
.still .w, .still .pill, .still .from, .still .sent, .still .ticket, .still .turn, .still .popin, .still .chk circle { animation: none !important; }
.still .chk path { animation: none; stroke-dashoffset: 0; }
.still .pill.main { animation: wig 3.2s ease-in-out infinite !important; }
.x, .again { position: absolute; top: calc(12px + var(--sat)); z-index: 9; height: 44px; border: none; background: #fff; color: var(--tink); cursor: pointer; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .1); font-weight: 800; }
.x { right: 12px; width: 44px; border-radius: 50%; font-size: 18px; }
.again { left: 12px; border-radius: 999px; padding: 0 16px; font-size: 14px; }
.bst { position: absolute; z-index: 8; pointer-events: none; animation: pop 1.5s cubic-bezier(.15, .8, .3, 1) forwards; }
.bst svg { display: block; width: 100%; height: 100%; overflow: visible; }
@keyframes pop { 0% { transform: translate(0, 0) scale(.3) rotate(0); opacity: 1; } 70% { opacity: 1; } 100% { transform: translate(var(--dx), calc(var(--dy) + 60px)) scale(1) rotate(var(--r)); opacity: 0; } }
.msg { position: fixed; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 24px; text-align: center; background: #FFC8DD; color: var(--ink0); }
.msg p { margin: 0; font-size: 18px; max-width: 320px; line-height: 1.4; }
.spin { width: 46px; height: 46px; animation: beat 1.2s ease-in-out infinite; }

/* Paysage sur téléphone : on compacte */
@media (orientation: landscape) and (max-height: 500px) {
  .scene { flex-direction: row; flex-wrap: wrap; align-content: center; gap: 10px 24px; padding-top: 16px; padding-bottom: 16px; }
  .hw { width: min(40vw, 62vh); }
  .hw.small { width: min(24vw, 38vh); }
  .prog { width: 100%; }
  .ticket { max-height: 60vh; width: min(40vw, 340px); }
  .turn p { font-size: 13px; }
}

/* =====================================================================
   Éditeur
   ===================================================================== */
.top { display: flex; justify-content: space-between; align-items: center; max-width: 1120px; margin: 0 auto; padding: calc(12px + var(--sat)) 16px 12px; gap: 10px; flex-wrap: wrap; }
.logo { font-family: var(--logo); font-size: 28px; color: var(--candy); line-height: 1; text-decoration: none; }
.topr { display: flex; gap: 8px; align-items: center; }
.tabs { display: flex; gap: 4px; background: #fff; border: 2px solid var(--line); border-radius: 999px; padding: 3px; }
.m-hide { display: none; }
.tabs button { white-space: nowrap; font-weight: 800; font-size: 14px; border: none; background: none; color: var(--rasp); border-radius: 999px; padding: 8px 14px; cursor: pointer; min-height: 38px; }
.tabs .on { background: var(--ink0); color: #fff; }
.langsel { font-weight: 800; font-size: 14px; border: 2px solid var(--line); background: #fff; color: var(--rasp); border-radius: 999px; padding: 8px 10px; min-height: 44px; }
.demo { max-width: 1120px; margin: 0 auto 4px; padding: 0 16px; font-size: 13px; color: var(--muted); }
.grid { max-width: 1120px; margin: 0 auto; padding: 0 16px calc(110px + var(--sab)); display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: start; }
.side { display: none; }
.intro { font-size: 17px; line-height: 1.5; max-width: 34em; margin: 0 0 8px; color: var(--rasp); }
.h2 { font-family: var(--logo); font-weight: 400; font-size: 24px; margin: 26px 0 12px; color: var(--ink0); display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.h2 small { font-family: var(--body); font-size: 15px; color: var(--muted); }
.stepper { display: flex; align-items: center; gap: 10px; margin: 6px 0 2px; }
.stepper .dots { display: flex; gap: 5px; }
.stepper .dots span { width: 8px; height: 8px; border-radius: 999px; background: var(--line); transition: width .35s cubic-bezier(.3, 1.6, .5, 1), background .3s; }
.stepper .dots span.on { background: var(--rasp); }
.stepper .dots span.cur { width: 24px; background: var(--candy); }
.stepper small { font-size: 13px; color: var(--muted); font-weight: 600; }
.step { display: none; }
.step.cur { display: block; animation: drop .4s cubic-bezier(.2, 1.4, .4, 1) both; }
.occ { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.occ button { font-weight: 800; font-size: 15px; padding: 16px 14px; border-radius: 18px; border: 2px solid var(--line); background: var(--paper); color: var(--rasp); cursor: pointer; text-align: left; min-height: 88px; transition: transform .2s cubic-bezier(.3, 1.6, .5, 1); }
.occ button:active { transform: scale(.97); }
.occ .ico { display: flex; gap: 6px; align-items: center; margin-bottom: 10px; }
.sw { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); display: inline-block; flex: none; }
.occ .on { color: #fff; border-color: transparent; }
.card { background: var(--paper); border: 2px solid var(--line); border-radius: 22px; padding: 16px; margin-bottom: 12px; }
.lab { display: block; font-size: 14px; font-weight: 800; color: var(--rasp); margin-bottom: 8px; }
.sec { margin-top: 20px; }
.sec:first-child { margin-top: 0; }
.in, select { font-size: 16px; padding: 11px 14px; min-height: 48px; border: 2px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink0); width: 100%; }
.in:focus, select:focus { outline: none; border-color: var(--candy); }
.two { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.rowx { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.rowx .lab { margin: 0; }
.dice { font-weight: 800; font-size: 14px; color: #fff; background: var(--ink0); border: none; border-radius: 999px; padding: 10px 16px; min-height: 40px; cursor: pointer; }
.dice.roll { animation: roll .5s ease; }
@keyframes roll { 50% { rotate: 200deg; scale: 1.15; } 100% { rotate: 360deg; } }
/* Carrousels horizontaux sur mobile */
.scroller { display: grid; grid-auto-flow: column; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 2px 16px 8px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.scroller::-webkit-scrollbar { display: none; }
.scroller > * { scroll-snap-align: start; }
.pals { grid-auto-columns: 74px; }
.shapes { grid-auto-columns: 82px; }
.pal, .shp { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 4px 8px; border-radius: 14px; border: 2px solid var(--line); background: #fff; cursor: pointer; font-size: 12px; font-weight: 800; color: var(--rasp); }
.pal .dots { display: flex; }
.pal .dots span { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #fff; margin-left: -6px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); }
.pal .dots span:first-child { margin-left: 0; }
.shp svg { width: 46px; height: 44px; overflow: visible; }
.pal.on, .shp.on, .chip.on { border-color: var(--ink0); box-shadow: 0 0 0 2px var(--ink0) inset; }
.lock { position: absolute; top: 4px; right: 4px; font-size: 10px; font-weight: 800; background: #FFD23F; color: #5C3D00; border-radius: 999px; padding: 2px 6px; }
.chip .lock { position: static; margin-left: 4px; }
.colors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.col { display: flex; flex-direction: column; align-items: center; gap: 6px; background: #fff; border: 2px solid var(--line); border-radius: 14px; padding: 10px 6px; cursor: pointer; font-size: 13px; font-weight: 800; color: var(--rasp); }
.col input { width: 40px; height: 40px; border: none; padding: 0; background: none; cursor: pointer; }
.col input::-webkit-color-swatch-wrapper { padding: 0; }
.col input::-webkit-color-swatch { border: 2px solid #fff; border-radius: 50%; box-shadow: 0 0 0 1px rgba(0, 0, 0, .12); }
.col input::-moz-color-swatch { border: 2px solid #fff; border-radius: 50%; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { font-size: 15px; font-weight: 800; border: 2px solid var(--line); background: #fff; color: var(--rasp); border-radius: 999px; padding: 9px 14px; min-height: 44px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.chip svg { width: 16px; height: 16px; }
.chip.font { font-size: 17px; font-weight: 400; }
.qhead { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.qn { font-family: var(--logo); color: var(--candy); font-size: 19px; }
.brow { display: grid; grid-template-columns: minmax(0, 1fr) 44px; grid-template-areas: "in del" "sel ."; gap: 8px; margin-top: 8px; align-items: center; }
.brow > .in { grid-area: in; } .brow > select { grid-area: sel; margin-top: -2px; } .brow > .del, .brow > span { grid-area: del; }
.bpair { border-top: 2px dotted var(--line); padding-top: 4px; margin-top: 8px; }
.bpair:first-of-type { border-top: none; padding-top: 0; }
.cnt { font-size: 12px; color: var(--muted); text-align: right; margin-top: 4px; }
.del { width: 44px; height: 44px; border: none; background: none; color: var(--muted); font-size: 18px; cursor: pointer; border-radius: 12px; }
.mini { font-size: 14px; font-weight: 800; color: var(--rasp); background: none; border: none; cursor: pointer; padding: 10px 0; min-height: 44px; }
.chkx { display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--rasp); margin-top: 4px; cursor: pointer; min-height: 44px; }
.chkx input { width: 20px; height: 20px; accent-color: var(--candy); flex: none; }
.addq { font-weight: 800; font-size: 15px; color: var(--rasp); background: none; border: 2px dashed #FFB3CC; border-radius: 18px; padding: 16px; cursor: pointer; width: 100%; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.cta { font-family: var(--logo); font-weight: 400; font-size: 20px; border: none; border-radius: 999px; padding: 16px 26px; min-height: 56px; background: var(--candy); color: #fff; cursor: pointer; box-shadow: inset 0 -5px 0 rgba(90, 11, 46, .22); transition: transform .2s cubic-bezier(.3, 1.6, .5, 1); }
.cta:active { transform: scale(.97); }
.cta.ghost { background: #fff; color: var(--rasp); font-size: 17px; }
.cta.wide { width: 100%; }
.cta[disabled] { opacity: .6; }
.cta:focus-visible, .tabs button:focus-visible, .occ button:focus-visible, .shp:focus-visible, .pal:focus-visible, .chip:focus-visible { outline: 3px solid var(--ink0); outline-offset: 3px; }
.err { color: #B3261E; font-weight: 700; font-size: 14px; min-height: 20px; margin-top: 10px; }
.ok { color: #0F5A43; font-weight: 700; font-size: 14px; }
.link { font-family: ui-monospace, Menlo, monospace; font-size: 13px; background: #fff; border: 2px solid var(--line); border-radius: 12px; padding: 12px; word-break: break-all; margin: 8px 0 12px; user-select: all; }
.sharebar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.sbtn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-weight: 800; font-size: 13px; border: 2px solid var(--line); background: #fff; color: var(--rasp); border-radius: 16px; padding: 12px 6px; min-height: 64px; cursor: pointer; text-decoration: none; }
.sbtn.pri { background: var(--candy); border-color: var(--candy); color: #fff; }
.sbtn .i { font-size: 20px; line-height: 1; }
.payc { background: #FFF6D6; border: 2px solid #FFD23F; }
.payc h3 { font-family: var(--logo); font-weight: 400; margin: 0 0 6px; font-size: 20px; }
.payc p { margin: 0 0 12px; line-height: 1.45; }
.tag { font-size: 13px; font-weight: 800; padding: 4px 12px; border-radius: 999px; background: #fff; color: var(--rasp); white-space: nowrap; }
.tag.ok { background: #D8F5E6; color: #0F5A43; }
.tag.warn { background: #FFF0A6; color: #6B5300; }
.rrow { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.meta { font-size: 13px; color: var(--muted); margin: 2px 0 6px; }
.ans { padding: 8px 0; border-top: 2px dotted var(--line); }
.ans .q { font-size: 13px; color: var(--rasp); } .ans .a { font-weight: 800; font-size: 16px; } .ans .t { font-size: 12px; color: var(--muted); }
.banner { display: flex; gap: 12px; align-items: center; background: var(--ink0); color: #fff; border-radius: 22px; padding: 14px 16px; margin-bottom: 8px; }
.banner p { margin: 0; flex: 1; font-size: 15px; line-height: 1.4; }
.banner button { background: none; border: none; color: #fff; font-size: 18px; cursor: pointer; width: 44px; height: 44px; }
.rise { animation: drop .5s cubic-bezier(.2, 1.5, .4, 1) both; }
.full { position: fixed; inset: 0; height: 100dvh; z-index: 50; }
.full:empty { display: none; }
.soloroot { position: fixed; inset: 0; height: 100dvh; }
.foot2 { max-width: 1120px; margin: 0 auto; padding: 0 16px calc(120px + var(--sab)); font-size: 13px; color: var(--muted); }
.foot2 a { color: inherit; }

/* Barre fixe en bas (mobile) */
.bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: 1fr 1.1fr 1.3fr; gap: 8px; padding: 10px 12px calc(10px + var(--sab)); background: rgba(255, 230, 239, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 2px solid var(--line); }
.bar button { min-height: 52px; border-radius: 999px; border: 2px solid var(--line); background: #fff; color: var(--rasp); font-weight: 800; font-size: 15px; cursor: pointer; }
.bar .nx { background: var(--candy); border-color: var(--candy); color: #fff; font-family: var(--logo); font-weight: 400; font-size: 18px; }
.bar .pv { background: var(--ink0); border-color: var(--ink0); color: #fff; }
.bar button[hidden] { visibility: hidden; display: block; }

/* Ordinateur : tout est visible, aperçu téléphone à droite */
@media (min-width: 960px) {
  .top { padding-top: 18px; padding-bottom: 18px; }
  .grid { grid-template-columns: minmax(0, 1fr) 360px; padding-bottom: 60px; }
  .side { position: sticky; top: 16px; display: flex; flex-direction: column; align-items: center; gap: 12px; padding-top: 6px; }
  .step { display: block; }
  .m-hide { display: block; }
  .step.cur { animation: none; }
  .stepper, .bar { display: none; }
  .two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .occ { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .occ button:hover, .cta:hover, .shp:hover { transform: translateY(-2px); }
  .scroller { grid-auto-flow: row; overflow: visible; margin: 0; padding: 0; }
  .pals { grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); grid-auto-columns: unset; }
  .shapes { grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); grid-auto-columns: unset; }
  .brow { grid-template-columns: minmax(0, 1fr) 190px 44px; grid-template-areas: "in sel del"; }
  .brow > select { margin-top: 0; }
  .bpair { border-top: none; padding-top: 0; margin-top: 0; }
  .grid.noside { grid-template-columns: minmax(0, 1fr); }
  .grid.noside .side { display: none; }
  .foot2 { padding-bottom: 40px; }
  .sharebar { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.phone { position: relative; width: 340px; height: 690px; border: 10px solid var(--ink0); border-radius: 48px; overflow: hidden; flex: none; background: #000; }
.notch { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 92px; height: 24px; border-radius: 14px; background: var(--ink0); z-index: 10; }
.pvroot { position: absolute; inset: 0; }
.pvlab { margin: 0; font-weight: 800; font-size: 14px; color: var(--rasp); }
.pvnav { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.pvnav button { font-size: 13px; font-weight: 800; border: 2px solid var(--line); background: #fff; color: var(--rasp); border-radius: 999px; padding: 6px 12px; cursor: pointer; }
.pvnav .on { background: var(--ink0); border-color: var(--ink0); color: #fff; }

/* Page résultats */
.page { max-width: 640px; margin: 0 auto; padding: calc(16px + var(--sat)) 16px calc(40px + var(--sab)); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition: none !important; }
  .fl, .bst, .plane { display: none; }
}
