/* ============ v8 : interactions, jeu, carte, sac en scène, liste d'attente ============ */
@property --page { syntax: "<color>"; inherits: true; initial-value: #f4efe4; }
body { --page: var(--ivory); background: var(--page); transition: --page 1.2s var(--ease-out); }
.mask-fill { fill: var(--page); }
@media (max-width: 900px) { .how .phone-wrap { background: linear-gradient(180deg, var(--page) 84%, transparent); } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
button { -webkit-tap-highlight-color: transparent; }

/* ---------- Menu : bouton son, bouton menu, menu plein écran ---------- */
.sound { position: relative; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid currentColor; border-radius: 50%; background: transparent; color: inherit; opacity: .8; cursor: pointer; transition: opacity .3s, transform .16s var(--ease-out); }
.sound:active { transform: scale(.94); }
.eq { display: flex; align-items: flex-end; gap: 2px; height: 12px; }
.eq i { width: 2px; height: 3px; border-radius: 2px; background: currentColor; transition: height .3s var(--ease-out); }
.sound[aria-pressed="true"] { opacity: 1; }
.sound[aria-pressed="true"] .eq i { animation: eq 1s ease-in-out infinite; }
.sound[aria-pressed="true"] .eq i:nth-child(2) { animation-delay: -.3s; } .sound[aria-pressed="true"] .eq i:nth-child(3) { animation-delay: -.6s; } .sound[aria-pressed="true"] .eq i:nth-child(4) { animation-delay: -.15s; }
@keyframes eq { 0%, 100% { height: 3px; } 50% { height: 12px; } }
.menu-btn { display: none; position: relative; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; }
.menu-btn i { position: absolute; left: 10px; right: 10px; height: 1.5px; border-radius: 2px; background: currentColor; transition: transform .45s var(--ease-out), top .45s var(--ease-out); }
.menu-btn i:first-child { top: 15px; } .menu-btn i:last-child { top: 22px; }
.menu-btn[aria-expanded="true"] i:first-child { top: 18.5px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] i:last-child { top: 18.5px; transform: rotate(-45deg); }
.menu { position: fixed; inset: 0; z-index: 55; display: flex; flex-direction: column; justify-content: space-between; padding: 96px 26px calc(30px + env(safe-area-inset-bottom)); background: rgba(244, 239, 228, .9); backdrop-filter: blur(24px) saturate(140%); -webkit-backdrop-filter: blur(24px) saturate(140%); color: var(--ink); opacity: 0; transition: opacity .4s var(--ease-out); }
.menu.is-open { opacity: 1; }
.menu-links { display: grid; gap: 4px; }
.menu-links a { display: block; padding: 8px 0; font-size: clamp(1.8rem, 9vw, 2.6rem); font-weight: 500; letter-spacing: -.04em; line-height: 1.1; text-decoration: none; opacity: 0; transform: translateY(26px); transition: opacity .5s var(--ease-out), transform .6s var(--ease-out); }
.menu.is-open .menu-links a { opacity: 1; transform: none; }
.menu.is-open .menu-links a:nth-child(2) { transition-delay: .04s; } .menu.is-open .menu-links a:nth-child(3) { transition-delay: .08s; } .menu.is-open .menu-links a:nth-child(4) { transition-delay: .12s; } .menu.is-open .menu-links a:nth-child(5) { transition-delay: .16s; } .menu.is-open .menu-links a:nth-child(6) { transition-delay: .2s; }
.menu-foot { display: flex; align-items: center; gap: 12px; opacity: 0; transition: opacity .5s .25s; }
.menu.is-open .menu-foot { opacity: 1; }
.menu-foot .pill-lg { flex: 1; justify-content: center; }
body.menu-open { overflow: hidden; }
body.menu-open .nav { color: var(--ink); background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
body.menu-open .nav .brand img { filter: none; }
@media (max-width: 760px) {
  .menu-btn { display: block; }
  .nav .lang { display: none; }
  .menu .lang { display: inline-block; height: 54px; min-width: 54px; }
  .nav .pill { display: none; }
}
.pill-forest { background: var(--forest); color: var(--ivory); height: 46px; padding: 0 20px; border: 0; cursor: pointer; font-family: inherit; }

/* ---------- Photos : rideau et inclinaison ---------- */
.js .curtain { clip-path: inset(100% 0 0 0 round 20px); transition: clip-path 1.3s var(--ease-io); }
.js .curtain.is-in { clip-path: inset(0 0 0 0 round 20px); }
.tilt { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transform-style: preserve-3d; will-change: transform; }

/* ---------- Pourquoi : accordéon ---------- */
.why-acc { display: flex; gap: 12px; height: clamp(420px, 62vh, 560px); }
.why-acc .card { position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; border-radius: 22px; cursor: pointer; transition: flex-grow .8s var(--ease-drawer); outline-offset: 3px; }
.why-acc .card.is-open { flex-grow: 3.2; cursor: default; }
.why-acc .card-img { position: absolute; inset: 0; aspect-ratio: auto; border-radius: inherit; box-shadow: none; }
.why-acc .card-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 26, 20, 0) 35%, rgba(11, 26, 20, .82)); transition: opacity .6s; }
.why-acc figcaption { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 22px 22px 24px; color: var(--ivory); }
.why-acc h3 { font-size: 1.15rem; white-space: nowrap; }
.why-acc .card:not(.is-open) h3 { writing-mode: vertical-rl; transform: rotate(180deg); position: absolute; left: 50%; bottom: 24px; translate: -50% 0; }
.why-acc p { max-width: 34ch; color: rgba(244, 239, 228, .82); opacity: 0; transform: translateY(8px); transition: opacity .5s, transform .6s var(--ease-out); }
.why-acc .card.is-open p { opacity: 1; transform: none; transition-delay: .25s; }
.why-acc .card:not(.is-open) p { position: absolute; }
@media (max-width: 760px) {
  .why-acc { height: auto; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin: 0 calc(-1 * clamp(20px, 4vw, 56px)); padding: 0 clamp(20px, 4vw, 56px) 8px; scrollbar-width: none; }
  .why-acc::-webkit-scrollbar { display: none; }
  .why-acc .card, .why-acc .card.is-open { flex: 0 0 80%; height: 420px; scroll-snap-align: center; cursor: default; }
  .why-acc .card:not(.is-open) h3 { writing-mode: horizontal-tb; transform: none; position: static; translate: none; }
  .why-acc p, .why-acc .card:not(.is-open) p { opacity: 1; transform: none; position: static; }
}

/* ---------- Mini-jeu : la valise ---------- */
.game { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 6vw, 90px); align-items: center; }
.game-msg { position: relative; min-height: 3.4em; margin-top: 26px; font-size: 1.05rem; font-weight: 500; color: var(--forest); }
.gm { position: absolute; inset: 0 auto auto 0; opacity: 0; transform: translateY(6px); transition: opacity .4s, transform .5s var(--ease-out); }
.gm em { background: var(--g-text-light); -webkit-background-clip: text; background-clip: text; color: transparent; }
.game[data-level="0"] .gm-0, .game[data-level="1"] .gm-1, .game[data-level="2"] .gm-2, .game[data-level="3"] .gm-3 { opacity: 1; transform: none; }
.game-reset { margin-top: 10px; border: 0; background-color: transparent; font: inherit; cursor: pointer; }
.game-stage { position: relative; display: grid; gap: 26px; padding: clamp(22px, 3vw, 36px); border-radius: 28px; background: var(--g-ivory); box-shadow: inset 0 0 0 1px rgba(19, 33, 27, .06), 0 40px 80px -60px rgba(16, 36, 28, .6); }
.souvenirs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; }
.token { display: grid; place-items: center; width: 100%; aspect-ratio: 1; padding: 0; border: 0; border-radius: 50%; background: #fffdf8; color: var(--forest); font-size: clamp(1.1rem, 1.8vw, 1.5rem); cursor: grab; touch-action: none; box-shadow: 0 10px 20px -12px rgba(16, 36, 28, .55), inset 0 0 0 1px rgba(19, 33, 27, .06); transition: transform .3s var(--ease-out), opacity .3s, box-shadow .3s; }
.token:active { cursor: grabbing; }
@media (hover: hover) { .token:hover { transform: translateY(-3px); } }
.token.is-used { opacity: .18; pointer-events: none; transform: scale(.8); }
.token.is-drag { position: fixed; z-index: 70; width: 56px; pointer-events: none; transform: scale(1.12) rotate(-6deg); box-shadow: 0 24px 40px -16px rgba(16, 36, 28, .6); transition: none; }
.luggage { display: flex; align-items: flex-end; justify-content: center; gap: clamp(16px, 3vw, 34px); min-height: 280px; }
.case { position: relative; width: min(220px, 52%); transition: transform .5s var(--ease-out); }
.case-svg { display: block; width: 100%; overflow: visible; }
.case-body { fill: var(--forest); } .case-handle { fill: none; stroke: #0f241b; stroke-width: 9; }
.case-rib { stroke: rgba(244, 239, 228, .13); stroke-width: 3; stroke-linecap: round; fill: none; }
.case-wheel { fill: #0f241b; }
.case-in { position: absolute; left: 12%; right: 12%; top: 22%; bottom: 20%; display: flex; flex-wrap: wrap-reverse; align-content: flex-start; justify-content: center; gap: 4px; }
.case-in i, .fbox-in i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #fffdf8; color: var(--forest); font-size: 1.05rem; animation: dropIn .6s var(--ease-out) both; }
@keyframes dropIn { from { opacity: 0; transform: translateY(-60px) scale(.7); } }
.case-gauge { position: absolute; left: 22%; right: 22%; top: 12%; height: 5px; border-radius: 5px; background: rgba(244, 239, 228, .18); overflow: hidden; }
.case-gauge i { display: block; height: 100%; width: calc(var(--fill, 0) * 100%); border-radius: inherit; background: var(--g-amber); transition: width .5s var(--ease-out); }
.case.is-hot .case-gauge i { background: #e2683c; }
.case.is-bump { animation: bump .45s var(--ease-out); }
.case.is-burst { animation: burst .6s var(--ease-out); }
@keyframes bump { 40% { transform: scale(1.05, .96); } }
@keyframes burst { 20% { transform: rotate(-4deg) scale(1.06); } 40% { transform: rotate(4deg) scale(1.08); } 60% { transform: rotate(-2deg); } }
.case.is-over { transform: scale(1.04); }
.fbox { position: relative; display: grid; justify-items: center; align-content: end; gap: 8px; width: 0; opacity: 0; transform: translateY(20px) scale(.9); transition: width .7s var(--ease-drawer), opacity .5s, transform .7s var(--ease-out); }
.game.has-box .fbox { width: min(170px, 38%); opacity: 1; transform: none; }
.fbox::before { content: ""; width: 100%; aspect-ratio: 1.15; border-radius: 10px; background: linear-gradient(170deg, #e2bd86, #c8965b); box-shadow: 0 24px 40px -24px rgba(90, 55, 20, .7), inset 0 -10px 0 rgba(0, 0, 0, .06); }
.fbox::after { content: ""; position: absolute; top: 0; left: 44%; width: 12%; height: calc(100% - 30px); background: var(--forest); opacity: .9; }
.fbox img { position: absolute; left: 12%; bottom: 44px; width: 16px; filter: brightness(0) saturate(100%) invert(19%) sepia(16%) saturate(1400%) hue-rotate(110deg); }
.fbox small { font-size: .78rem; font-weight: 500; color: var(--forest); }
.fbox-in { position: absolute; left: 8%; right: 8%; top: 12%; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; z-index: 1; }
.fbox-in i { width: 28px; height: 28px; font-size: .9rem; }
.luggage.is-target .case { transform: scale(1.04); }
@media (max-width: 900px) {
  .game { grid-template-columns: 1fr; }
  .souvenirs { grid-template-columns: repeat(4, 1fr); gap: 12px; }
  .luggage { min-height: 230px; }
}

/* ---------- Histoire : choix de la ville, carte du trajet ---------- */
.scene-clip [data-city] { position: absolute; inset: 0; opacity: 0; transition: opacity .8s var(--ease-out); }
.scene-clip [data-city].on { opacity: 1; }
.scene-clip.has-video img[data-city]:not([data-city="lisbonne"]) { display: block; }
.scene-clip video { position: absolute; inset: 0; transition: opacity .8s; }
.story:not([data-city="lisbonne"]) .scene-clip video { opacity: 0; }
.city-pick { margin-bottom: 18px; }
.city-k { font-size: .78rem; color: var(--ink-soft); }
.city-btns { display: inline-flex; gap: 4px; margin-top: 8px; padding: 4px; border-radius: 999px; background: rgba(19, 33, 27, .06); }
.city-btns button { height: 34px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-soft); font: 500 .82rem "Poppins", sans-serif; cursor: pointer; transition: background-color .4s var(--ease-out), color .3s, transform .16s var(--ease-out); }
.city-btns button:active { transform: scale(.96); }
.city-btns [aria-checked="true"] { background: var(--forest); color: var(--ivory); box-shadow: 0 8px 16px -10px rgba(29, 59, 48, .8); }
.city-note { margin-top: 8px; font-size: .74rem; color: var(--ink-soft); opacity: .8; }
.trip-map { position: absolute; left: 16px; bottom: 16px; z-index: 3; width: min(300px, 46%); padding: 8px; border-radius: 16px; background: rgba(251, 248, 241, .86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 20px 40px -24px rgba(16, 36, 28, .6); }
.trip-map svg { display: block; width: 100%; height: auto; overflow: visible; }
.tm-base { fill: none; stroke: rgba(19, 33, 27, .3); stroke-width: 2.5; stroke-dasharray: 2 7; stroke-linecap: round; }
.tm-done { fill: none; stroke: var(--forest); stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.tm-from { fill: var(--forest); } .tm-to { fill: var(--amber-deep); }
.tm-parcel { fill: var(--amber); stroke: #fff; stroke-width: 3; }
.tm-lbl { font: 600 17px "Poppins", sans-serif; fill: var(--ink); paint-order: stroke; stroke: rgba(251, 248, 241, .9); stroke-width: 5px; }
@media (max-width: 900px) {
  .city-pick { margin-bottom: 10px; }
  .city-k, .city-note { display: none; }
  .city-btns button { height: 30px; padding: 0 12px; font-size: .76rem; }
  .trip-map { width: 52%; left: 10px; bottom: 10px; padding: 5px; border-radius: 12px; }
}

/* ---------- Téléphone : plus de relief, plus de vie ---------- */
.phone-3d { perspective: 1400px; }
.phone { transform: rotateY(var(--pry, -8deg)) rotateX(var(--prx, 4deg)); transform-style: preserve-3d; transition: transform .8s var(--ease-out);
  background: linear-gradient(150deg, #3b5a4d 0%, #1a2f26 22%, #0a1611 60%, #243d33 100%);
  box-shadow: inset 0 0 0 1.5px #4d6d60, inset 0 0 0 3px #13241c, inset 0 0 0 6px #0b1712, 0 70px 110px -55px rgba(16, 36, 28, .85), 0 30px 50px -30px rgba(16, 36, 28, .55), -18px 30px 60px -40px rgba(199, 122, 44, .35); }
.phone-glare { position: absolute; inset: var(--pad); z-index: 9; border-radius: 39px; pointer-events: none; background: linear-gradient(115deg, rgba(255, 255, 255, .16) 0%, rgba(255, 255, 255, 0) 32%, rgba(255, 255, 255, 0) 70%, rgba(255, 255, 255, .06) 100%); mix-blend-mode: screen; }
.screen { visibility: hidden; transition: opacity .55s var(--ease-out), transform .7s var(--ease-out), filter .55s var(--ease-out), visibility 0s .55s; }
.screen.is-active { visibility: visible; transition-delay: 0s; }
.screen button { font-family: inherit; }
button.app-btn { width: 100%; border: 0; cursor: pointer; transition: transform .16s var(--ease-out), background-color .3s; }
button.app-btn:active { transform: scale(.97); }
.app-btn.sm { height: 40px; margin-top: 4px; }
button.row { width: 100%; border: 0; text-align: left; font: inherit; color: inherit; cursor: pointer; transition: box-shadow .3s, transform .16s var(--ease-out); }
button.row:active { transform: scale(.98); }
.row .ok { opacity: 1; transition: opacity .3s, transform .4s var(--ease-out); }
button.row:not(.picked) .ok { opacity: 0; transform: scale(.6); }
.pin-drop { transition: transform .4s var(--ease-out), background-color .3s; }
.pin-drop.is-picked { background: var(--amber-deep); z-index: 2; }
.pin-drop:not(.is-picked) { background: var(--forest); }
.tabbar button { display: grid; justify-items: center; gap: 2px; padding: 0; border: 0; background: none; color: #8b968f; font-size: 1.15rem; cursor: pointer; transition: color .3s, transform .16s var(--ease-out); }
.tabbar button:active { transform: scale(.92); }
.tabbar button.on { color: var(--forest); }
.tabbar .plus { width: 44px; height: 44px; place-items: center; border-radius: 50%; background: var(--forest); color: var(--amber-hi); font-size: 1.2rem; transform: translateY(-10px); box-shadow: 0 10px 20px -8px rgba(29, 59, 48, .7), 0 0 0 5px #fffdf8; }
.tabbar .plus.on { color: var(--amber-hi); }
.tabbar .plus:active { transform: translateY(-10px) scale(.94); }
.seg button { position: relative; z-index: 1; display: grid; place-items: center; height: 32px; padding: 0; border: 0; background: none; font-size: .74rem; font-weight: 600; color: var(--ink-soft); cursor: pointer; transition: color .3s; }
.seg .seg-thumb { transform: translateX(calc(var(--s, 1) * 100%)); transition: transform .5s var(--ease-drawer); animation: none !important; }
.seg[data-size="0"] { --s: 0; } .seg[data-size="1"] { --s: 1; } .seg[data-size="2"] { --s: 2; }
.seg[data-size="0"] button[data-size="0"], .seg[data-size="1"] button[data-size="1"], .seg[data-size="2"] button[data-size="2"] { color: var(--ivory); }
.screen.is-active .seg span:nth-child(2) { animation: none; }
.box3d[data-size="0"] { --w: 84px; --h: 56px; --d: 54px; } .box3d[data-size="2"] { --w: 136px; --h: 90px; --d: 88px; }
.box3d .bf, .box3d .bs, .box3d .bt { transition: all .5s var(--ease-drawer); }
.size-hint { position: relative; display: flex; gap: 6px; min-height: 2.6em; font-size: .62rem; line-height: 1.35; color: var(--ink-soft); }
.size-hint i { flex: none; color: var(--amber-deep); font-size: .85rem; }
.size-hint .sz { display: none; }
.seg[data-size="0"] ~ .size-hint .sz-0, .seg[data-size="1"] ~ .size-hint .sz-1, .seg[data-size="2"] ~ .size-hint .sz-2 { display: block; animation: up .4s var(--ease-out); }
.screen[data-step="2"] { gap: 8px; }
.screen[data-step="2"] .qr-row { transform: scale(.86); transform-origin: left center; margin: -6px 0; }
.status { flex: none; padding: 4px 8px; border-radius: 999px; background: rgba(29, 59, 48, .08); color: var(--forest); font-size: .54rem; font-weight: 600; }
.status.go { background: rgba(231, 167, 74, .2); color: var(--amber-deep); }
.profile { display: grid; justify-items: center; gap: 2px; margin-top: 4px; }
.avatar.xl { width: 74px; height: 74px; font-size: 1.6rem; margin-bottom: 6px; box-shadow: 0 0 0 4px #fffdf8, 0 0 0 6px var(--amber), 0 16px 26px -14px rgba(29, 59, 48, .8); }
.profile b { font-size: 1rem; font-weight: 600; letter-spacing: -.02em; }
.profile small { font-size: .62rem; color: var(--ink-soft); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); padding: 10px 6px; border-radius: 16px; background: #fff; box-shadow: 0 10px 20px -16px rgba(19, 33, 27, .45); }
.stats span { display: grid; justify-items: center; }
.stats span + span { box-shadow: -1px 0 0 rgba(19, 33, 27, .08); }
.stats b { font-size: 1.05rem; font-weight: 600; color: var(--forest); }
.stats small { font-size: .56rem; color: var(--ink-soft); }
.flags { display: flex; justify-content: center; gap: 6px; }
.flags span { display: grid; place-items: center; width: 34px; height: 24px; border-radius: 7px; background: var(--forest); color: var(--amber-hi); font-size: .56rem; font-weight: 600; letter-spacing: .06em; }
.flags .add { background: transparent; color: var(--ink-soft); box-shadow: inset 0 0 0 1px rgba(19, 33, 27, .2); font-size: .8rem; }
.on-toggle { color: var(--forest) !important; font-size: 1.5rem !important; }
.screen[data-step="5"] { gap: 9px; }
.phone-hint { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 22px; font-size: .82rem; color: var(--ink-soft); }
.phone-hint i { color: var(--amber-deep); font-size: 1.05rem; animation: nudge 2.2s var(--ease-io) infinite; }
@media (max-width: 900px) {
  .phone { transform: none; }
  .phone-hint { display: none; }
  .how .phone-glare { border-radius: 24px; }
}

/* ---------- Où déposer : carte interactive ---------- */
.wmap { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); gap: clamp(16px, 2.4vw, 28px); align-items: stretch; }
.wmap-stage { position: relative; min-height: 460px; border-radius: 26px; overflow: hidden; background: #ebe3d1; box-shadow: 0 40px 80px -60px rgba(16, 36, 28, .7); }
.wmap-map { position: absolute; inset: 0; }
.wmap-map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.wm-bg { fill: #ebe3d1; } .wm-park { fill: #cfdcc3; } .wm-river { fill: #bcd3d4; }
.wm-road { fill: none; stroke: #fbf8f1; stroke-width: 11; stroke-linecap: round; } .wm-road.big { stroke-width: 20; } .wm-road.thin { stroke-width: 6; opacity: .85; }
.wmap-chips { position: absolute; top: 14px; left: 14px; right: 14px; z-index: 3; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.wmap-chips::-webkit-scrollbar { display: none; }
.wmap-chips button { flex: none; height: 36px; padding: 0 14px; border: 0; border-radius: 999px; background: rgba(251, 248, 241, .92); color: var(--ink-soft); font: 500 .8rem "Poppins", sans-serif; cursor: pointer; box-shadow: 0 8px 18px -12px rgba(16, 36, 28, .6); backdrop-filter: blur(8px); transition: background-color .3s, color .3s, transform .16s var(--ease-out); }
.wmap-chips button:active { transform: scale(.96); }
.wmap-chips .on { background: var(--forest); color: var(--ivory); }
.wpin { position: absolute; left: var(--x); top: var(--y); z-index: 2; display: grid; place-items: center; width: 42px; height: 42px; margin: -42px 0 0 -21px; padding: 0; border: 0; border-radius: 50% 50% 50% 8px; transform: rotate(-45deg); background: var(--forest); color: var(--ivory); cursor: pointer; box-shadow: 0 12px 20px -10px rgba(0, 0, 0, .5); transition: transform .4s var(--ease-out), background-color .3s, opacity .4s; }
.wpin i { transform: rotate(45deg); font-size: 1.15rem; }
.wpin[data-type="1"] { background: var(--forest-hi); } .wpin[data-type="2"] { background: var(--amber-deep); }
.wpin.is-dim { opacity: .25; transform: rotate(-45deg) scale(.8); }
.wpin.is-on { transform: rotate(-45deg) scale(1.22); z-index: 3; box-shadow: 0 0 0 6px rgba(231, 167, 74, .35), 0 12px 20px -10px rgba(0, 0, 0, .5); }
@media (hover: hover) { .wpin:hover { transform: rotate(-45deg) scale(1.12); } }
.wme { position: absolute; left: 48%; top: 52%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: #3b82c4; border: 3px solid #fff; animation: locate 1.8s var(--ease-out) infinite; }
.wmap-card { position: relative; min-height: 460px; }
.wcard { position: absolute; inset: 0; display: flex; flex-direction: column; opacity: 0; transform: translateY(14px); pointer-events: none; transition: opacity .5s var(--ease-out), transform .6s var(--ease-out); }
.wcard.is-on { opacity: 1; transform: none; pointer-events: auto; }
.wcard .card-img { flex: 1; aspect-ratio: auto !important; border-radius: 26px; }
.wcard .card-img img { transform: none; }
@media (max-width: 900px) {
  .wmap { grid-template-columns: 1fr; }
  .wmap-stage { min-height: 340px; }
  .wmap-card { min-height: 0; display: grid; }
  .wcard { position: relative; inset: auto; grid-area: 1 / 1; }
  .wcard .card-img { flex: none; aspect-ratio: 4 / 3 !important; }
  .wpin { width: 36px; height: 36px; margin: -36px 0 0 -18px; }
}

/* ---------- En confiance ---------- */
.trust { max-width: 1280px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 56px) clamp(70px, 11vh, 110px); }
.trust-list { list-style: none; margin: 0; padding: clamp(26px, 3vw, 38px); display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 44px); border-radius: 26px; background: rgba(29, 59, 48, .05); box-shadow: inset 0 0 0 1px rgba(19, 33, 27, .06); }
.trust-list li { display: flex; gap: 16px; align-items: flex-start; }
.trust-list li > i { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: #fffdf8; color: var(--forest); font-size: 1.35rem; box-shadow: 0 10px 20px -14px rgba(16, 36, 28, .5); }
.trust-list h3 { font-size: 1.02rem; font-weight: 500; letter-spacing: -.015em; }
.trust-list p { margin-top: 4px; font-size: .9rem; color: var(--ink-soft); }
@media (max-width: 860px) { .trust-list { grid-template-columns: 1fr; } }

/* ---------- Le sac en scène ---------- */
.bagdrop { position: relative; height: 320vh; margin-top: clamp(20px, 4vh, 40px); }
.bagdrop-stage { position: sticky; top: 0; height: 100svh; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: center; gap: clamp(20px, 5vw, 70px); max-width: 1280px; margin: 0 auto; padding: 80px clamp(20px, 4vw, 56px) 40px; }
.bd-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.bd-step { display: flex; gap: 16px; align-items: flex-start; padding: 16px 18px; border-radius: 20px; opacity: .35; transition: opacity .5s var(--ease-out), background-color .5s; }
.bd-step.is-on { opacity: 1; background: rgba(255, 253, 248, .75); box-shadow: 0 20px 40px -32px rgba(16, 36, 28, .6); }
.bd-step .num { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: var(--forest); font-weight: 600; box-shadow: inset 0 0 0 1.5px var(--forest); transition: background-color .4s, color .4s; }
.bd-step.is-on .num { background: var(--forest); color: var(--ivory); }
.bd-step h3 { font-size: clamp(1.2rem, 1.8vw, 1.6rem); font-weight: 500; letter-spacing: -.03em; }
.bd-step p { margin-top: 4px; font-size: .95rem; color: var(--ink-soft); }
.bd-visual { position: relative; height: min(76vh, 640px); display: grid; place-items: end center; }
.bd-glow { position: absolute; left: 50%; bottom: 8%; width: 90%; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle, rgba(231, 167, 74, .28), transparent 62%); }
.bd-items { position: absolute; left: 22%; right: 22%; top: 0; height: 60%; z-index: 1; }
.bd-item { position: absolute; left: var(--x); top: 0; display: grid; place-items: center; width: 54px; height: 54px; margin-left: -27px; border-radius: 50%; background: #fffdf8; color: var(--forest); font-size: 1.5rem; box-shadow: 0 16px 28px -14px rgba(16, 36, 28, .6); opacity: 0; }
.bd-bagwrap { position: relative; z-index: 2; width: min(520px, 92%); margin-bottom: 7%; }
.bd-bag { display: block; width: 100%; height: auto; filter: drop-shadow(0 30px 30px rgba(16, 36, 28, .18)); }
.bd-scan { position: absolute; left: 24.5%; top: 50%; width: 26%; height: 29%; border-radius: 8px; opacity: 0; box-shadow: 0 0 0 2px var(--amber), 0 0 30px 4px rgba(231, 167, 74, .4); }
.bd-scan i { position: absolute; left: 6%; right: 6%; top: 10%; height: 2px; border-radius: 2px; background: var(--amber); box-shadow: 0 0 12px 3px rgba(231, 167, 74, .7); animation: scan 2.2s var(--ease-io) infinite; }
.bd-ok { position: absolute; right: 4%; top: 18%; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: var(--forest); color: var(--ivory); font-size: .9rem; font-weight: 500; opacity: 0; box-shadow: 0 16px 30px -16px rgba(16, 36, 28, .8); }
.bd-ok i { color: var(--amber-hi); }
.bd-shadow { position: absolute; left: 50%; bottom: 6%; width: 56%; height: 22px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(16, 36, 28, .28), transparent); }
@media (max-width: 900px) {
  .bagdrop { height: 300vh; }
  .bagdrop-stage { grid-template-columns: 1fr; grid-template-rows: auto 1fr; align-items: start; padding-top: 74px; gap: 6px; }
  .bd-steps { gap: 0; }
  .bd-step { display: none; padding: 12px 4px; background: none !important; box-shadow: none !important; }
  .bd-step.is-on { display: flex; }
  .bd-visual { height: 58svh; }
  .bd-item { width: 44px; height: 44px; margin-left: -22px; font-size: 1.2rem; }
}
.viewer { width: min(760px, 94vw); height: min(640px, 82svh); padding: 0; border: 0; border-radius: 28px; background: var(--g-ivory); color: var(--ink); box-shadow: 0 60px 120px -40px rgba(0, 0, 0, .6); }
.viewer::backdrop { background: rgba(11, 26, 20, .55); backdrop-filter: blur(6px); }
.viewer[open] { display: grid; grid-template-rows: 1fr auto; }
.viewer-stage, .viewer-stage model-viewer { width: 100%; height: 100%; min-height: 300px; --poster-color: transparent; }
.viewer-close { position: absolute; top: 14px; right: 14px; z-index: 2; display: grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 50%; background: #fffdf8; color: var(--ink); font-size: 1.2rem; cursor: pointer; box-shadow: 0 8px 18px -10px rgba(16, 36, 28, .6); }
.viewer-hint { display: flex; justify-content: center; align-items: center; gap: 8px; padding: 0 0 20px; font-size: .85rem; color: var(--ink-soft); }

/* ---------- Demain : nouveaux écrans et vote ---------- */
.merge { position: relative; flex: none; height: 150px; display: grid; place-items: end center; padding-bottom: 14px; perspective: 700px; }
.mv { position: absolute; top: 8px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--c); color: var(--ivory); font-size: .78rem; font-weight: 600; box-shadow: 0 0 0 3px #faf6ed; }
.mv.v1 { left: 18%; } .mv.v2 { left: 44%; top: 0; } .mv.v3 { right: 18%; }
.screen.is-active .mv { animation: gather 3s var(--ease-io) infinite; }
.screen.is-active .mv.v2 { animation-delay: .3s; } .screen.is-active .mv.v3 { animation-delay: .6s; }
@keyframes gather { 0%, 15% { opacity: 0; transform: translateY(-8px); } 30% { opacity: 1; transform: none; } 70% { opacity: 1; } 90%, 100% { opacity: 0; transform: translate(var(--gx, 0), 60px) scale(.6); } }
.mv.v1 { --gx: 40px; } .mv.v3 { --gx: -40px; }
.journal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.jcard { margin: 0; overflow: hidden; border-radius: 14px; background: #fff; box-shadow: 0 10px 20px -16px rgba(19, 33, 27, .5); }
.jcard img { width: 100%; height: 78px; object-fit: cover; }
.jcard figcaption { padding: 6px 8px 8px; }
.jcard b { display: block; font-size: .66rem; font-weight: 600; }
.jcard small { display: block; font-size: .55rem; color: var(--ink-soft); }
.jcard.j2 { transform: rotate(1.2deg); } .jcard.j3 { transform: rotate(-1.2deg); }
.screen.is-active .jcard { animation: pop .5s var(--ease-out) both; }
.screen.is-active .jcard.j2 { animation-delay: .1s; } .screen.is-active .jcard.j3 { animation-delay: .2s; } .screen.is-active .jcard.j4 { animation-delay: .3s; }
.jnote { display: flex; gap: 6px; padding: 10px 12px; border-radius: 14px; background: rgba(231, 167, 74, .14); font-size: .64rem; font-style: italic; color: var(--ink); }
.jnote i { color: var(--amber-deep); font-size: .9rem; }
.vote { margin-top: clamp(50px, 9vh, 90px); padding: clamp(24px, 3vw, 40px); border-radius: 26px; background: rgba(244, 239, 228, .06); box-shadow: inset 0 0 0 1px rgba(244, 239, 228, .1); display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(20px, 4vw, 56px); align-items: center; }
.vote-head h3 { font-size: clamp(1.4rem, 2.3vw, 2rem); font-weight: 500; letter-spacing: -.03em; line-height: 1.15; }
.vote-head h3 em { background: var(--g-text-dark); -webkit-background-clip: text; background-clip: text; color: transparent; }
.vote-head p { margin-top: 8px; font-size: .92rem; color: rgba(244, 239, 228, .7); }
.vote-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.vote-opt { position: relative; overflow: hidden; display: flex; align-items: center; gap: 10px; width: 100%; min-height: 54px; padding: 10px 16px; border: 0; border-radius: 16px; background: rgba(244, 239, 228, .08); color: var(--ivory); font: 500 .92rem "Poppins", sans-serif; text-align: left; cursor: pointer; transition: background-color .3s, transform .16s var(--ease-out); }
.vote-opt:active { transform: scale(.98); }
@media (hover: hover) { .vote:not(.is-done) .vote-opt:hover { background: rgba(244, 239, 228, .14); } }
.vote-name { position: relative; z-index: 1; flex: 1; }
.vote-heart { position: relative; z-index: 1; font-size: 1.1rem; color: var(--amber-hi); opacity: .6; }
.vote-bar { position: absolute; inset: 0; }
.vote-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, rgba(231, 167, 74, .35), rgba(231, 167, 74, .12)); transition: width 1.2s var(--ease-out); }
.vote.is-done .vote-bar i { width: calc(var(--share, 0) * 100%); }
.vote.is-done .vote-opt { cursor: default; }
.vote-opt.is-mine { box-shadow: inset 0 0 0 1.5px var(--amber); }
.vote-opt.is-mine .vote-heart { opacity: 1; }
.vote-opt.is-mine .vote-heart { transform: scale(1.2); text-shadow: 0 0 12px rgba(245, 208, 140, .8); }
.vote-thanks { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--amber-hi); }
@media (max-width: 900px) { .vote { grid-template-columns: 1fr; } .vote-list { grid-template-columns: 1fr; } }

/* ---------- Feuille de route : ligne qui se trace ---------- */
.road-list { grid-template-columns: repeat(4, 1fr); }
.road-list::before { display: none; }
.road-line { position: absolute !important; left: 8px; right: 8px; top: 8px; height: 1px; padding: 0 !important; background: repeating-linear-gradient(90deg, rgba(19, 33, 27, .25) 0 6px, transparent 6px 12px); }
.road-line i { position: absolute; inset: 0; background: var(--forest); transform-origin: left; transform: scaleX(var(--road, 0)); height: 2px; top: -.5px; }
@media (max-width: 860px) {
  .road-list { grid-template-columns: 1fr; }
  .road-line { left: 8px; right: auto; top: 8px; bottom: 8px; width: 1px; height: auto; background: repeating-linear-gradient(180deg, rgba(19, 33, 27, .25) 0 6px, transparent 6px 12px); }
  .road-line i { transform-origin: top; transform: scaleY(var(--road, 0)); width: 2px; height: auto; left: -.5px; top: 0; }
}

/* ---------- Participer : liste d'attente, partage, final ---------- */
.wait { display: grid; justify-items: center; gap: 14px; width: min(560px, 100%); margin-top: 8px; }
.wait-who { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(244, 239, 228, .1); }
.wait-who button { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; color: rgba(244, 239, 228, .75); font: 500 .86rem "Poppins", sans-serif; cursor: pointer; transition: background-color .3s, color .3s; }
.wait-who [aria-checked="true"] { background: var(--ivory); color: var(--forest); }
.wait-row { display: flex; gap: 8px; width: 100%; padding: 6px; border-radius: 999px; background: rgba(244, 239, 228, .1); box-shadow: inset 0 0 0 1px rgba(244, 239, 228, .2); transition: box-shadow .3s; }
.wait-row:focus-within { box-shadow: inset 0 0 0 1.5px var(--amber-hi); }
.wait-row input { flex: 1; min-width: 0; height: 54px; padding: 0 18px; border: 0; border-radius: 999px; background: transparent; color: var(--ivory); font: 400 1rem "Poppins", sans-serif; outline: none; }
.wait-row input::placeholder { color: rgba(244, 239, 228, .5); }
.wait-row .pill-lg { margin: 0; border: 0; cursor: pointer; font-family: inherit; }
.wait.is-busy .pill-lg { opacity: .6; pointer-events: none; }
.wait-err { font-size: .88rem; color: var(--amber-hi); }
.wait-legal { max-width: 46ch; font-size: .76rem; color: rgba(244, 239, 228, .6); }
.wait-legal a { color: inherit; }
.wait-done { display: grid; justify-items: center; gap: 10px; }
.wait-done h3 { font-size: clamp(1.4rem, 2.4vw, 2rem); font-weight: 500; letter-spacing: -.03em; }
.wait-done p { max-width: 40ch; color: rgba(244, 239, 228, .75); }
.wait-done .pill-lg { border: 0; cursor: pointer; font-family: inherit; }
.seal-box { height: 130px; display: grid; place-items: center; perspective: 700px; }
.seal-box .box3d { --w: 110px; --h: 74px; --d: 70px; animation: closeBox 1.6s var(--ease-out) both, spinBox 6s var(--ease-io) 1.6s infinite; }
@keyframes closeBox { 0% { transform: rotateX(-22deg) rotateY(-34deg) translateY(-60px) scale(.6); opacity: 0; } 60% { opacity: 1; transform: rotateX(-22deg) rotateY(-34deg) translateY(6px); } 100% { transform: rotateX(-22deg) rotateY(-34deg); } }
.wait-count { font-size: .92rem; color: rgba(244, 239, 228, .8); }
.wait-count b { color: var(--amber-hi); font-weight: 600; }
.join-alt { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 10px; }
.join-alt .pill { border: 0; cursor: pointer; font-family: inherit; }
.finale { width: 100%; margin: clamp(40px, 8vh, 80px) 0 -0.24em; line-height: .8; text-align: center; pointer-events: none; }
.finale-word { display: inline-block; font-size: clamp(5rem, 24vw, 22rem); font-weight: 600; letter-spacing: -.07em; color: transparent; -webkit-text-stroke: 1px rgba(244, 239, 228, .22);
  background: linear-gradient(0deg, var(--amber-hi), #f7e6bf) 0 100% / 100% var(--fill, 0%) no-repeat; -webkit-background-clip: text; background-clip: text; }
.toast-copy { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 95; padding: 12px 18px; border-radius: 999px; background: var(--forest); color: var(--ivory); font-size: .9rem; transform: translateX(-50%); box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .6); animation: up .4s var(--ease-out); }
@media (max-width: 600px) { .wait-row { flex-direction: column; border-radius: 26px; } .wait-row input { text-align: center; } .wait-row .pill-lg { justify-content: center; } }

@media (prefers-reduced-motion: reduce) {
  .curtain { clip-path: none !important; }
  .phone { transform: none; }
  .why-acc .card { transition: none; }
  .finale-word { --fill: 100% !important; }
}
.mask-intro { transform-box: view-box; transform-origin: 50% 50%; }
.pin-drop.d1 { background: var(--amber-deep); }
.pin-drop.d1:not(.is-picked) { background: var(--forest); }
.nav-links a, .pill { white-space: nowrap; }
@media (max-width: 1080px) and (min-width: 761px) {
  .nav-links { display: none; }
  .menu-btn { display: block; }
}
.souvenirs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.token { width: clamp(50px, 5.4vw, 62px); font-size: 1.45rem; }
.eq i:nth-child(1) { height: 5px; } .eq i:nth-child(2) { height: 9px; } .eq i:nth-child(3) { height: 6px; } .eq i:nth-child(4) { height: 11px; }
@media (max-width: 900px) { .game-stage { padding: 20px 14px; } }
.trip-map { width: min(270px, 40%); }
.trip-map svg { --k: .154; aspect-ratio: 2.2; }
.tm-lbl { font-size: calc(32px * var(--k)); stroke-width: calc(8px * var(--k)); }
.tm-base { stroke-width: calc(5.8px * var(--k)); stroke-dasharray: calc(6px * var(--k)) calc(14px * var(--k)); }
.tm-done { stroke-width: calc(8.7px * var(--k)); }
.tm-from, .tm-to { r: calc(11.6px * var(--k)); }
.tm-parcel { r: calc(17px * var(--k)); stroke-width: calc(5.8px * var(--k)); }
@media (max-width: 900px) { .trip-map { width: 46%; } }
.trip-map svg { overflow: hidden; border-radius: 10px; background: #cfe0e2; }
.screen[data-step="4"] .row b, .screen[data-step="4"] .row small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.screen[data-step="4"] .row { padding: 8px 9px; }
.screen[data-step="4"] .row img { width: 42px; height: 42px; }
@media (max-width: 760px) { .mask-word text { font-size: 29vw; } }
@media (max-width: 900px) {
  .dm-phone .phone { --pad: 9px; border-radius: 42px; }
  .dm-phone .screen, .dm-phone .tabbar, .dm-phone .phone-bar, .dm-phone .phone-notch, .dm-phone .phone-glare { zoom: .82; }
}

/* v10.2 : fin de l'animation du sac, le suivi prend la place du sac parti */
.bagdrop { height: 380vh; }
.bd-sent { --done: 0; position: absolute; left: 50%; top: 50%; z-index: 3; width: min(420px, 88%); padding: 20px 22px; margin: -86px 0 0 calc(min(420px, 88%) / -2); border-radius: 24px; background: #fbf8f1; border: 1px solid rgba(19, 33, 27, .08); box-shadow: 0 30px 60px -40px rgba(16, 36, 28, .55); opacity: 0; pointer-events: none; }
.bds-top { display: flex; align-items: center; gap: 10px; font-size: .86rem; font-weight: 500; color: var(--ink-soft); }
.bds-live { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 4px rgba(231, 167, 74, .22); }
.bds-k { opacity: calc(1 - var(--done)); }
.bds-done { display: inline-flex; align-items: center; gap: 6px; margin-left: -10px; color: var(--forest); font-weight: 600; opacity: var(--done); transform: translateX(calc((1 - var(--done)) * 8px)); transition: opacity .35s var(--ease-out), transform .35s var(--ease-out); }
.bds-top { position: relative; }
.bds-k { position: absolute; left: 18px; transition: opacity .25s; }
.bds-done { margin-left: 0; }
.bds-done i { font-size: 1.1rem; color: var(--amber-deep); }
.bds-route { display: flex; align-items: center; gap: 14px; margin-top: 18px; font-size: clamp(1.15rem, 2vw, 1.4rem); letter-spacing: -.02em; }
.bds-route b { font-weight: 600; color: var(--forest); }
.bds-line { position: relative; flex: 1; height: 2px; background: repeating-linear-gradient(90deg, rgba(19, 33, 27, .25) 0 5px, transparent 5px 10px); }
.bds-fill { position: absolute; inset: 0; background: var(--forest); transform-origin: left; transform: scaleX(0); }
.bds-plane { position: absolute; top: 50%; left: 0; display: grid; place-items: center; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; background: var(--amber); color: var(--forest-deep); font-size: 1rem; }
.bds-back { display: flex; align-items: center; gap: 8px; margin-top: 18px; padding-top: 14px; border-top: 1px solid rgba(19, 33, 27, .08); font-size: .86rem; color: var(--ink-soft); opacity: 0; }
.bds-back i { color: var(--forest); font-size: 1rem; }
@media (max-width: 900px) {
  .bagdrop { height: 340vh; }
  .bd-sent { padding: 16px 18px; margin-top: -80px; }
}
@media (prefers-reduced-motion: reduce) { .bd-sent { position: relative; left: auto; top: auto; margin: 16px auto 0; opacity: 1; --done: 1; } .bds-fill { transform: none; } .bds-plane { left: 100%; } .bds-back { opacity: 1; } }
.bds-live { opacity: calc(1 - var(--done)); transition: opacity .25s; }
.bds-done { transform: translateX(calc(-18px + (1 - var(--done)) * 8px)); }
.bds-route { gap: 24px; }
.bds-back { max-height: 0; overflow: hidden; margin-top: 0; padding-top: 0; border-top-color: transparent; }
@media (prefers-reduced-motion: reduce) { .bds-back { max-height: none; margin-top: 18px; padding-top: 14px; } }
