/* Luna Park de Paris · « Composez votre fête » (common/js/fete3d.js, attribut data-fete3d) */
:where(:root) {
  --lp-night: #07061A; --lp-deep: #0E0B33; --lp-violet: #6A1FA0; --lp-electric: #7B2FF7; --lp-pink: #FF2E9A;
  --lp-gold: #FFC24A; --lp-gold-2: #E8B04A; --lp-cyan: #2FE6FF; --lp-red: #C8102E; --lp-ivory: #FFF6E5;
  --lp-f-display: 'Big Shoulders Display'; --lp-f-neon: 'Yellowtail'; --lp-f-text: 'Plus Jakarta Sans'; --lp-f-mono: 'Geist Mono';
}
.lp-f3d {
  --f-display: var(--lp-f-display), 'Big Shoulders', 'Oswald', 'Arial Narrow', Impact, sans-serif;
  --f-neon: var(--lp-f-neon), 'Pacifico', 'Brush Script MT', cursive;
  --f-text: var(--lp-f-text), system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --f-mono: var(--lp-f-mono), ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --glass: rgba(11, 8, 36, .74);
  --line: rgba(232, 176, 74, .32);
  --panel-w: min(410px, 34vw);
  position: relative; isolation: isolate; background: var(--lp-night); color: var(--lp-ivory);
  font-family: var(--f-text); font-size: 15px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
.lp-f3d *, .lp-f3d *::before, .lp-f3d *::after { box-sizing: border-box; }
.lp-f3d button { font: inherit; color: inherit; }
.lp-f3d [hidden] { display: none !important; }

/* ---------------------------------------------------------------- scène */
.f3d-stage { position: relative; height: 100vh; height: 100svh; min-height: 640px; max-height: 1180px; overflow: hidden; background: radial-gradient(120% 90% at 60% 40%, #140c3e 0%, var(--lp-night) 70%); }
.lp-f3d--compact .f3d-stage { height: min(90svh, 920px); min-height: 600px; }
.f3d-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; outline: none; touch-action: none; opacity: 0; transition: opacity 1.2s ease; }
.lp-f3d--compact .f3d-canvas { touch-action: pan-y; }
.lp-f3d[data-ready] .f3d-canvas { opacity: 1; }
.f3d-stage::after { content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: radial-gradient(140% 100% at 50% 45%, transparent 55%, rgba(4, 3, 16, .65) 100%), linear-gradient(180deg, rgba(7, 6, 26, .55), transparent 18%, transparent 82%, rgba(7, 6, 26, .6)); }
.f3d-plan, .f3d-stage .f3d-plan.maplibregl-map { position: absolute; inset: 0; z-index: 1; background: #f3eee6; touch-action: none; }
.lp-f3d:not([data-act="1"]) .f3d-stage::after { background: linear-gradient(180deg, rgba(7, 6, 26, .28), transparent 16%); }
.lp-f3d:not([data-act="1"]) .f3d-stage { background: #f3eee6; }
.lp-f3d[data-act="4"] .f3d-stage::after { background: linear-gradient(180deg, rgba(7, 6, 26, .5), rgba(7, 6, 26, .35)); }
.f3d-nogl { display: none; }
.lp-f3d[data-nogl] .f3d-nogl { display: grid; position: absolute; inset: 0; place-items: center; padding: 24px; z-index: 2; text-align: center; color: rgba(255, 246, 229, .7);
  background: radial-gradient(60% 50% at 60% 50%, rgba(106, 31, 160, .35), transparent 70%); }
.lp-f3d[data-nogl] .f3d-nogl p { max-width: 380px; margin-left: auto; }
.lp-f3d[data-nogl] .f3d-steps, .lp-f3d[data-nogl] .f3d-ctrl { display: none; }
.f3d-nogl a { color: var(--lp-gold); }
.f3d-veil { position: absolute; inset: 0; z-index: 30; pointer-events: none; opacity: 0; transition: opacity .38s ease; background: radial-gradient(60% 60% at 50% 50%, #1a0b3d, var(--lp-night)); }
.f3d-veil.is-on { opacity: 1; }
.f3d-live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------------------------------------------------------------- étiquettes projetées */
.f3d-labels { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.f3d-lbl { position: absolute; left: 0; top: 0; translate: -50% -100%; white-space: nowrap; will-change: transform; }
.f3d-lbl.is-dep { translate: -50% -50%; font: 500 10.5px/1 var(--f-mono); letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 246, 229, .5); text-shadow: 0 0 8px #07061A; }
.f3d-lbl.is-dep small { margin-left: .7em; color: rgba(255, 194, 74, .65); font-size: 1em; }
.f3d-lbl.is-paris { translate: -10% -50%; font: 400 30px/1 var(--f-neon); color: #FFF1D6; text-shadow: 0 0 3px #fff, 0 0 10px var(--lp-gold), 0 0 26px rgba(255, 194, 74, .7); }
.f3d-lbl.is-served { translate: -50% calc(-100% - 16px - var(--lift, 0px)); pointer-events: auto; display: grid; gap: 2px; padding: 9px 14px 9px 16px; text-decoration: none; color: var(--lp-ivory);
  background: linear-gradient(160deg, rgba(40, 14, 74, .92), rgba(14, 8, 40, .92)); border: 1px solid rgba(255, 194, 74, .6); border-radius: 10px;
  box-shadow: 0 0 0 3px rgba(255, 46, 154, .12), 0 10px 30px rgba(0, 0, 0, .45), 0 0 24px rgba(255, 46, 154, .25); transition: border-color .2s, box-shadow .2s; }
.f3d-lbl.is-served::after { content: ''; position: absolute; left: 50%; top: 100%; width: 1px; height: calc(16px + var(--lift, 0px)); background: linear-gradient(var(--lp-gold), rgba(255, 46, 154, .2)); }
.f3d-labels.is-mini .f3d-lbl.is-served { padding: 6px 11px; border-radius: 7px; }
.f3d-labels.is-mini .f3d-lbl.is-served b { font-size: 14.5px; }
.f3d-labels.is-mini .f3d-lbl.is-served small, .f3d-labels.is-mini .f3d-lbl.is-served i { display: none; }
.f3d-lbl.is-served b { font: 800 18px/1 var(--f-display); letter-spacing: .04em; text-transform: uppercase; }
.f3d-lbl.is-served small { font: 500 9.5px/1.2 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--lp-gold); }
.f3d-lbl.is-served i { font: normal 600 11px/1.2 var(--f-text); color: #FF8AC6; }
.f3d-lbl.is-served:hover, .f3d-lbl.is-served:focus-visible { border-color: var(--lp-gold); box-shadow: 0 0 0 3px rgba(255, 194, 74, .25), 0 0 30px rgba(255, 46, 154, .5); outline: none; }
.lp-f3d:not([data-act="1"]) .f3d-labels { display: none; }
.f3d-tip { position: absolute; left: 0; top: 0; z-index: 4; pointer-events: none; padding: 6px 10px; border-radius: 6px; background: rgba(7, 6, 26, .88); border: 1px solid rgba(47, 230, 255, .45);
  font: 500 12px/1 var(--f-mono); letter-spacing: .04em; color: #CFFBFF; white-space: nowrap; }

/* ---------------------------------------------------------------- les actes (frise) */
.f3d-steps { position: absolute; z-index: 6; top: 22px; left: 50%; translate: -50% 0; }
.f3d-steps ol { display: flex; gap: 6px; margin: 0; padding: 6px; list-style: none; border-radius: 999px; background: rgba(7, 6, 26, .62); border: 1px solid var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.f3d-steps button { display: flex; align-items: center; gap: 9px; padding: 8px 15px 8px 9px; border: 0; border-radius: 999px; background: transparent; cursor: pointer; color: rgba(255, 246, 229, .62); transition: background .25s, color .25s; }
.f3d-steps button:disabled { cursor: default; opacity: .45; }
.f3d-steps__r { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1px solid rgba(255, 194, 74, .45); font: 700 12px/1 var(--f-mono); color: var(--lp-gold); }
.f3d-steps__t { font: 700 14px/1 var(--f-display); letter-spacing: .1em; text-transform: uppercase; }
.f3d-steps .is-done .f3d-steps__r { background: rgba(255, 194, 74, .16); }
.f3d-steps .is-current { background: linear-gradient(120deg, rgba(123, 47, 247, .55), rgba(255, 46, 154, .4)); color: var(--lp-ivory); }
.f3d-steps .is-current .f3d-steps__r { background: var(--lp-gold); color: var(--lp-night); border-color: var(--lp-gold); box-shadow: 0 0 14px rgba(255, 194, 74, .7); }
.f3d-steps button:not(:disabled):not(.is-current):hover { color: var(--lp-ivory); background: rgba(255, 255, 255, .06); }

/* ---------------------------------------------------------------- panneaux */
.f3d-panel { position: absolute; z-index: 5; left: 24px; top: 92px; max-height: calc(100% - 116px); width: var(--panel-w); overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(255, 194, 74, .35) transparent;
  padding: 28px 26px 26px; border-radius: 20px; background: var(--glass); border: 1px solid var(--line);
  box-shadow: inset 0 0 0 4px rgba(7, 6, 26, .5), inset 0 0 0 5px rgba(255, 194, 74, .12), 0 30px 80px rgba(0, 0, 0, .55);
  backdrop-filter: blur(16px) saturate(1.25); -webkit-backdrop-filter: blur(16px) saturate(1.25); }
.lp-f3d--compact .f3d-panel { top: 50%; bottom: auto; translate: 0 -50%; max-height: calc(100% - 48px); left: max(24px, 4vw); }
.f3d-panel--compose { --panel-w: min(452px, 38vw); bottom: 96px; }
@media (min-width: 900px) { .lp-f3d[data-act="2"] .f3d-panel, .lp-f3d[data-act="3"] .f3d-panel { max-height: calc(100% - 188px); } }
.f3d-cta { position: sticky; bottom: -26px; z-index: 2; margin: 18px -26px -26px; padding: 14px 26px 20px; background: linear-gradient(180deg, rgba(14, 10, 42, 0), rgba(14, 10, 42, .96) 26%); border-radius: 0 0 20px 20px; }
.f3d-sheet { display: none; }
.f3d-head { margin-bottom: 22px; }
.f3d-kicker { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font: 500 11.5px/1 var(--f-mono); letter-spacing: .24em; text-transform: uppercase; color: var(--lp-gold); }
.f3d-kicker::before { content: ''; width: 34px; height: 6px; flex: none; background: radial-gradient(circle, var(--lp-gold) 2px, transparent 2.6px) 0 50% / 9px 6px repeat-x; filter: drop-shadow(0 0 3px rgba(255, 194, 74, .9)); }
.f3d-title, .f3d-h { margin: 0; font: 800 clamp(38px, 3.8vw, 60px)/.92 var(--f-display); letter-spacing: .01em; text-transform: uppercase; color: var(--lp-ivory); text-wrap: balance; }
.f3d-h { font-size: clamp(30px, 2.6vw, 42px); margin-bottom: 14px; }
.f3d-neon { display: inline-block; font: 400 1.04em/1 var(--f-neon); text-transform: none; letter-spacing: 0; color: #FFE6F3; padding: 0 .08em; rotate: -3deg;
  text-shadow: 0 0 2px #fff, 0 0 8px var(--lp-pink), 0 0 18px var(--lp-pink), 0 0 38px rgba(255, 46, 154, .7), 0 0 70px rgba(255, 46, 154, .35);
  animation: f3d-neon 2.6s steps(1, end) .4s both; }
@keyframes f3d-neon { 0% { opacity: .15; } 6% { opacity: 1; } 9% { opacity: .2; } 13% { opacity: .9; } 15% { opacity: .3; } 22%, 100% { opacity: 1; } }
.f3d-lede, .f3d-p { margin: 16px 0 0; font-size: 15px; line-height: 1.62; color: rgba(255, 246, 229, .76); text-wrap: pretty; }
.f3d-p { margin-top: 0; }
.f3d-label { display: block; margin: 0 0 9px; font: 500 11px/1.2 var(--f-mono); letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 246, 229, .6); padding: 0; }
.f3d-label small { letter-spacing: .05em; text-transform: none; }
.f3d-note { margin: 14px 0 0; font-size: 12.5px; line-height: 1.5; color: rgba(255, 246, 229, .55); }

/* recherche */
.f3d-search { position: relative; margin-bottom: 20px; }
.f3d-combo { position: relative; display: flex; align-items: center; height: 56px; border-radius: 14px; background: rgba(7, 6, 26, .7); border: 1px solid rgba(255, 194, 74, .5);
  box-shadow: 0 0 0 4px rgba(255, 194, 74, .06), inset 0 1px 0 rgba(255, 255, 255, .05); transition: border-color .2s, box-shadow .2s; }
.f3d-combo:focus-within { border-color: var(--lp-gold); box-shadow: 0 0 0 4px rgba(255, 194, 74, .18), 0 0 30px rgba(255, 194, 74, .15); }
.f3d-combo > svg { width: 20px; height: 20px; margin: 0 4px 0 16px; flex: none; color: var(--lp-gold); }
.f3d-combo input { flex: 1; min-width: 0; height: 100%; padding: 0 10px; border: 0; background: transparent; color: var(--lp-ivory); font: 600 17px/1 var(--f-text); outline: none; }
.f3d-combo input::placeholder { color: rgba(255, 246, 229, .4); font-weight: 500; }
.f3d-combo input::-webkit-search-cancel-button { filter: invert(.8) sepia(1) hue-rotate(5deg); }
.f3d-combo__go { height: 42px; margin-right: 7px; padding: 0 16px; border: 0; border-radius: 10px; cursor: pointer; background: linear-gradient(180deg, #FFD36E, var(--lp-gold-2)); color: var(--lp-night) !important; font: 800 14px/1 var(--f-display) !important; letter-spacing: .1em; text-transform: uppercase; }
.f3d-list { position: absolute; z-index: 10; left: 0; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none; max-height: 340px; overflow: auto; border-radius: 14px;
  background: rgba(12, 9, 38, .97); border: 1px solid rgba(255, 194, 74, .4); box-shadow: 0 24px 60px rgba(0, 0, 0, .6); }
.f3d-opt { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 2px 10px; padding: 10px 12px; border-radius: 9px; cursor: pointer; }
.f3d-opt b { font: 700 19px/1.1 var(--f-display); letter-spacing: .03em; text-transform: uppercase; }
.f3d-opt span { grid-column: 1; font: 500 11px/1.2 var(--f-mono); letter-spacing: .08em; color: rgba(255, 246, 229, .55); }
.f3d-opt em { grid-column: 2; grid-row: 1 / span 2; align-self: center; font: normal 400 18px/1 var(--f-neon); color: #FFD0E8; text-shadow: 0 0 10px var(--lp-pink); }
.f3d-opt.is-active, .f3d-opt:hover { background: linear-gradient(100deg, rgba(123, 47, 247, .35), rgba(255, 46, 154, .18)); }
.f3d-opt.is-none { cursor: default; font-size: 13px; color: rgba(255, 246, 229, .6); }

/* commune choisie */
.f3d-pick { position: relative; margin: 0 0 22px; padding: 20px 22px; border-radius: 16px; background: linear-gradient(150deg, rgba(123, 47, 247, .32), rgba(255, 46, 154, .14) 60%, rgba(47, 230, 255, .1)); border: 1px solid rgba(47, 230, 255, .45);
  animation: f3d-in .5s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes f3d-in { from { opacity: 0; translate: 0 10px; } }
.f3d-pick__k { margin: 0; font: 500 10.5px/1 var(--f-mono); letter-spacing: .22em; text-transform: uppercase; color: var(--lp-cyan); }
.f3d-pick__n { margin: 8px 0 10px; font: 800 clamp(34px, 3vw, 46px)/.95 var(--f-display); text-transform: uppercase; letter-spacing: .01em; }
.f3d-pick__m { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.f3d-pick__m span { padding: 5px 9px; border-radius: 6px; background: rgba(7, 6, 26, .55); font: 500 11px/1 var(--f-mono); letter-spacing: .06em; color: rgba(255, 246, 229, .8); }
.f3d-pick__s { margin: 12px 0 0; font-size: 13.5px; color: rgba(255, 246, 229, .85); }
.f3d-pick__s a { color: var(--lp-gold); text-underline-offset: 3px; }
.f3d-pick .f3d-actions { margin-top: 16px; }
.f3d-resume { margin: 0 0 22px; padding: 16px 18px; border-radius: 14px; border: 1px dashed rgba(255, 194, 74, .5); background: rgba(255, 194, 74, .06); font-size: 14px; }
.f3d-resume p { margin: 0; }
.f3d-resume .f3d-actions { margin-top: 12px; }

/* nos fêtes réelles */
.f3d-served ul { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin: 0; padding: 0; list-style: none; }
.f3d-served a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; border-radius: 9px; text-decoration: none; color: var(--lp-ivory);
  background: rgba(255, 255, 255, .035); border: 1px solid rgba(255, 46, 154, .28); transition: background .2s, border-color .2s; }
.f3d-served a span { font: 700 15px/1.1 var(--f-display); letter-spacing: .05em; text-transform: uppercase; }
.f3d-served a small { font: 500 10px/1 var(--f-mono); color: #FF8AC6; }
.f3d-served a::before { content: ''; width: 6px; height: 6px; flex: none; border-radius: 50%; background: var(--lp-pink); box-shadow: 0 0 8px var(--lp-pink), 0 0 2px #fff; }
.f3d-served a:hover { background: rgba(255, 46, 154, .12); border-color: var(--lp-pink); }
.f3d-more { margin: 18px 0 0; }

/* boutons tickets */
.f3d-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.f3d-btn { --n: 7px; position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 50px; padding: 0 24px; border: 0; cursor: pointer; text-decoration: none;
  font: 800 16px/1 var(--f-display) !important; letter-spacing: .1em; text-transform: uppercase; color: var(--lp-night) !important;
  background: linear-gradient(180deg, #FFDA80 0%, var(--lp-gold) 45%, var(--lp-gold-2) 100%); border-radius: 6px;
  -webkit-mask: radial-gradient(circle at 0 50%, #0000 var(--n), #000 calc(var(--n) + .5px)) left / 51% 100% no-repeat, radial-gradient(circle at 100% 50%, #0000 var(--n), #000 calc(var(--n) + .5px)) right / 51% 100% no-repeat;
  mask: radial-gradient(circle at 0 50%, #0000 var(--n), #000 calc(var(--n) + .5px)) left / 51% 100% no-repeat, radial-gradient(circle at 100% 50%, #0000 var(--n), #000 calc(var(--n) + .5px)) right / 51% 100% no-repeat;
  transition: filter .2s, translate .2s; }
.f3d-btn::after { content: ''; position: absolute; inset: 4px 12px; border: 1px dashed rgba(7, 6, 26, .28); border-radius: 3px; pointer-events: none; }
.f3d-btn svg { width: 18px; height: 18px; }
.f3d-btn:hover:not(:disabled) { filter: brightness(1.08) saturate(1.1); translate: 0 -1px; }
.f3d-btn:disabled { cursor: not-allowed; filter: grayscale(.8) brightness(.6); }
.f3d-btn--ghost { color: var(--lp-gold) !important; background: rgba(255, 194, 74, .1); box-shadow: inset 0 0 0 1px rgba(255, 194, 74, .55); }
.f3d-btn--ghost::after { border-color: rgba(255, 194, 74, .25); }
.f3d-btn--fire { color: #fff !important; background: linear-gradient(180deg, #FF6BBC, var(--lp-pink) 50%, #C4136F); }
.f3d-btn--fire::after { border-color: rgba(255, 255, 255, .35); }
.f3d-link { padding: 0; border: 0; background: none; cursor: pointer; color: var(--lp-gold) !important; text-decoration: underline; text-underline-offset: 3px; font-size: 13px; }
.lp-f3d :focus-visible { outline: 2px solid var(--lp-cyan); outline-offset: 3px; }
.lp-f3d [tabindex="-1"]:focus, .lp-f3d [tabindex="-1"]:focus-visible { outline: none; }

/* ---------------------------------------------------------------- acte II */
.f3d-coords { display: grid; gap: 8px; margin: 18px 0 0; padding: 14px 16px; border-radius: 12px; background: rgba(255, 46, 154, .1); border: 1px solid rgba(255, 46, 154, .4); }
.f3d-coords div { display: flex; justify-content: space-between; gap: 12px; }
.f3d-coords dt { font: 500 10.5px/1.4 var(--f-mono); letter-spacing: .18em; text-transform: uppercase; color: #FF8AC6; }
.f3d-coords dd { margin: 0; font: 500 12.5px/1.4 var(--f-mono); color: var(--lp-ivory); text-align: right; }
/* épingle animée sur le vrai plan */
.f3d-mlpin { position: relative; width: 44px; height: 46px; pointer-events: none; }
.f3d-mlpin b { position: absolute; left: 50%; top: 2px; width: 34px; height: 34px; translate: -50% 0; border-radius: 50% 50% 50% 0; rotate: -45deg; border: 3px solid #fff;
  background: radial-gradient(circle at 38% 38%, #FF8CC8, var(--lp-pink) 50%, #B0105F); box-shadow: 0 6px 14px rgba(70, 10, 40, .35), 0 0 0 1px rgba(160, 16, 92, .4); }
.f3d-mlpin b::after { content: ''; position: absolute; left: 50%; top: 50%; width: 11px; height: 11px; translate: -50% -50%; border-radius: 50%; background: var(--lp-gold); box-shadow: inset 0 0 0 2px #fff; }
.f3d-mlpin s { position: absolute; left: 50%; bottom: 0; width: 18px; height: 7px; translate: -50% 50%; border-radius: 50%; background: rgba(40, 20, 30, .32); filter: blur(1.5px); }
.f3d-mlpin i { position: absolute; left: 50%; bottom: 0; width: 44px; height: 18px; translate: -50% 50%; border-radius: 50%; border: 2.5px solid var(--lp-pink); animation: f3d-pulse 1.8s ease-out infinite; }
.f3d-mlpin.is-drop b { animation: f3d-drop .62s cubic-bezier(.3, 1.5, .5, 1) both; }
.f3d-mlpin.is-drop s { animation: f3d-shadow .62s ease-out both; }
@keyframes f3d-drop { 0% { translate: -50% -60px; opacity: 0; } 55% { translate: -50% 4px; opacity: 1; } 75% { translate: -50% -6px; } 100% { translate: -50% 0; } }
@keyframes f3d-shadow { 0% { scale: .3; opacity: 0; } 100% { scale: 1; opacity: 1; } }
@keyframes f3d-pulse { from { scale: .35; opacity: 1; } to { scale: 2.1; opacity: 0; } }
.f3d-plan .maplibregl-ctrl-attrib { background: rgba(255, 255, 255, .78) !important; color: #4a3f52; font-size: 11px; }
.f3d-plan .maplibregl-ctrl-attrib a { color: #6A1FA0; }
.f3d-plan .maplibregl-ctrl-bottom-right { transition: bottom .3s; }
.f3d-plan.is-grab, .f3d-plan.is-grab .maplibregl-canvas-container { cursor: grabbing !important; }
/* poignée de rotation (grande cible) */
.f3d-rot { position: absolute; left: 0; top: 0; z-index: 3; width: 46px; height: 46px; margin: -23px 0 0 -23px; display: grid; place-items: center; border-radius: 50%; cursor: grab; touch-action: none;
  background: #fff; color: #0A8FA8; border: 2px solid #2FE6FF; box-shadow: 0 6px 16px rgba(10, 30, 50, .28), 0 0 0 6px rgba(47, 230, 255, .2); will-change: transform; }
.f3d-rot svg { width: 22px; height: 22px; }
.f3d-rot.is-on { cursor: grabbing; background: #2FE6FF; color: #07061A; }
.lp-f3d:not([data-act="3"]) .f3d-rot { display: none; }

/* ---------------------------------------------------------------- acte III : tiroir de cartes */
.f3d-tabs { display: flex; gap: 4px; margin: 0 0 16px; padding: 4px; border-radius: 12px; background: rgba(7, 6, 26, .55); border: 1px solid rgba(255, 255, 255, .06); }
.f3d-tabs button { flex: 1; padding: 10px 8px; border: 0; border-radius: 9px; background: transparent; cursor: pointer; font: 700 14px/1 var(--f-display); letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 246, 229, .6); }
.f3d-tabs [aria-selected="true"] { background: linear-gradient(120deg, rgba(123, 47, 247, .6), rgba(255, 46, 154, .35)); color: var(--lp-ivory); }
.f3d-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; padding: 0; list-style: none; }
.f3d-card { position: relative; display: grid; width: 100%; height: 100%; padding: 0 0 12px; border: 1px solid rgba(255, 194, 74, .22); border-radius: 13px; cursor: pointer; text-align: left; overflow: hidden;
  background: linear-gradient(180deg, rgba(30, 16, 64, .9), rgba(12, 9, 34, .95)); transition: border-color .2s, translate .2s, box-shadow .2s; }
.f3d-card:hover { border-color: var(--lp-gold); translate: 0 -2px; box-shadow: 0 12px 30px rgba(0, 0, 0, .4), 0 0 24px rgba(255, 194, 74, .15); }
.f3d-card__img { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: radial-gradient(80% 90% at 50% 100%, rgba(255, 46, 154, .35), transparent 70%), #160c36; }
.f3d-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: scale .5s ease; }
.f3d-card:hover .f3d-card__img img { scale: 1.06; }
.f3d-card__img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(12, 9, 34, .9)); }
.f3d-card.is-noimg .f3d-card__img img { display: none; }
.f3d-card__n { display: block; margin: -14px 12px 0; position: relative; font: 800 16.5px/1.02 var(--f-display); letter-spacing: .04em; text-transform: uppercase; color: var(--lp-ivory); }
.f3d-card__d { display: block; margin: 5px 12px 0; font-size: 11.5px; line-height: 1.4; color: rgba(255, 246, 229, .58); }
.f3d-card__plus { display: inline-flex; align-items: center; gap: 5px; margin: 9px 12px 0; font: 600 10.5px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--lp-gold); }
.f3d-card__plus svg { width: 13px; height: 13px; }
.f3d-card__c { position: absolute; top: 8px; right: 8px; min-width: 30px; padding: 6px 7px; border-radius: 999px; background: var(--lp-pink); font: 700 12px/1 var(--f-mono); color: #fff; text-align: center; box-shadow: 0 0 14px var(--lp-pink); }
.f3d-card__c:empty { display: none; }
.f3d-card.is-in { border-color: rgba(255, 46, 154, .7); }
.f3d-types { display: grid; gap: 8px; margin: 0 0 20px; padding: 0; border: 0; }
.f3d-type { position: relative; display: grid; gap: 3px; padding: 13px 14px 13px 44px; border-radius: 11px; cursor: pointer; background: rgba(255, 255, 255, .035); border: 1px solid rgba(255, 255, 255, .08); transition: border-color .2s, background .2s; }
.f3d-type input { position: absolute; left: 15px; top: 15px; width: 17px; height: 17px; margin: 0; accent-color: var(--lp-gold); }
.f3d-type__n { font: 700 17px/1.1 var(--f-display); letter-spacing: .05em; text-transform: uppercase; }
.f3d-type__d { font-size: 12.5px; color: rgba(255, 246, 229, .6); }
.f3d-type:has(input:checked) { border-color: var(--lp-gold); background: rgba(255, 194, 74, .1); }
.f3d-anims { margin: 0 0 20px; padding: 0; border: 0; }
.f3d-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.f3d-chip { padding: 8px 12px; border-radius: 999px; cursor: pointer; border: 1px solid rgba(255, 46, 154, .4); background: transparent; font-size: 12.5px !important; color: rgba(255, 246, 229, .8); transition: background .2s; }
.f3d-chip[aria-pressed="true"] { background: rgba(255, 46, 154, .28); border-color: var(--lp-pink); color: #fff; box-shadow: 0 0 14px rgba(255, 46, 154, .35); }
.f3d-dates { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; padding: 0; border: 0; }
.f3d-dates legend { grid-column: 1 / -1; }
.f3d-field { display: grid; gap: 6px; }
.f3d-field--full { grid-column: 1 / -1; }
.f3d-field > span { font: 500 10.5px/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 246, 229, .6); }
.f3d-field small { letter-spacing: .02em; text-transform: none; }
.f3d-field input, .f3d-field textarea { width: 100%; min-height: 46px; padding: 11px 13px; border-radius: 10px; border: 1px solid rgba(255, 246, 229, .16); background: rgba(7, 6, 26, .6); color: var(--lp-ivory); font: 500 15px/1.3 var(--f-text); color-scheme: dark; resize: vertical; }
.f3d-field input:focus, .f3d-field textarea:focus { outline: none; border-color: var(--lp-gold); box-shadow: 0 0 0 3px rgba(255, 194, 74, .16); }
.f3d-field .is-bad { border-color: var(--lp-pink); box-shadow: 0 0 0 3px rgba(255, 46, 154, .2); }

/* barre de sélection et état vide */
.f3d-sel { position: absolute; z-index: 7; left: calc(var(--panel-w) + 24px + (100% - var(--panel-w) - 24px) / 2); bottom: 26px; translate: -50% 0; display: flex; align-items: center; gap: 6px; padding: 7px 7px 7px 18px; border-radius: 999px; max-width: calc(100% - 24px);
  background: rgba(7, 6, 26, .82); border: 1px solid rgba(47, 230, 255, .5); box-shadow: 0 0 30px rgba(47, 230, 255, .2), 0 16px 40px rgba(0, 0, 0, .5); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); animation: f3d-in .3s ease both; }
.lp-f3d[data-act="3"] { --panel-w: min(452px, 38vw); }
.f3d-sel__n { margin-right: 8px; font: 800 17px/1 var(--f-display); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.f3d-sel__m { position: absolute; left: 50%; top: calc(100% + 8px); translate: -50% 0; white-space: nowrap; font: 500 10.5px/1 var(--f-mono); letter-spacing: .08em; color: rgba(207, 251, 255, .75); text-shadow: 0 0 6px #07061A; }
.f3d-sel__b { display: flex; gap: 6px; }
.f3d-sel button { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .05); cursor: pointer; color: var(--lp-cyan); }
.f3d-sel button:hover { background: rgba(47, 230, 255, .16); }
.f3d-sel button[data-del] { color: #FF7AB8; }
.f3d-sel svg { width: 20px; height: 20px; }
.f3d-sel { bottom: 44px; }
.f3d-empty { position: absolute; z-index: 4; left: calc(var(--panel-w) + 24px + (100% - var(--panel-w) - 24px) / 2); top: 50%; translate: -50% -50%; display: flex; align-items: center; gap: 12px; max-width: 360px; margin: 0; padding: 16px 20px;
  border-radius: 14px; background: rgba(7, 6, 26, .66); border: 1px dashed rgba(255, 194, 74, .5); pointer-events: none; font-size: 14px; color: rgba(255, 246, 229, .85); }
.f3d-empty svg { width: 22px; height: 22px; flex: none; color: var(--lp-gold); filter: drop-shadow(0 0 6px var(--lp-gold)); }

/* alerte douce (chevauchement), conseil en surimpression */
.f3d-warn { position: absolute; z-index: 8; left: calc(var(--panel-w) + 24px + (100% - var(--panel-w) - 24px) / 2); top: 92px; translate: -50% 0; display: flex; align-items: center; gap: 10px; width: max-content; max-width: min(440px, calc(100vw - 32px)); margin: 0; padding: 11px 16px 11px 13px;
  border-radius: 14px; background: #fff4f2; color: #8a1023; border: 1.5px solid #f2a0aa; box-shadow: 0 10px 30px rgba(80, 10, 20, .18); font: 600 14px/1.35 var(--f-text); animation: f3d-in .3s ease both; pointer-events: none; }
.f3d-warn svg { width: 22px; height: 22px; flex: none; color: #D0142F; }
.f3d-hint { display: none; }
.f3d-tabs b:not(:empty) { display: inline-grid; place-items: center; min-width: 22px; height: 22px; margin-left: 6px; padding: 0 6px; border-radius: 999px; background: var(--lp-pink); color: #fff; font: 700 11.5px/1 var(--f-mono); letter-spacing: 0; vertical-align: 1px; }
.f3d-top { display: none; }

/* ---------------------------------------------------------------- acte IV : le ticket */
.f3d-panel--ticket { inset: 86px 0 0; width: auto; padding: 0 24px 32px; border: 0; border-radius: 0; background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.f3d-ticket-wrap { display: grid; grid-template-columns: minmax(300px, 400px) minmax(0, 520px); justify-content: center; align-items: start; gap: clamp(24px, 4vw, 56px); max-width: 1080px; margin: clamp(10px, 3vh, 40px) auto 0; }
.f3d-req { padding: 28px 28px 24px; border-radius: 20px; background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.f3d-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.f3d-form .f3d-actions, .f3d-form .f3d-note, .f3d-demo { grid-column: 1 / -1; }
.f3d-demo { margin: 4px 0 0; padding: 10px 12px; border-radius: 9px; background: rgba(47, 230, 255, .08); border: 1px solid rgba(47, 230, 255, .3); font: 500 11.5px/1.4 var(--f-mono); color: #BFF6FF; }
.f3d-form .f3d-actions { margin-top: 8px; }
.f3d-done { padding: 8px 0 0; outline: none; animation: f3d-in .5s ease both; }
.f3d-done__t { margin: 0; font: 400 40px/1.05 var(--f-neon); color: #FFF1D6; text-shadow: 0 0 2px #fff, 0 0 12px var(--lp-gold), 0 0 30px rgba(255, 194, 74, .6); }
.f3d-done__p { margin: 14px 0 0; color: rgba(255, 246, 229, .8); line-height: 1.6; }
.f3d-ticket { --n: 15px; position: relative; padding: 26px 30px 0; color: #2a0f3a; border-radius: 16px; rotate: -2.2deg;
  background: radial-gradient(120% 60% at 20% 0%, rgba(255, 255, 255, .55), transparent 55%), linear-gradient(150deg, #FFE39A 0%, #F4C25C 32%, #E0A43C 62%, #F7D486 100%);
  box-shadow: 0 40px 80px rgba(0, 0, 0, .55), 0 0 60px rgba(255, 194, 74, .25);
  -webkit-mask: radial-gradient(circle at 0 72%, #0000 var(--n), #000 calc(var(--n) + .5px)) left / 51% 100% no-repeat, radial-gradient(circle at 100% 72%, #0000 var(--n), #000 calc(var(--n) + .5px)) right / 51% 100% no-repeat;
  mask: radial-gradient(circle at 0 72%, #0000 var(--n), #000 calc(var(--n) + .5px)) left / 51% 100% no-repeat, radial-gradient(circle at 100% 72%, #0000 var(--n), #000 calc(var(--n) + .5px)) right / 51% 100% no-repeat;
  animation: f3d-tk .9s cubic-bezier(.2, .9, .25, 1.15) both; }
@keyframes f3d-tk { from { opacity: 0; translate: 0 40px; rotate: -9deg; } }
.f3d-ticket::before { content: ''; position: absolute; inset: 9px; border: 1.5px solid rgba(90, 40, 10, .45); border-radius: 10px; pointer-events: none; }
.f3d-ticket::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .55) 45%, transparent 55%) -200% 0 / 220% 100% no-repeat; animation: f3d-shine 5s ease-in-out 1.2s infinite; mix-blend-mode: soft-light; }
@keyframes f3d-shine { 0% { background-position: -200% 0; } 40%, 100% { background-position: 220% 0; } }
.f3d-tk__top { display: flex; justify-content: space-between; gap: 10px; font: 600 10px/1 var(--f-mono); letter-spacing: .22em; text-transform: uppercase; color: #6A1FA0; }
.f3d-tk__k { margin: 18px 0 0; font: 500 11px/1 var(--f-mono); letter-spacing: .1em; color: rgba(42, 15, 58, .7); }
.f3d-tk__city { margin: 6px 0 14px; font: 900 clamp(36px, 3.4vw, 50px)/.92 var(--f-display); letter-spacing: .01em; text-transform: uppercase; color: #3a0f5e; }
.f3d-tk__city small { font: 600 13px/1 var(--f-mono); letter-spacing: .1em; color: #7a3a10; vertical-align: middle; }
.f3d-tk__dl { display: grid; gap: 7px; margin: 0; padding: 12px 0; border-top: 1.5px dashed rgba(90, 40, 10, .4); border-bottom: 1.5px dashed rgba(90, 40, 10, .4); }
.f3d-tk__dl div { display: grid; grid-template-columns: 110px 1fr; gap: 8px; }
.f3d-tk__dl dt { font: 600 9.5px/1.5 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: #7a3a10; }
.f3d-tk__dl dd { margin: 0; font: 600 13px/1.4 var(--f-text); color: #2a0f3a; }
.f3d-tk__dl dd small { display: block; font: 500 10px/1.3 var(--f-mono); color: rgba(42, 15, 58, .6); }
.f3d-tk__list { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.f3d-tk__list li { display: flex; justify-content: space-between; gap: 10px; font: 800 15px/1.25 var(--f-display); letter-spacing: .05em; text-transform: uppercase; color: #3a0f5e; }
.f3d-tk__list li b { font: 600 12px/1.25 var(--f-mono); color: #7a3a10; }
.f3d-tk__list li span { flex: 1; }
.f3d-tk__list li i { width: 10px; height: 10px; margin-top: 4px; flex: none; border-radius: 3px; background: var(--c); box-shadow: inset 0 0 0 1.5px rgba(42, 15, 58, .35); }
.f3d-tk__shot { margin: 14px 0 0; border-radius: 10px; overflow: hidden; aspect-ratio: 16 / 9; background: #e8dfd0; box-shadow: inset 0 0 0 2px rgba(90, 40, 10, .35), 0 6px 16px rgba(60, 20, 0, .2); }
.f3d-tk__shot img { display: block; width: 100%; height: 100%; object-fit: cover; }
.f3d-form__lede { grid-column: 1 / -1; margin: -4px 0 4px; }
.f3d-tk__note { margin: 12px 0 0; font: 500 10.5px/1.45 var(--f-mono); color: rgba(42, 15, 58, .72); }
.f3d-tk__stub { display: flex; justify-content: space-between; margin: 18px -30px 0; padding: 14px 30px 18px; border-top: 2px dotted rgba(90, 40, 10, .5); background: rgba(106, 31, 160, .1);
  font: 800 13px/1 var(--f-display); letter-spacing: .3em; text-transform: uppercase; color: #6A1FA0; }

/* ---------------------------------------------------------------- vue */
.f3d-ctrl { position: absolute; z-index: 6; right: 22px; bottom: 24px; display: grid; gap: 6px; }
.f3d-ctrl button { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; cursor: pointer; border: 1px solid var(--line); background: rgba(7, 6, 26, .7); color: var(--lp-gold); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.f3d-ctrl button:hover { background: rgba(255, 194, 74, .14); }
.f3d-ctrl svg { width: 19px; height: 19px; }
.lp-f3d[data-act="4"] .f3d-ctrl { display: none; }
.f3d-legend { position: absolute; z-index: 3; right: 84px; bottom: 30px; display: flex; gap: 16px; margin: 0; font: 500 10px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 246, 229, .55); }
.f3d-legend span { display: flex; align-items: center; gap: 7px; }
.f3d-legend span::before { content: ''; width: 9px; height: 9px; border-radius: 50%; }
.f3d-legend__s::before { background: var(--lp-pink); box-shadow: 0 0 8px var(--lp-pink); }
.f3d-legend__r::before { background: #4aa0ff; box-shadow: 0 0 8px #4aa0ff; height: 3px !important; border-radius: 2px !important; width: 16px !important; }
.f3d-legend__c::before { background: var(--lp-gold); box-shadow: 0 0 8px var(--lp-gold); }
.f3d-noscript { padding: 24px; text-align: center; }
.f3d-noscript a { color: var(--lp-gold); }

/* ---------------------------------------------------------------- mobile : tiroirs */
@media (max-width: 899px) {
  .lp-f3d { --panel-w: 0px; }
  .f3d-stage { min-height: 600px; }
  .f3d-steps { top: 12px; left: 12px; right: 12px; translate: none; }
  .f3d-steps ol { justify-content: space-between; }
  .f3d-steps button { padding: 5px; gap: 0; }
  .f3d-steps .is-current { padding-right: 12px; gap: 8px; }
  .f3d-steps__t { display: none; }
  .f3d-steps .is-current .f3d-steps__t { display: inline; font-size: 13px; }
  .f3d-panel, .lp-f3d--compact .f3d-panel, .f3d-panel--compose { left: 0; right: 0; top: auto; bottom: 0; translate: none; width: auto; max-height: 58%; padding: 22px 18px 18px;
    border-radius: 22px 22px 0 0; border-bottom: 0; transition: max-height .35s cubic-bezier(.2, .8, .2, 1); }
  .lp-f3d--compact .f3d-panel { max-height: 62%; }
  .f3d-sheet { display: block; position: sticky; top: -22px; z-index: 2; width: 100%; height: 26px; margin: -18px 0 4px; border: 0; background: transparent; cursor: pointer; }
  .f3d-sheet i { display: block; width: 46px; height: 5px; margin: 0 auto; border-radius: 3px; background: rgba(255, 194, 74, .55); }
  .lp-f3d.is-sheet-min .f3d-panel:not(.f3d-panel--ticket) { max-height: 136px; overflow: hidden; }
  .f3d-head { margin-bottom: 16px; }
  .f3d-title { font-size: clamp(34px, 9.5vw, 44px); }
  .f3d-lede { font-size: 14px; margin-top: 10px; }
  .f3d-h { font-size: 30px; }
  .f3d-cards { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 158px; overflow-x: auto; margin: 0 -18px; padding: 0 18px 6px; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .f3d-cards li { scroll-snap-align: start; }
  .f3d-card__d { display: none; }
  .f3d-sel, .f3d-empty { left: 50%; }
  .lp-f3d:not(.is-immersive) .f3d-sel { top: 70px; bottom: auto; }
  .f3d-sel__m { top: calc(100% + 6px); }
  .f3d-empty { top: 30%; max-width: calc(100% - 40px); }
  .f3d-ctrl { right: 12px; bottom: auto; top: 76px; }
  .lp-f3d[data-act="3"] .f3d-ctrl { display: none; }
  .f3d-legend { display: none; }
  .f3d-panel--ticket { inset: 64px 0 0; padding: 0 14px 24px; max-height: none; overflow: auto; border-radius: 0; }
  .f3d-ticket-wrap { grid-template-columns: 1fr; gap: 22px; margin-top: 8px; }
  .f3d-ticket { rotate: -1deg; padding: 22px 22px 0; }
  .f3d-tk__stub { margin: 16px -22px 0; padding: 12px 22px 16px; }
  .f3d-req { padding: 22px 18px; }
  .f3d-form { grid-template-columns: 1fr; }
  .f3d-actions .f3d-btn { flex: 1 1 auto; }
  .f3d-lbl.is-served { padding: 7px 10px; }
  .f3d-lbl.is-served b { font-size: 15px; }
  .f3d-lbl.is-served i { display: none; }
  .f3d-lbl.is-dep { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .lp-f3d *, .lp-f3d *::before, .lp-f3d *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------------------------------------------------------------- téléphone : plein écran immersif dès l'acte II */
html.f3d-immersive, html.f3d-immersive body { overflow: hidden !important; overscroll-behavior: none; }
html.f3d-immersive main#contenu { z-index: 120; }
html.f3d-immersive .bar, html.f3d-immersive .fabs, html.f3d-immersive .cursor { visibility: hidden; }
@media (max-width: 759.98px) {
  .lp-f3d.is-immersive { position: fixed; inset: 0; z-index: 120; height: 100vh; height: 100dvh; overscroll-behavior: none; }
  .lp-f3d.is-immersive .f3d-stage { height: 100%; min-height: 0; max-height: none; }
  .lp-f3d.is-immersive .f3d-steps { display: none; }
  .lp-f3d.is-immersive .f3d-top { position: absolute; z-index: 9; left: 0; right: 0; top: 0; display: flex; align-items: center; gap: 8px;
    padding: calc(env(safe-area-inset-top, 0px) + 8px) max(10px, env(safe-area-inset-right)) 8px max(10px, env(safe-area-inset-left));
    background: linear-gradient(180deg, rgba(10, 7, 34, .94), rgba(10, 7, 34, .86)); border-bottom: 1px solid rgba(255, 194, 74, .28); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
  .f3d-top__b { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 12px; border: 1px solid rgba(255, 194, 74, .35); background: rgba(255, 255, 255, .05); color: var(--lp-gold); cursor: pointer; }
  .f3d-top__b svg { width: 22px; height: 22px; }
  .f3d-top__t { flex: 1; min-width: 0; margin: 0; display: grid; justify-items: center; gap: 3px; text-align: center; }
  .f3d-top__s { font: 500 10.5px/1 var(--f-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--lp-gold); }
  .f3d-top__s b { font-weight: 700; color: var(--lp-ivory); }
  .f3d-top__c { max-width: 100%; font: 800 20px/1.05 var(--f-display); letter-spacing: .05em; text-transform: uppercase; color: var(--lp-ivory); overflow-wrap: anywhere; }
  .lp-f3d.is-immersive .f3d-ctrl { top: calc(env(safe-area-inset-top, 0px) + 72px); right: max(10px, env(safe-area-inset-right)); }
  .lp-f3d.is-immersive[data-act="3"] .f3d-ctrl { display: none; }
  .lp-f3d.is-immersive .f3d-plan .maplibregl-ctrl-bottom-right { bottom: calc(var(--sheet-h, 0px) - 2px); }
  .lp-f3d.is-immersive .f3d-plan .maplibregl-ctrl-attrib { font-size: 10px; }
  /* tiroir */
  .lp-f3d.is-immersive .f3d-panel:not(.f3d-panel--ticket) { left: 0; right: 0; bottom: 0; top: auto; width: auto; translate: none;
    padding: 0 max(16px, env(safe-area-inset-right)) calc(env(safe-area-inset-bottom, 0px) + 14px) max(16px, env(safe-area-inset-left));
    border-radius: 24px 24px 0 0; max-height: min(52dvh, 470px); box-shadow: 0 -16px 50px rgba(7, 6, 26, .35); overflow-x: hidden; }
  .lp-f3d.is-immersive .f3d-sheet { display: block; position: sticky; top: 0; z-index: 3; width: calc(100% + 32px); height: 34px; margin: 0 -16px 0; border: 0; background: linear-gradient(180deg, rgba(14, 10, 42, .96) 60%, rgba(14, 10, 42, 0)); cursor: grab; touch-action: none; }
  .lp-f3d.is-immersive .f3d-sheet i { display: block; width: 48px; height: 5px; margin: 0 auto; }
  .lp-f3d.is-immersive .f3d-kicker { margin-bottom: 8px; font-size: 10.5px; }
  .lp-f3d.is-immersive .f3d-h { font-size: 27px; margin-bottom: 8px; }
  .lp-f3d.is-immersive .f3d-p { font-size: 14px; line-height: 1.5; }
  .lp-f3d.is-immersive .f3d-d, .lp-f3d.is-immersive .f3d-note--d { display: none; }
  .lp-f3d.is-immersive .f3d-cta { position: sticky; bottom: 0; z-index: 2; margin: 14px -16px 0; padding: 10px 16px 0; background: linear-gradient(180deg, rgba(14, 10, 42, 0), rgba(14, 10, 42, .97) 22%); }
  .lp-f3d.is-immersive .f3d-cta .f3d-btn { flex: 1 1 100%; min-height: 54px; font-size: 18px !important; }
  .lp-f3d.is-immersive .f3d-coords { margin-top: 12px; padding: 10px 12px; }
  /* acte II : tiroir court */
  .lp-f3d.is-immersive .f3d-panel--place .f3d-kicker { display: none; }
  /* acte III : grandes cartes défilant horizontalement */
  .lp-f3d.is-immersive .f3d-panel--compose { max-height: min(46dvh, 400px); }
  .lp-f3d.is-immersive.is-sheet-max .f3d-panel--compose, .lp-f3d.is-immersive.is-sheet-max .f3d-panel--place { max-height: calc(100dvh - env(safe-area-inset-top, 0px) - 76px); }
  .lp-f3d.is-immersive .f3d-panel--compose .f3d-kicker, .lp-f3d.is-immersive .f3d-panel--compose .f3d-h { display: none; }
  .lp-f3d.is-immersive .f3d-tabs { margin: 0 0 12px; }
  .lp-f3d.is-immersive .f3d-tabs button { min-height: 44px; font-size: 14.5px; }
  .lp-f3d.is-immersive .f3d-cards { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 148px; gap: 10px; overflow-x: auto; overscroll-behavior-x: contain; margin: 0 -16px; padding: 2px 16px 4px; scroll-snap-type: x proximity; scroll-padding: 0 16px; scrollbar-width: none; touch-action: pan-x; }
  .lp-f3d.is-immersive .f3d-cards::-webkit-scrollbar { display: none; }
  .lp-f3d.is-immersive .f3d-card { min-height: 152px; padding-bottom: 10px; align-content: start; border-radius: 15px; }
  .lp-f3d.is-immersive .f3d-card:active { scale: .97; }
  .lp-f3d.is-immersive .f3d-card__n { margin: -12px 10px 0; font-size: 16px; line-height: 1.04; text-wrap: balance; }
  .lp-f3d.is-immersive .f3d-card__plus { margin: 8px 10px 0; }
  .lp-f3d.is-immersive .f3d-card__c { top: 7px; right: 7px; min-width: 34px; padding: 7px 8px; font-size: 13px; }
  .lp-f3d.is-immersive .f3d-drawer .f3d-note { display: none; }
  .lp-f3d.is-immersive.is-sheet-max .f3d-drawer .f3d-note { display: block; }
  /* barre d'outils flottante de l'élément sélectionné */
  .lp-f3d.is-immersive .f3d-sel { top: auto; bottom: calc(var(--sheet-h, 300px) + 12px); left: 50%; display: grid; justify-items: center; gap: 6px; padding: 8px 8px 8px; border-radius: 20px; width: max-content; max-width: calc(100% - 20px); }
  .lp-f3d.is-immersive .f3d-sel__n { margin: 0; padding: 0 8px; font-size: 15px; white-space: normal; text-align: center; }
  .lp-f3d.is-immersive .f3d-sel__m { position: static; translate: none; font-size: 9.5px; margin-top: -3px; }
  .lp-f3d.is-immersive .f3d-sel__b { gap: 8px; order: 3; }
  .lp-f3d.is-immersive .f3d-sel button { width: 50px; height: 46px; border-radius: 14px; }
  .lp-f3d.is-immersive.is-sheet-max .f3d-sel, .lp-f3d.is-immersive.is-sheet-max .f3d-warn { display: none; }
  .lp-f3d.is-immersive .f3d-warn { left: 50%; top: calc(env(safe-area-inset-top, 0px) + 74px); font-size: 13.5px; }
  .lp-f3d.is-immersive .f3d-empty { display: none; }
  .lp-f3d.is-immersive .f3d-hint { position: absolute; z-index: 8; left: 50%; top: calc(env(safe-area-inset-top, 0px) + 40%); translate: -50% -50%; display: flex; flex-direction: column; align-items: center; gap: 10px; width: min(300px, calc(100% - 48px)); margin: 0; padding: 18px 20px;
    border-radius: 20px; background: rgba(10, 7, 34, .86); color: var(--lp-ivory); text-align: center; font: 600 15.5px/1.4 var(--f-text); box-shadow: 0 20px 50px rgba(7, 6, 26, .35);
    opacity: 0; scale: .94; transition: opacity .35s, scale .35s; pointer-events: none; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
  .lp-f3d.is-immersive .f3d-hint.is-on { opacity: 1; scale: 1; }
  .lp-f3d.is-immersive .f3d-hint svg { width: 34px; height: 34px; color: var(--lp-gold); animation: f3d-tap 1.6s ease-in-out infinite; }
  @keyframes f3d-tap { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
  /* acte IV : le ticket défile sous la barre du haut */
  .lp-f3d.is-immersive .f3d-panel--ticket { inset: calc(env(safe-area-inset-top, 0px) + 61px) 0 0; padding: 0 max(14px, env(safe-area-inset-right)) calc(env(safe-area-inset-bottom, 0px) + 28px) max(14px, env(safe-area-inset-left)); overflow: auto; overscroll-behavior: contain; }
  .lp-f3d.is-immersive .f3d-ticket-wrap { margin-top: 18px; }
}
@media (min-width: 760px) {
  .f3d-panel--compose .f3d-cards { max-height: none; }
}
