/* Flâneries : styles communs. Les couleurs viennent des variables, redéfinies par salon. */
:root {
  --bg: #0b1330;
  --sky1: #070d24; --sky2: #16224f; --sky3: #3a3f7a;
  --paper: #fbf6ee; --paper2: #f3eadb; --ink: #2a1d14; --muted: #7d6b5b; --line: rgba(42, 29, 20, .12);
  --accent: #e2a93b; --accent-ink: #2a1d14; --accent2: #b23a2e;
  --chrome: rgba(10, 17, 44, .55); --chrome-ink: #f8f1e4; --chrome-line: rgba(255, 255, 255, .14);
  --display: 'Fraunces', Georgia, serif; --body: 'Manrope', system-ui, sans-serif;
  --r: 18px; --shadow: 0 30px 80px -20px rgba(5, 8, 25, .55), 0 8px 24px -8px rgba(5, 8, 25, .35);
  --ease: cubic-bezier(.2, .75, .2, 1);
}
body[data-salon="mariage"] {
  --bg: #f4e7dd;
  --sky1: #f6d9c4; --sky2: #f2e2d6; --sky3: #e9e3ef;
  --paper: #fffaf6; --paper2: #f6ece4; --ink: #3a2e2a; --muted: #8b7a71; --line: rgba(58, 46, 42, .12);
  --accent: #b97a6c; --accent-ink: #fff; --accent2: #7f8f6e;
  --chrome: rgba(255, 250, 246, .62); --chrome-ink: #3a2e2a; --chrome-line: rgba(58, 46, 42, .12);
  --display: 'Cormorant Garamond', Georgia, serif;
  --shadow: 0 30px 80px -24px rgba(90, 60, 50, .35), 0 8px 24px -10px rgba(90, 60, 50, .25);
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--bg); color: var(--ink); font-family: var(--body); -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
[hidden] { display: none !important; }

/* ───── Scène ───── */
#scene { position: fixed; inset: 0; transition: transform 1s var(--ease), filter .8s var(--ease); transform-origin: 50% 70%; }
#scene.zoom { transform: scale(1.14); filter: saturate(.85) brightness(.82); }
body[data-salon="mariage"] #scene.zoom { filter: saturate(.9) brightness(.92); }
#sky { position: absolute; inset: 0; background: linear-gradient(180deg, var(--sky1) 0%, var(--sky2) 55%, var(--sky3) 100%); overflow: hidden; }
#sky svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.layer { position: absolute; left: 0; bottom: 0; will-change: transform; pointer-events: none; }
#viewport { position: absolute; inset: 0; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; cursor: grab; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
#viewport::-webkit-scrollbar { display: none; }
#viewport.dragging { cursor: grabbing; }
#viewport.dragging * { cursor: grabbing !important; }
#track { position: relative; height: 100%; }
#stage { position: absolute; left: 0; bottom: 0; display: block; overflow: visible; }
#fx { position: absolute; inset: 0; pointer-events: none; }

/* éléments cliquables de la scène */
.stand { cursor: pointer; outline: none; }
.stand .stand-inner { transition: filter .5s var(--ease), opacity .5s; }
.stand:hover .stand-inner, .stand:focus-visible .stand-inner { filter: brightness(1.06); }
/* le chalet ne bouge pas : c'est le vendeur qui salue */
.stand:hover .vendor-char .armF, .stand:focus-visible .vendor-char .armF, .vendor-char.hello .armF { animation: hello 1.7s ease-in-out; }
.stand:hover .vendor-char .figure, .vendor-char.hello .figure { animation: hop 1.7s ease-in-out; }
@keyframes hello { 0% { transform: rotate(0); } 18% { transform: rotate(155deg); } 32% { transform: rotate(125deg); } 46% { transform: rotate(155deg); } 60% { transform: rotate(125deg); } 74% { transform: rotate(155deg); } 100% { transform: rotate(0); } }
@keyframes hop { 0%, 100% { transform: translateY(0); } 15% { transform: translateY(-4px); } 30% { transform: translateY(0); } }
.booth { cursor: pointer; }
.booth .glow { opacity: .8; transition: opacity .4s; }
.booth:hover .glow { opacity: 1; }
.booth-text { letter-spacing: .12em; }
.hgift { cursor: pointer; transition: transform .3s; }
.hgift .glint { animation: glint 6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; opacity: 0; }
@keyframes glint { 0%, 86%, 100% { opacity: 0; transform: scale(.3) rotate(0); } 91% { opacity: 1; transform: scale(1.2) rotate(45deg); } }
.hgift.got { animation: gotIt .7s var(--ease) forwards; transform-box: fill-box; transform-origin: center; }
@keyframes gotIt { to { opacity: 0; transform: translateY(-30px) scale(1.8); } }
.aurora { animation: aurora 16s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: center; mix-blend-mode: screen; }
.aurora.a1 { animation-duration: 22s; animation-delay: -6s; } .aurora.a2 { animation-duration: 19s; animation-delay: -11s; }
@keyframes aurora { 0% { transform: translateX(-80px) scaleY(.9); opacity: .55; } 50% { opacity: 1; } 100% { transform: translateX(80px) scaleY(1.15); opacity: .7; } }
.stand .glow { transition: opacity .5s; opacity: .7; }
.stand:hover .glow { opacity: 1; }
.stand.dim .stand-inner { opacity: .32; filter: grayscale(.6); }
.stand.hit .glow { opacity: 1; animation: pulseGlow 1.6s ease-in-out infinite; }
.sign-text { font-family: var(--display); font-weight: 700; letter-spacing: .01em; }
body[data-salon="mariage"] .sign-text { font-weight: 700; font-style: italic; }
.vendor-char { cursor: pointer; }
.cloud { animation: drift 120s ease-in-out infinite alternate; }
@keyframes drift { from { transform: translateX(-140px); } to { transform: translateX(140px); } }
.centerpiece, .guide, .walker { cursor: pointer; }
.centerpiece .star-halo { animation: halo 3.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.centerpiece:hover .star-halo { opacity: 1; }
.tree-star { animation: starSpin 9s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.flag { animation: flag 2.4s ease-in-out infinite; transform-box: fill-box; transform-origin: 0 50%; }

.tw1 { animation: tw 2.6s ease-in-out infinite; }
.tw2 { animation: tw 3.4s ease-in-out -1.2s infinite; }
.tw3 { animation: tw 2.1s ease-in-out -.6s infinite; }
@keyframes tw { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes halo { 0%, 100% { opacity: .65; transform: scale(1); } 50% { opacity: 1; transform: scale(1.08); } }
@keyframes starSpin { 0%, 100% { transform: rotate(-4deg) scale(1); } 50% { transform: rotate(4deg) scale(1.06); } }
@keyframes flag { 0%, 100% { transform: scaleX(1) skewY(0); } 50% { transform: scaleX(.86) skewY(6deg); } }
@keyframes pulseGlow { 0%, 100% { opacity: .7; } 50% { opacity: 1; } }

/* personnages */
.leg, .arm { transform-box: fill-box; }
.leg { transform-origin: 50% 0; }
.arm { transform-origin: 50% 6%; }
.walker .legL { animation: step .62s ease-in-out infinite alternate; }
.walker .legR { animation: step .62s ease-in-out infinite alternate-reverse; }
.walker .armF { animation: swing .62s ease-in-out infinite alternate; }
.walker .armB { animation: swing .62s ease-in-out infinite alternate-reverse; }
.walker .figure { animation: bob .31s ease-in-out infinite alternate; }
.walker.still .leg, .walker.still .arm, .walker.still .figure { animation: none; }
.idle .figure { animation: breathe 3.6s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 100%; }
.guide .armF { animation: wave 4s ease-in-out infinite; }
.guide:hover .armF { animation-duration: 1.6s; }
@keyframes step { from { transform: rotate(17deg); } to { transform: rotate(-17deg); } }
@keyframes swing { from { transform: rotate(-15deg); } to { transform: rotate(15deg); } }
@keyframes bob { from { transform: translateY(0); } to { transform: translateY(-2.5px); } }
@keyframes breathe { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(1.012); } }
@keyframes wave { 0%, 55%, 100% { transform: rotate(0); } 65% { transform: rotate(150deg); } 72% { transform: rotate(122deg); } 79% { transform: rotate(150deg); } 86% { transform: rotate(122deg); } 93% { transform: rotate(0); } }

/* ───── Barre du haut ───── */
#top { position: fixed; top: 0; left: 0; right: 0; z-index: 30; display: flex; align-items: center; gap: 14px; padding: 14px clamp(14px, 2.5vw, 28px); pointer-events: none; }
#top > * { pointer-events: auto; }
.pill { background: var(--chrome); color: var(--chrome-ink); border: 1px solid var(--chrome-line); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); border-radius: 999px; }
.brand { display: flex; align-items: center; gap: 10px; padding: 7px 16px 7px 8px; text-decoration: none; }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand b { display: block; font-family: var(--display); font-size: 19px; font-weight: 700; line-height: 1; letter-spacing: .01em; }
.brand small { display: block; font-size: 11.5px; opacity: .75; margin-top: 3px; letter-spacing: .04em; }
.search { position: relative; flex: 1; max-width: 440px; margin: 0 auto; display: flex; align-items: center; gap: 8px; padding: 0 16px; height: 46px; }
.search svg { width: 18px; height: 18px; opacity: .7; flex: none; }
.search input { flex: 1; min-width: 0; background: none; border: 0; outline: none; color: inherit; font: inherit; font-size: 15px; }
.search input::placeholder { color: inherit; opacity: .6; }
#results { position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: var(--paper); color: var(--ink); border-radius: 16px; box-shadow: var(--shadow); padding: 6px; max-height: 60vh; overflow: auto; }
#results button { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 8px; border-radius: 12px; }
#results button:hover, #results button.on { background: var(--paper2); }
#results .mini { width: 42px; height: 42px; border-radius: 10px; flex: none; display: grid; place-items: center; }
#results .mini svg { width: 34px; height: 34px; }
#results small { display: block; color: var(--muted); font-size: 12px; }
#results .none { padding: 14px; color: var(--muted); font-size: 14px; }
.top-right { display: flex; align-items: center; gap: 10px; }
.switch { display: flex; align-items: center; gap: 8px; padding: 0 6px 0 16px; height: 46px; font-size: 13px; }
.switch span { opacity: .7; }
.switch select { appearance: none; -webkit-appearance: none; background: transparent; border: 0; color: inherit; font: inherit; font-weight: 700; padding: 8px 26px 8px 4px; cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 13px) 52%, calc(100% - 8px) 52%; background-size: 5px 5px; background-repeat: no-repeat; }
.switch select option { color: #222; }
#cartBtn { position: relative; display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 8px 0 16px; background: var(--accent); color: var(--accent-ink); border-radius: 999px; font-weight: 700; font-size: 14.5px; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .5); transition: transform .3s var(--ease); }
#cartBtn:hover { transform: translateY(-1px); }
#cartBtn svg { width: 22px; height: 22px; }
#cartBtn b { min-width: 30px; height: 30px; border-radius: 999px; background: rgba(0, 0, 0, .16); display: grid; place-items: center; font-size: 13.5px; padding: 0 8px; }
#cartBtn.bump { animation: bump .5s var(--ease); }
@keyframes bump { 30% { transform: scale(1.12); } 60% { transform: scale(.96); } }

/* filtres */
#chips { position: fixed; top: 74px; left: 0; right: 0; z-index: 25; display: flex; gap: 8px; padding: 0 clamp(14px, 2.5vw, 28px); overflow-x: auto; scrollbar-width: none; pointer-events: none; }
#chips::-webkit-scrollbar { display: none; }
#chips button { pointer-events: auto; flex: none; height: 36px; padding: 0 15px; font-size: 13.5px; font-weight: 600; transition: background .3s, color .3s; }
#chips button.on { background: var(--paper); color: var(--ink); border-color: transparent; }
#chips button .n { opacity: .55; margin-left: 4px; font-weight: 500; }

/* plan en bas */
#plan { position: fixed; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 25; display: flex; align-items: center; gap: 4px; padding: 6px; max-width: calc(100vw - 28px); }
#plan > button { width: 38px; height: 38px; border-radius: 999px; display: grid; place-items: center; flex: none; font-size: 20px; line-height: 1; }
#plan > button:hover { background: rgba(255, 255, 255, .12); }
#planList { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; scroll-behavior: smooth; }
#planList::-webkit-scrollbar { display: none; }
#planList button { flex: none; height: 38px; padding: 0 13px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap; opacity: .72; transition: background .3s, opacity .3s, color .3s; display: flex; align-items: center; gap: 7px; }
#planList button i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); display: block; box-shadow: 0 0 0 2px rgba(255, 255, 255, .5); }
#planList button.on { background: var(--paper); color: var(--ink); opacity: 1; }
#planList button:hover { opacity: 1; }

/* ───── Panneaux (stand, panier) ───── */
#scrim { position: fixed; inset: 0; z-index: 40; background: rgba(6, 10, 28, .35); opacity: 0; pointer-events: none; transition: opacity .5s; }
#scrim.on { opacity: 1; pointer-events: auto; }
.sheet { position: fixed; top: 12px; right: 12px; bottom: 12px; z-index: 45; width: min(540px, calc(100vw - 24px)); background: var(--paper); color: var(--ink); border-radius: 26px; box-shadow: var(--shadow); transform: translateX(calc(100% + 30px)); transition: transform .7s var(--ease); display: flex; flex-direction: column; overflow: hidden; }
.sheet.open { transform: none; }
.sheet .x { position: absolute; top: 14px; right: 14px; z-index: 3; width: 40px; height: 40px; border-radius: 999px; background: rgba(255, 255, 255, .85); display: grid; place-items: center; font-size: 22px; line-height: 1; box-shadow: 0 4px 14px rgba(0, 0, 0, .12); }
.sheet-body { overflow-y: auto; flex: 1; overscroll-behavior: contain; }
#cartDrawer { z-index: 47; }

/* stand */
.sp-hero { position: relative; padding: 30px 28px 24px; background: linear-gradient(160deg, var(--v) 0%, color-mix(in srgb, var(--v) 70%, #000) 100%); color: #fff; overflow: hidden; }
.sp-hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 85% -10%, rgba(255, 255, 255, .25), transparent 55%); pointer-events: none; }
.sp-hero .who { display: flex; gap: 16px; align-items: center; position: relative; z-index: 1; }
.sp-avatar { width: 76px; height: 76px; border-radius: 50%; background: rgba(255, 255, 255, .18); border: 2px solid rgba(255, 255, 255, .5); overflow: hidden; flex: none; }
.sp-avatar svg { width: 100%; height: 100%; display: block; }
.eyebrow { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; opacity: .85; margin: 0 0 6px; }
.sp-hero h2 { font-family: var(--display); font-size: 34px; line-height: 1.02; margin: 0; font-weight: 700; }
.sp-hero .tag { margin: 6px 0 0; opacity: .88; font-size: 15px; }
.sp-quote { margin: 22px 0 0; position: relative; z-index: 1; font-family: var(--display); font-style: italic; font-size: 18px; line-height: 1.45; }
.sp-quote span { display: block; font-family: var(--body); font-style: normal; font-size: 13px; opacity: .8; margin-top: 8px; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 18px 0 0; padding: 0; position: relative; z-index: 1; }
.badges li { font-size: 12.5px; font-weight: 600; padding: 6px 11px; border-radius: 999px; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .28); }
.sp-section { padding: 22px 24px 8px; }
.sp-section h3 { margin: 0 0 14px; font-family: var(--display); font-size: 21px; font-weight: 700; display: flex; justify-content: space-between; align-items: baseline; }
.sp-section h3 small { font-family: var(--body); font-size: 12.5px; color: var(--muted); font-weight: 500; }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.card { position: relative; background: #fff; border-radius: 18px; border: 1px solid var(--line); overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease); animation: rise .6s var(--ease) both; }
.card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -18px rgba(40, 20, 10, .35); }
.card-art { display: grid; place-items: center; width: 100%; aspect-ratio: 1 / .86; background: var(--c); }
.card-art svg { width: 64%; height: 64%; transition: transform .5s var(--ease); }
.card:hover .card-art svg { transform: scale(1.07) rotate(-2deg); }
.card-body { padding: 11px 13px 14px; }
.card-body h4 { margin: 0; font-size: 14px; font-weight: 700; line-height: 1.3; min-height: 2.6em; }
.price { margin: 6px 0 0; font-weight: 800; font-size: 15px; }
.price.small { font-size: 13px; }
.add { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border-radius: 999px; background: var(--paper); box-shadow: 0 4px 12px rgba(0, 0, 0, .14); font-size: 22px; line-height: 1; display: grid; place-items: center; transition: transform .3s var(--ease), background .3s; }
.add:hover { transform: scale(1.1); background: var(--accent); color: var(--accent-ink); }
.add.done { background: var(--accent2); color: #fff; font-size: 16px; }
.sp-foot { padding: 18px 24px 26px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; padding: 0 22px; border-radius: 999px; font-weight: 700; font-size: 15px; text-decoration: none; transition: transform .3s var(--ease), filter .3s, background .3s; }
.btn:hover { transform: translateY(-1px); filter: brightness(1.05); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-ghost { background: transparent; border: 1.5px solid var(--line); }
.btn-ghost:hover { background: var(--paper2); }
.btn-block { width: 100%; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

/* ───── Modale produit ───── */
.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; background: rgba(6, 10, 28, .45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fade .35s ease both; }
.modal-card { position: relative; width: min(820px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: var(--paper); color: var(--ink); border-radius: 28px; box-shadow: var(--shadow); display: grid; grid-template-columns: 1fr 1fr; animation: pop .55s var(--ease) both; }
.modal-card .x { position: absolute; top: 14px; right: 14px; z-index: 3; width: 40px; height: 40px; border-radius: 999px; background: rgba(255, 255, 255, .85); font-size: 22px; display: grid; place-items: center; }
.pm-art { position: relative; background: var(--c); display: grid; place-items: center; min-height: 380px; }
.pm-art svg { width: 70%; height: 70%; filter: drop-shadow(0 20px 26px rgba(0, 0, 0, .12)); animation: floaty 5s ease-in-out infinite; }
.pm-ribbon { position: absolute; top: 18px; left: 18px; background: var(--ink); color: var(--paper); font-size: 12.5px; font-weight: 700; padding: 7px 12px; border-radius: 999px; letter-spacing: .02em; }
.pm-info { padding: 34px 30px 28px; display: flex; flex-direction: column; }
.vchip { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--muted); padding: 6px 12px 6px 6px; border-radius: 999px; background: var(--paper2); align-self: flex-start; }
.vchip i { width: 22px; height: 22px; border-radius: 50%; background: var(--v); display: block; }
.vchip:hover { color: var(--ink); }
.pm-info h2 { font-family: var(--display); font-size: 32px; line-height: 1.08; margin: 16px 0 8px; font-weight: 700; }
.pm-price { font-size: 24px; font-weight: 800; margin: 0 0 14px; }
.pm-desc { margin: 0 0 16px; line-height: 1.6; color: color-mix(in srgb, var(--ink) 82%, transparent); }
.pm-meta { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 8px; font-size: 13.5px; }
.pm-meta li { display: flex; align-items: center; gap: 9px; }
.pm-meta li::before { content: "✓"; width: 20px; height: 20px; border-radius: 50%; background: var(--paper2); display: grid; place-items: center; font-size: 11px; font-weight: 800; color: var(--accent2); }
.pm-actions { margin-top: auto; display: grid; gap: 10px; }
.qty-row { display: flex; gap: 10px; }
.qty { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; height: 50px; }
.qty button { width: 42px; height: 100%; font-size: 20px; }
.qty span { min-width: 22px; text-align: center; font-weight: 700; }
.qty-row .btn { flex: 1; }
.pm-more { grid-column: 1 / -1; padding: 6px 30px 28px; }
.pm-more h4 { margin: 0 0 12px; font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.pm-more .row { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; }
.pm-more .row button { flex: 1 0 150px; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 8px; display: flex; gap: 10px; align-items: center; font-size: 13px; font-weight: 600; }
.pm-more .row .mini { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.pm-more .row .mini svg { width: 36px; height: 36px; }
@keyframes pop { from { opacity: 0; transform: translateY(24px) scale(.97); } }
@keyframes fade { from { opacity: 0; } }
@keyframes floaty { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-8px) rotate(1.5deg); } }

/* ───── Panier ───── */
.cart-head { padding: 28px 26px 18px; border-bottom: 1px solid var(--line); }
.cart-head h2 { font-family: var(--display); font-size: 30px; margin: 0; font-weight: 700; }
.cart-head p { margin: 6px 0 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.cart-steps { display: flex; gap: 8px; margin-top: 14px; font-size: 12px; font-weight: 700; color: var(--muted); }
.cart-steps span { padding: 6px 10px; border-radius: 999px; background: var(--paper2); }
.cart-steps span.on { background: var(--ink); color: var(--paper); }
.cg { margin: 16px 18px 0; background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; animation: rise .5s var(--ease) both; }
.cg header { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px dashed var(--line); }
.cg header .dot { width: 34px; height: 34px; border-radius: 10px; background: var(--v); display: grid; place-items: center; color: #fff; font-family: var(--display); font-weight: 700; font-size: 16px; flex: none; }
.cg header b { display: block; font-size: 15px; }
.cg header small { color: var(--muted); font-size: 12.5px; }
.cg header .ok { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--accent2); }
.crow { display: flex; align-items: center; gap: 12px; padding: 10px 16px; }
.crow .mini { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.crow .mini svg { width: 36px; height: 36px; }
.crow .rn { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; }
.crow .rn small { display: block; color: var(--muted); font-weight: 500; font-size: 12.5px; margin-top: 2px; }
.crow .qty { height: 34px; }
.crow .qty button { width: 30px; font-size: 16px; }
.cg-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px 16px; flex-wrap: wrap; }
.cg-foot .st { font-size: 13px; color: var(--muted); }
.cg-foot .st b { color: var(--ink); font-size: 16px; }
.cg-foot .btn { height: 42px; font-size: 13.5px; padding: 0 16px; background: var(--v); color: #fff; }
.cart-sum { margin: 18px; padding: 18px; border-radius: 20px; background: var(--paper2); }
.cart-sum .line { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; }
.cart-sum .line b { font-size: 22px; font-family: var(--display); }
.cart-sum p { font-size: 12.5px; color: var(--muted); line-height: 1.55; margin: 10px 0 14px; }
.cart-empty { padding: 50px 30px; text-align: center; color: var(--muted); line-height: 1.6; }
.cart-empty svg { width: 120px; height: 120px; display: block; margin: 0 auto 10px; }

/* ───── Redirection ───── */
.redir { width: min(480px, 100%); background: var(--paper); border-radius: 28px; box-shadow: var(--shadow); padding: 34px 30px 28px; text-align: center; animation: pop .5s var(--ease) both; }
.redir .shop { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 18px; background: var(--v); color: #fff; display: grid; place-items: center; font-family: var(--display); font-size: 28px; font-weight: 700; }
.redir h3 { font-family: var(--display); font-size: 28px; margin: 4px 0 6px; }
.redir .lead { color: var(--muted); margin: 0 0 18px; font-size: 14.5px; }
.redir .url { font-family: ui-monospace, Consolas, monospace; font-size: 12px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; text-align: left; word-break: break-all; color: var(--muted); }
.redir .url b { color: var(--ink); }
.bar { height: 6px; background: var(--paper2); border-radius: 99px; overflow: hidden; margin: 18px 0 16px; }
.bar i { display: block; height: 100%; width: 0; background: var(--v); border-radius: 99px; }
.redir .note { font-size: 12.5px; color: var(--muted); line-height: 1.5; margin: 0 0 16px; }
.redir .actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ───── Bulle, infobulle, toast ───── */
#bubble { position: fixed; z-index: 35; width: 290px; background: var(--paper); color: var(--ink); border-radius: 20px; padding: 16px 18px 14px; box-shadow: var(--shadow); animation: pop .45s var(--ease) both; }
#bubble::after { content: ""; position: absolute; left: var(--tx, 50%); width: 18px; height: 18px; background: var(--paper); transform: translateX(-50%) rotate(45deg); border-radius: 3px; }
#bubble.above::after { bottom: -7px; }
#bubble.below::after { top: -7px; }
#bubble .who { font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
#bubble p { margin: 0; font-family: var(--display); font-size: 17px; line-height: 1.38; }
#bubble .acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
#bubble .acts button { padding: 8px 12px; border-radius: 999px; background: var(--paper2); font-size: 13px; font-weight: 700; }
#bubble .acts button.main { background: var(--accent); color: var(--accent-ink); }
#bubble .acts button:hover { filter: brightness(.96); }
#bubble .bx { position: absolute; top: 8px; right: 10px; font-size: 18px; color: var(--muted); width: 26px; height: 26px; }
#tip { position: fixed; z-index: 34; pointer-events: none; background: var(--paper); color: var(--ink); border-radius: 14px; padding: 9px 13px; box-shadow: var(--shadow); font-size: 13px; max-width: 240px; transform: translate(-50%, calc(-100% - 18px)); }
#tip b { display: block; font-family: var(--display); font-size: 16px; }
#tip span { color: var(--muted); }
#tip em { display: block; font-style: normal; font-weight: 700; color: var(--accent2); margin-top: 4px; font-size: 12px; }
#toast { position: fixed; left: 50%; bottom: 84px; z-index: 70; transform: translate(-50%, 20px); opacity: 0; transition: all .45s var(--ease); background: var(--ink); color: var(--paper); padding: 12px 18px; border-radius: 999px; font-size: 14px; font-weight: 600; pointer-events: none; display: flex; gap: 10px; align-items: center; }
#toast.on { opacity: 1; transform: translate(-50%, 0); }
.flyer { position: fixed; z-index: 80; pointer-events: none; border-radius: 16px; overflow: hidden; }
.spark { position: fixed; z-index: 80; pointer-events: none; width: 10px; height: 10px; }

/* ───── Intro ───── */
#intro { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 24px; background: radial-gradient(ellipse at 50% 40%, rgba(8, 12, 34, .62), rgba(8, 12, 34, .9)); color: #fff; text-align: center; transition: opacity .9s var(--ease), visibility .9s; }
body[data-salon="mariage"] #intro { background: radial-gradient(ellipse at 50% 40%, rgba(255, 248, 242, .45), rgba(246, 230, 220, .9)); color: var(--ink); }
#intro.gone { opacity: 0; visibility: hidden; }
.intro-in { max-width: 760px; }
.intro-in > * { animation: rise 1s var(--ease) both; }
.intro-in > *:nth-child(2) { animation-delay: .12s; } .intro-in > *:nth-child(3) { animation-delay: .24s; } .intro-in > *:nth-child(4) { animation-delay: .36s; } .intro-in > *:nth-child(5) { animation-delay: .48s; } .intro-in > *:nth-child(6) { animation-delay: .6s; }
.intro-eyebrow { font-size: 13px; letter-spacing: .24em; text-transform: uppercase; font-weight: 700; opacity: .8; }
.intro-title { font-family: var(--display); font-weight: 600; font-size: clamp(46px, 8.5vw, 104px); line-height: .95; margin: 18px 0 0; letter-spacing: -.02em; }
.intro-title em { display: block; font-style: italic; font-weight: 400; color: var(--accent); }
.intro-lead { font-size: clamp(16px, 2vw, 19px); line-height: 1.6; max-width: 560px; margin: 22px auto 0; opacity: .9; }
.intro-stats { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 26px 0 0; padding: 0; list-style: none; }
.intro-stats li { font-size: 13.5px; padding: 8px 14px; border-radius: 999px; border: 1px solid currentColor; opacity: .85; }
.intro-stats b { font-weight: 800; }
.intro-cta { margin-top: 30px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.intro-cta .btn { height: 58px; padding: 0 34px; font-size: 16.5px; box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .5); }
.intro-cta a { font-size: 14px; opacity: .8; }
.intro-cta a:hover { opacity: 1; }
.hint { position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%); z-index: 24; color: var(--chrome-ink); font-size: 13px; padding: 9px 16px; animation: fade 1s ease 1.2s both; pointer-events: none; }

/* ───── Mobile ───── */
@media (max-width: 760px) {
  #top { gap: 8px; padding: 10px 12px; }
  .brand { padding: 5px 12px 5px 5px; }
  .brand svg { width: 30px; height: 30px; }
  .brand b { font-size: 16px; }
  .brand small, .brand b { display: none; }
  .brand { padding: 5px; }
  .switch select { max-width: 112px; text-overflow: ellipsis; font-size: 13px; }
  .search { display: none; }
  body.searching .search { display: flex; position: fixed; top: 64px; left: 12px; right: 12px; max-width: none; z-index: 31; }
  #searchToggle { display: grid !important; }
  .switch span { display: none; }
  .switch { padding: 0 2px 0 10px; height: 42px; }
  #cartBtn { height: 42px; padding: 0 6px 0 12px; }
  #cartBtn span { display: none; }
  #chips { top: 64px; padding: 0 12px; }
  body.searching #chips { top: 118px; }
  .sheet { top: auto; left: 8px; right: 8px; bottom: 0; width: auto; height: 88vh; border-radius: 26px 26px 0 0; transform: translateY(105%); }
  .sheet.open { transform: none; }
  .modal { padding: 0; place-items: end center; }
  .modal-card { grid-template-columns: 1fr; border-radius: 26px 26px 0 0; max-height: 92vh; }
  .pm-art { min-height: 240px; }
  .pm-info { padding: 22px 20px 18px; }
  .pm-info h2 { font-size: 27px; }
  .pm-more { padding: 4px 20px 22px; }
  .sp-hero { padding: 26px 20px 20px; }
  .sp-hero h2 { font-size: 28px; }
  .sp-section { padding: 18px 16px 6px; }
  .grid { gap: 10px; }
  #plan { bottom: 10px; }
  #planList button { padding: 0 11px; font-size: 12.5px; }
  .hint { bottom: 70px; font-size: 12px; white-space: nowrap; }
}
#searchToggle { display: none; width: 42px; height: 42px; place-items: center; }
#searchToggle svg { width: 18px; height: 18px; }

/* ───── Allées ───── */
.portal { cursor: pointer; }
.portal .glow { opacity: .7; transition: opacity .4s; }
.portal:hover .glow { opacity: 1; }
.portal:hover .sign-text { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.sign-sub { font-family: var(--body); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.deco .giant { animation: floaty 5s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
#chips .tab i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); display: inline-block; margin-right: 7px; box-shadow: 0 0 0 2px rgba(255, 255, 255, .35); }
#chips .tab.on { box-shadow: inset 0 -3px 0 var(--c); }
body.leaving::after { content: ""; position: fixed; inset: 0; z-index: 300; background: var(--bg); animation: fade .42s ease both; }
.scene-card { position: fixed; left: 50%; top: 44%; z-index: 28; transform: translate(-50%, -50%); text-align: center; color: #fff; pointer-events: none; animation: sceneCard 2.6s var(--ease) both; text-shadow: 0 4px 30px rgba(0, 0, 0, .55); width: min(94vw, 900px); padding: 60px 40px; background: radial-gradient(ellipse at center, rgba(8, 12, 34, .82) 0%, rgba(8, 12, 34, .55) 45%, rgba(8, 12, 34, 0) 72%); }
.scene-card p { margin: 0; font-size: 13px; letter-spacing: .24em; text-transform: uppercase; font-weight: 800; color: var(--c); filter: brightness(1.6); }
.scene-card h2 { margin: 10px 0 8px; font-family: var(--display); font-size: clamp(38px, 7vw, 84px); line-height: 1; font-weight: 600; }
.scene-card span { font-size: 16px; opacity: .9; }
@keyframes sceneCard { 0% { opacity: 0; transform: translate(-50%, -40%); } 18%, 70% { opacity: 1; transform: translate(-50%, -50%); } 100% { opacity: 0; transform: translate(-50%, -58%); } }
.map { padding: 10px; height: 100%; display: grid; place-items: center; }
.map svg { width: 100%; height: 100%; max-height: 600px; }
.map-alley { cursor: pointer; transition: opacity .3s; }
.map svg:hover .map-alley:not(:hover) { opacity: .55; }
.map-alley.here line:first-child { stroke: #fff6d8; }

/* ───── Jeux ───── */
#fun { position: fixed; top: 120px; left: clamp(14px, 2.5vw, 28px); z-index: 25; display: flex; gap: 8px; }
#fun button { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; font-size: 13.5px; font-weight: 700; }
#fun svg { width: 18px; height: 18px; }
#funHunt { background: linear-gradient(135deg, #e2b04a, #c98a1a); color: #2a1d14; border-color: transparent; }
#funHunt b { background: rgba(0, 0, 0, .15); border-radius: 99px; padding: 2px 8px; font-size: 12px; }
.intro-stats li.gold { border-color: var(--accent); color: var(--accent); opacity: 1; }
#found { z-index: 75; }
.found-card .actions { margin-top: 20px; }
.found-card .g-big { width: 96px; height: 96px; margin: -10px auto 4px; display: block; animation: floaty 3s ease-in-out infinite; }
.found-card .code { display: inline-block; font-family: ui-monospace, Consolas, monospace; font-weight: 700; font-size: 14px; padding: 10px 14px; border: 2px dashed var(--v); border-radius: 12px; background: #fff; }
.game { position: fixed; inset: 0; z-index: 65; display: grid; place-items: center; padding: 16px; background: rgba(6, 10, 28, .6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); animation: fade .3s ease both; }
.game-card { position: relative; width: min(980px, 100%); height: min(720px, calc(100vh - 32px)); background: #121a3d; color: #f8f1e4; border-radius: 28px; box-shadow: var(--shadow); display: flex; flex-direction: column; overflow: hidden; animation: pop .5s var(--ease) both; border: 1px solid rgba(255, 255, 255, .08); }
.game-top { display: flex; align-items: center; gap: 18px; padding: 18px 22px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.game-top .gt { flex: 1; min-width: 0; }
.game-top h2 { margin: 0; font-family: Fraunces, Georgia, serif; font-size: 26px; font-weight: 700; }
.game-top p { margin: 3px 0 0; font-size: 13.5px; opacity: .7; }
.game-hud { display: flex; gap: 8px; }
.game-hud span { background: rgba(255, 255, 255, .08); border-radius: 14px; padding: 6px 12px; text-align: center; min-width: 64px; }
.game-hud small { display: block; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; opacity: .6; }
.game-hud b { font-size: 18px; font-variant-numeric: tabular-nums; }
.game-hud .hearts { color: #ff6b6b; letter-spacing: 2px; }
.game-hud .hearts i { color: rgba(255, 255, 255, .2); font-style: normal; }
.game-card .x { position: static; width: 40px; height: 40px; border-radius: 999px; background: rgba(255, 255, 255, .1); color: #fff; font-size: 22px; flex: none; }
.game-body { position: relative; flex: 1; overflow: auto; }
.gmenu { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; padding: 22px; }
.gcard { text-align: left; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); border-radius: 22px; padding: 20px; display: flex; flex-direction: column; gap: 8px; transition: transform .35s var(--ease), background .35s; }
.gcard:hover { transform: translateY(-4px); background: rgba(255, 255, 255, .09); }
.gcard .gart { width: 100%; aspect-ratio: 16 / 9; border-radius: 16px; display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--g) 45%, #121a3d), #0d1430); margin-bottom: 6px; }
.gcard .gart svg { width: 42%; height: 80%; filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .35)); transition: transform .5s var(--ease); }
.gcard:hover .gart svg { transform: scale(1.1) rotate(-6deg); }
.gcard b { font-family: Fraunces, Georgia, serif; font-size: 22px; }
.gcard > span { font-size: 14px; opacity: .75; line-height: 1.5; }
.gcard em { font-style: normal; font-size: 12.5px; font-weight: 700; color: var(--accent); }
.gcard i.btn { margin-top: 8px; font-style: normal; height: 44px; }
.catch { position: absolute; inset: 0; }
.catch canvas { display: block; cursor: none; touch-action: none; }
.g-over, .g-result { position: absolute; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(8, 12, 34, .55); text-align: center; animation: fade .3s ease both; overflow: auto; }
.g-over-in, .g-result-in { max-width: 520px; }
.g-big { width: 120px; height: 120px; display: block; margin: 0 auto 8px; }
.g-over p { font-size: 16px; line-height: 1.6; opacity: .9; margin: 0 0 20px; }
.g-result h3 { font-family: Fraunces, Georgia, serif; font-size: clamp(30px, 5vw, 46px); margin: 6px 0 4px; }
.g-result .eyebrow { color: var(--accent); }
.g-sub { margin: 0 0 14px; font-weight: 700; color: var(--accent); }
.g-small { font-size: 13px; opacity: .7; margin: 16px 0 8px; }
.g-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.g-chips button { display: flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .1); border-radius: 999px; padding: 7px 13px 7px 8px; font-size: 13px; font-weight: 700; color: #fff; }
.g-chips i { width: 16px; height: 16px; border-radius: 50%; background: var(--v); display: block; }
.g-prods { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; text-align: left; }
.g-prods button { display: flex; align-items: center; gap: 10px; background: rgba(255, 255, 255, .07); border-radius: 14px; padding: 6px; font-size: 12.5px; font-weight: 600; color: #fff; }
.g-prods .mini { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.g-prods .mini svg { width: 32px; height: 32px; }
.g-acts { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }
.btn-ghost.light { border-color: rgba(255, 255, 255, .3); color: #fff; }
.btn-ghost.light:hover { background: rgba(255, 255, 255, .1); }
.memory { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 20px; max-width: min(640px, calc(100vh - 210px)); margin: 0 auto; }
.mcard { aspect-ratio: 1; perspective: 800px; padding: 0; }
.mc-in { position: relative; display: block; width: 100%; height: 100%; transition: transform .55s var(--ease); transform-style: preserve-3d; }
.mcard.up .mc-in { transform: rotateY(180deg); }
.mc-back, .mc-front { position: absolute; inset: 0; border-radius: 16px; display: grid; place-items: center; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.mc-back { background: repeating-linear-gradient(45deg, #b23a2e 0 12px, #a12f25 12px 24px); color: #f7c948; border: 3px solid #e2b04a; }
.mc-back svg { width: 42%; }
.mcard:hover .mc-back { filter: brightness(1.1); }
.mc-front { transform: rotateY(180deg); padding: 8px; align-content: center; }
.mc-front svg { width: 62%; height: auto; }
.mc-front small { font-size: 10.5px; font-weight: 700; color: #2a1d14; line-height: 1.2; opacity: 0; transition: opacity .3s .3s; }
.mcard.ok .mc-front small { opacity: .8; }
.mcard.ok .mc-front { box-shadow: 0 0 0 3px #7fe0a0, 0 0 24px rgba(127, 224, 160, .5); }
.hunt { padding: 22px; max-width: 720px; margin: 0 auto; }
.hbar { height: 8px; background: rgba(255, 255, 255, .1); border-radius: 99px; overflow: hidden; margin-bottom: 18px; }
.hbar i { display: block; height: 100%; background: linear-gradient(90deg, #e2b04a, #ffd86b); border-radius: 99px; transition: width .6s var(--ease); }
.clues { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.clues li { display: flex; gap: 14px; align-items: flex-start; background: rgba(255, 255, 255, .05); border-radius: 16px; padding: 14px 16px; }
.clues li.ok { background: rgba(127, 224, 160, .1); }
.clues .n { width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, .12); display: grid; place-items: center; font-weight: 800; flex: none; }
.clues li.ok .n { background: #7fe0a0; color: #123; }
.clues p { margin: 4px 0 0; font-family: Fraunces, Georgia, serif; font-size: 16.5px; line-height: 1.4; }
.clues small { display: block; margin-top: 6px; font-size: 12.5px; opacity: .8; }
.clues small b { color: var(--accent); }
.hunt-done { text-align: center; margin-bottom: 18px; }
.hunt-done h3 { font-family: Fraunces, Georgia, serif; font-size: 30px; margin: 0 0 6px; }
.hunt-done p { opacity: .8; margin: 0; }
@media (max-width: 760px) {
  #fun { top: 110px; left: 12px; }
  #fun button { height: 34px; padding: 0 11px; font-size: 12.5px; white-space: nowrap; }
  #funHunt span { display: none; }
  .game { padding: 0; }
  .game-card { height: 100vh; border-radius: 0; }
  .game-top { flex-wrap: wrap; padding: 14px 16px; gap: 10px; }
  .game-top .gt { order: 1; flex-basis: calc(100% - 60px); }
  .game-top .x { order: 2; }
  .game-hud { order: 3; width: 100%; }
  .game-hud span { flex: 1; }
  .game-top p { display: none; }
  .memory { gap: 8px; padding: 14px; }
  .g-prods { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* ───── Saint-Valentin ───── */
body[data-salon="valentin"] {
  --bg: #f7dfe3;
  --sky1: #f2a9b8; --sky2: #f8cdd2; --sky3: #fde6dc;
  --paper: #fff8f8; --paper2: #fbe9ec; --ink: #3d1f27; --muted: #8e6a72; --line: rgba(61, 31, 39, .12);
  --accent: #c92a4b; --accent-ink: #fff; --accent2: #6b3a7a;
  --chrome: rgba(255, 246, 247, .64); --chrome-ink: #3d1f27; --chrome-line: rgba(61, 31, 39, .12);
  --display: 'Cormorant Garamond', Georgia, serif;
  --shadow: 0 30px 80px -24px rgba(120, 40, 60, .35), 0 8px 24px -10px rgba(120, 40, 60, .25);
}
body[data-salon="valentin"] #scene.zoom { filter: saturate(.9) brightness(.92); }
body[data-salon="valentin"] .sign-text { font-weight: 700; font-style: italic; }
body[data-salon="valentin"] #intro { background: radial-gradient(ellipse at 50% 40%, rgba(255, 246, 247, .5), rgba(247, 210, 218, .92)); color: var(--ink); }
.centerpiece .beat { transform-box: view-box; animation: beat 1.4s ease-in-out infinite; }
@keyframes beat { 0%, 60%, 100% { transform: scale(1); } 15% { transform: scale(1.08); } 30% { transform: scale(.98); } 45% { transform: scale(1.05); } }
.centerpiece .jet { stroke-dasharray: 14 10; animation: jet 1.2s linear infinite; }
@keyframes jet { to { stroke-dashoffset: -48; } }
.centerpiece .ripple { animation: jet 6s linear infinite; }
.guide .wings { transform-box: fill-box; transform-origin: 50% 80%; animation: flap .9s ease-in-out infinite alternate; }
@keyframes flap { to { transform: scaleX(.86) translateY(-2px); } }
@media (prefers-reduced-motion: reduce) { .centerpiece .beat, .centerpiece .jet, .guide .wings { animation: none; } }

/* panneau indicateur en fin d'allée */
.sign-arrow { transition: transform .25s var(--ease); }
.sign-arrow:hover, .sign-arrow:focus-visible { transform: scale(1.06); }

/* ───── jeux : défi du jour, calendrier de l'Avent ───── */
.gtoday { margin: 18px 22px 0; padding: 12px 16px; border-radius: 16px; background: linear-gradient(90deg, rgba(226, 169, 59, .22), rgba(226, 169, 59, .06)); display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; }
.gtoday span { font-weight: 800; color: var(--accent); }
.gtoday b { font-weight: 600; opacity: .85; font-size: 14px; }
.quiz { padding: 22px; display: grid; justify-items: center; gap: 10px; text-align: center; }
.qz-art { width: 150px; height: 150px; border-radius: 28px; display: grid; place-items: center; box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .5); }
.qz-art svg { width: 76%; height: 76%; }
.qz-q { font-family: Fraunces, Georgia, serif; font-size: 24px; margin: 4px 0 0; }
.qz-sub { margin: 0; opacity: .75; }
.qz-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; width: min(560px, 100%); margin-top: 6px; }
.qz-o { text-align: left; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .07); border: 1.5px solid rgba(255, 255, 255, .14); display: grid; gap: 2px; transition: background .2s, border-color .2s, transform .2s; }
.qz-o:hover:not(:disabled) { background: rgba(255, 255, 255, .13); transform: translateY(-2px); }
.qz-o small { opacity: .7; font-size: 12.5px; }
.qz-o.good { background: rgba(63, 160, 98, .35); border-color: #5fd08a; }
.qz-o.bad { background: rgba(198, 40, 40, .35); border-color: #ff7b7b; }
.advent { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; padding: 22px; }
.door { aspect-ratio: 4 / 3; border-radius: 14px; position: relative; background: linear-gradient(160deg, #2f6b46, #1f4a31); border: 2px solid rgba(255, 255, 255, .16); color: #fff; overflow: hidden; transition: transform .25s var(--ease); }
.door:nth-child(3n) { background: linear-gradient(160deg, #a8322d, #7a1f2b); }
.door:nth-child(4n) { background: linear-gradient(160deg, #24476b, #172f4a); }
.door .dn { position: absolute; top: 8px; left: 10px; font-family: Fraunces, Georgia, serif; font-size: clamp(18px, 3vw, 28px); font-weight: 700; }
.door.today { box-shadow: 0 0 0 3px #e2b04a, 0 0 26px rgba(226, 176, 74, .6); animation: hop 1.6s ease-in-out infinite; }
.door.locked { opacity: .45; cursor: not-allowed; }
.door:not(:disabled):hover { transform: translateY(-3px) rotate(-1deg); }
.door.open { background: #fbf6ee; color: #2a1d14; }
.door .dp { position: absolute; inset: 22% 10% 6%; }
.door .dp svg { width: 100%; height: 100%; }
.advent-pop { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(8, 12, 34, .7); padding: 20px; text-align: center; }
.ap-in { max-width: 420px; display: grid; justify-items: center; gap: 6px; }
.ap-in h3 { font-family: Fraunces, Georgia, serif; font-size: 26px; margin: 6px 0 0; }
.ap-in p { margin: 0; }
.ap-in .code { font-family: ui-monospace, monospace; font-size: 20px; font-weight: 800; letter-spacing: .08em; padding: 10px 18px; border: 2px dashed var(--accent); border-radius: 12px; color: var(--accent); margin-top: 6px; }
@media (max-width: 640px) { .advent { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 14px; } .qz-opts { grid-template-columns: 1fr; } }

/* écureuils */
.squirrel { cursor: pointer; }
.squirrel.waving .sq-body > * { animation: sqWave 1.2s ease-in-out; transform-box: fill-box; transform-origin: 50% 100%; }
@keyframes sqWave { 0%,100% { transform: none } 15% { transform: translateY(-14px) rotate(-6deg) } 30% { transform: translateY(0) } 45% { transform: translateY(-10px) rotate(6deg) } 60% { transform: none } 75% { transform: rotate(-4deg) } }
.sq-hidden { cursor: pointer; }
.sq-hidden .sq-peek { animation: sqPeek 5s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 100%; }
@keyframes sqPeek { 0%,70%,100% { transform: none } 78% { transform: rotate(-5deg) } 86% { transform: rotate(4deg) } }
.sq-hidden.got { animation: gotIt .9s var(--ease) forwards; transform-box: fill-box; transform-origin: center; }
.sqgame .lead { margin: 0 0 14px; }
.sqgame .clues .btn-sm { margin-top: 6px; padding: 6px 12px; font-size: 13px; }
@media (prefers-reduced-motion: reduce) { .squirrel.waving .sq-body > *, .sq-hidden .sq-peek { animation: none } }
.sqgame .clues li { padding-top: 10px; padding-bottom: 10px; }
.sqgame .clues li > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; width: 100%; }
.sqgame .clues li p { margin: 0; }
.sq-go { border: 1px solid currentColor; background: transparent; color: inherit; border-radius: 999px; padding: 6px 14px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; opacity: .9; }
.sq-go:hover { opacity: 1; background: rgba(255,255,255,.08); }

/* rangées : on descend (ou remonte) d'une rangée de chalets à l'autre */
body.leaving-down #scene { transition: transform .42s ease-in, opacity .42s; transform: translateY(-90px); opacity: .2; }
body.leaving-up #scene { transition: transform .42s ease-in, opacity .42s; transform: translateY(90px); opacity: .2; }
body.leaving-down::after, body.leaving-up::after { animation-delay: .15s; }
body.arrive-down #scene { animation: rowArriveDown .7s cubic-bezier(.2, .8, .3, 1) both; }
body.arrive-up #scene { animation: rowArriveUp .7s cubic-bezier(.2, .8, .3, 1) both; }
@keyframes rowArriveDown { from { transform: translateY(110px); opacity: 0; } }
@keyframes rowArriveUp { from { transform: translateY(-110px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { body.leaving-down #scene, body.leaving-up #scene, body.arrive-down #scene, body.arrive-up #scene { transition: none; animation: none; transform: none; } }

/* ───── jeux du jour ───── */
.gcard.feat { outline: 3px solid #e2b04a; outline-offset: -3px; }
.gcard .fbadge { display: inline-block; align-self: flex-start; font-style: normal; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; background: #e2b04a; color: #2a1d14; padding: 3px 9px; border-radius: 99px; margin-bottom: 6px; }
.taq { display: grid; gap: 14px; justify-items: center; padding: 18px; }
.taq-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; width: min(360px, 82vw); aspect-ratio: 340 / 400; background: #2a1d14; padding: 4px; border-radius: 14px; }
.taq-c { padding: 0; border: 0; border-radius: 8px; overflow: hidden; background: #f4ead8; cursor: pointer; }
.taq-c svg { width: 100%; height: 100%; display: block; }
.taq-c.empty { background: transparent; cursor: default; }
.taq-ref { width: 90px; opacity: .8; } .taq-ref svg { width: 100%; height: auto; display: block; }
.bells { display: grid; gap: 18px; justify-items: center; padding: 24px 16px; }
.bell-msg { font-weight: 800; font-size: 18px; min-height: 1.4em; margin: 0; }
.bell-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; width: min(340px, 80vw); }
.bell { aspect-ratio: 1; border: 0; border-radius: 24px; background: color-mix(in srgb, var(--c) 18%, #fff); color: var(--c); cursor: pointer; transition: transform .15s, background .15s, box-shadow .15s; }
.bell svg { width: 62%; height: 62%; }
.bell.on { background: var(--c); color: #fff; transform: scale(1.06) rotate(-6deg); box-shadow: 0 0 0 6px color-mix(in srgb, var(--c) 30%, transparent); }
