/* =====================================================================
   MAGIC COPIEUR — splash « galaxie »
   ===================================================================== */
.gx { position: fixed; inset: 0; z-index: 300; overflow: hidden; background: #020617; color: #fff; font-family: var(--font, 'Poppins', system-ui, sans-serif); transition: opacity .8s ease, transform .8s ease; }
.gx.out { opacity: 0; transform: scale(1.06); pointer-events: none; }
.gx canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.gx-vignette { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at center, transparent 45%, rgba(2, 6, 23, .75) 100%); }

/* Mise en page finale (invisible : sert de cible aux éléments volants) */
.gx-final { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(10px, 2.4vh, 22px); padding: 24px 16px 70px; visibility: hidden; pointer-events: none; }
.gx-brand { display: flex; align-items: center; gap: clamp(8px, 1.6vw, 16px); }
.gx-name { display: flex; align-items: baseline; font-weight: 900; letter-spacing: -.02em; font-size: clamp(30px, 8.2vw, 76px); line-height: 1; }
.gx-name .sp { width: .32em; }
.gx-logo { width: clamp(64px, 14vw, 128px); height: clamp(64px, 14vw, 128px); }
.gx-tag { font-size: clamp(11.5px, 2.6vw, 15px); opacity: .85; text-align: center; max-width: 560px; letter-spacing: .02em; }
.gx-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 2.6vw, 26px); width: min(820px, 100%); margin-top: clamp(4px, 1.4vh, 12px); }
.gx-card { display: flex; flex-direction: column; align-items: center; gap: 10px; min-width: 0; }
.gx-img { width: clamp(84px, 24vw, 200px); aspect-ratio: 1 / 1; }
.gx-lbl { font-size: clamp(11px, 2.7vw, 15px); font-weight: 700; text-align: center; line-height: 1.2; max-width: 100%; }
.gx-sub { margin-top: clamp(4px, 1.2vh, 10px); font-size: 11px; letter-spacing: .32em; text-transform: uppercase; opacity: .7; }
.gx-branches { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

/* Éléments volants */
.gx-layer { position: absolute; inset: 0; pointer-events: none; }
.gx-fly { position: absolute; left: 0; top: 0; will-change: transform, opacity; transform-origin: center center; display: flex; align-items: center; justify-content: center; }
.gx-fly.letter { font-weight: 900; line-height: 1; text-shadow: 0 0 18px rgba(96, 165, 250, .85), 0 0 42px rgba(37, 99, 235, .55); }
.gx-fly.letter.o { color: #ff9a1f; text-shadow: 0 0 18px rgba(255, 154, 31, .9), 0 0 46px rgba(245, 124, 0, .6); }
.gx-fly.logo img { width: 100%; height: 100%; border-radius: 50%; filter: drop-shadow(0 0 22px rgba(255, 170, 40, .75)); animation: gx-glow 2.4s ease-in-out infinite; }
@keyframes gx-glow { 50% { filter: drop-shadow(0 0 34px rgba(255, 190, 60, .95)); } }
.gx-fly.img { border-radius: 22px; background: #fff; overflow: hidden; box-shadow: 0 0 0 2px var(--c), 0 0 30px -2px var(--c), 0 18px 40px -16px rgba(0, 0, 0, .8); }
.gx-fly.img img { width: 100%; height: 100%; object-fit: contain; padding: 6%; }
.gx-fly.lbl { padding: 7px 12px; border-radius: 12px; background: rgba(15, 23, 42, .55); border: 1px solid rgba(255, 255, 255, .18); backdrop-filter: blur(6px); font-weight: 700; text-align: center; line-height: 1.2; color: #fff; }
.gx-fly.lbl b { color: var(--c); display: block; font-size: .78em; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 2px; }
.gx-fly.chip { gap: 8px; padding: 9px 16px; border-radius: 99px; font-weight: 700; font-size: clamp(12px, 2.8vw, 15px); background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .25); backdrop-filter: blur(6px); white-space: nowrap; }
.gx-fly.chip i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: 0 0 12px var(--c); }
.gx-fly.landed { animation: gxGlow 1.4s ease-out; }
.gx-fly.img.landed { animation: gxPop 1.2s ease-out; }
@keyframes gxGlow { 0% { filter: brightness(2.2); } 100% { filter: none; } }
@keyframes gxPop { 0% { box-shadow: 0 0 0 3px var(--c), 0 0 70px 10px var(--c); } 100% { box-shadow: 0 0 0 2px var(--c), 0 0 30px -2px var(--c), 0 18px 40px -16px rgba(0, 0, 0, .8); } }

/* Barre du bas : progression et « Passer » */
.gx-ui { position: absolute; left: 0; right: 0; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); display: flex; align-items: center; justify-content: center; gap: 14px; padding: 0 16px; }
.gx-prog { flex: 1; max-width: 260px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .15); overflow: hidden; }
.gx-prog i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #3b82f6, #ff9a1f); border-radius: 3px; }
.gx-skip { color: #fff; font: 600 13px var(--font, system-ui); padding: 8px 16px; border-radius: 99px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .25); cursor: pointer; backdrop-filter: blur(6px); }
.gx-skip:hover { background: rgba(255, 255, 255, .2); }
.gx-snd { width: 38px; height: 38px; flex: none; display: grid; place-items: center; color: #fff; border-radius: 50%; cursor: pointer; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .25); backdrop-filter: blur(6px); }
.gx-snd.off { opacity: .6; }
.gx-snd:not(.off) svg { animation: gx-beat .9s ease-in-out infinite; }
@keyframes gx-beat { 50% { transform: scale(1.15); } }
.gx-tap { position: absolute; left: 50%; bottom: calc(70px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 5; display: inline-flex; align-items: center; gap: 10px; color: #fff; font: 700 14px var(--font, system-ui); padding: 11px 22px 11px 12px; border-radius: 99px; cursor: pointer;
  background: linear-gradient(135deg, rgba(245, 124, 0, .85), rgba(34, 197, 94, .85)); border: 0; box-shadow: 0 8px 24px -8px rgba(245, 124, 0, .8); animation: gx-pulse 1.6s ease-in-out infinite; white-space: nowrap; }
.gx-tap.hidden, .gx-snd.hidden { display: none; }
.gx-tap-ic { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .25); font-size: 16px; }
@media (max-width: 480px) { .gx-tap { white-space: normal; width: max-content; max-width: calc(100% - 32px); font-size: 13px; } }
@keyframes gx-pulse { 50% { transform: translateX(-50%) scale(1.06); } }
.gx-hello { position: absolute; left: 0; right: 0; bottom: calc(52px + env(safe-area-inset-bottom, 0px)); text-align: center; font-size: 12px; letter-spacing: .3em; text-transform: uppercase; opacity: 0; transition: opacity 1s; }
.gx-hello.on { opacity: .75; }

.gx-fly.lbl { flex-direction: column; }
.gx-lbl b { display: block; font-size: .78em; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 2px; }
