/* ============================================================
   SNAPX — Identité FLASH (Y2K) — couche identité maximale
   Gloss Pink · Hyperlink · Chrome · Ink · Photobooth
   ============================================================ */

:root {
  --flash-ink:        #101014;
  --flash-surface:    #E9E9F0;
  --flash-pink:       #FF3EB5;
  --flash-pink-glow:  rgba(255, 62, 181, 0.55);
  --flash-blue:       #2B5CFF;
  --flash-blue-glow:  rgba(43, 92, 255, 0.45);
  --flash-blue-soft:  #C9D4FF;
  --flash-text:       #101014;
  --flash-text-inv:   #E9E9F0;
  --flash-muted:      #6B6B7A;
  --flash-muted-2:    #9A93AC;
  --flash-border:     rgba(16, 16, 20, 0.12);
  --flash-border-inv: rgba(233, 233, 240, 0.14);
  --flash-chrome:     linear-gradient(180deg, #3A3A44 0%, #B9B9C8 38%, #FFFFFF 50%, #8F8FA3 62%, #2E2E38 100%);
  --flash-chrome-x:   linear-gradient(180deg, #FBFBFF 0%, #8F8FA3 100%);
  --flash-radius:     14px;
  --flash-radius-lg:  20px;
  --flash-radius-pill: 999px;
  --font-display:     'Unbounded', system-ui, sans-serif;
  --font-mono:        'Space Mono', ui-monospace, monospace;
  --ease-flash:       cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-pink:      0 8px 32px rgba(255, 62, 181, 0.4), 0 0 60px rgba(255, 62, 181, 0.15);
  --shadow-blue:      0 8px 32px rgba(43, 92, 255, 0.4), 0 0 60px rgba(43, 92, 255, 0.12);
  --shadow-chrome:    0 4px 0 #2E2E38, 0 12px 40px rgba(16, 16, 20, 0.15);
}

:root {
  --bg-deep: var(--flash-ink);
  --bg-dark: #17171F;
  --bg-card: rgba(233, 233, 240, 0.06);
  --border: var(--flash-border-inv);
  --accent: var(--flash-pink);
  --accent-light: #FF6AAE;
  --accent-2: var(--flash-blue);
  --accent-glow: rgba(255, 62, 181, 0.45);
  --text-primary: var(--flash-text-inv);
  --text-secondary: #B9B9C8;
  --text-muted: var(--flash-muted-2);
  --r-sm: 12px;
  --r-md: 14px;
  --r-lg: 20px;
}

/* ── Canvas Y2K (toutes pages) ── */
.flash-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 70% at 5% -10%, rgba(255, 62, 181, 0.28) 0%, transparent 52%),
    radial-gradient(ellipse 80% 60% at 98% 8%, rgba(43, 92, 255, 0.22) 0%, transparent 48%),
    radial-gradient(ellipse 60% 50% at 50% 105%, rgba(255, 62, 181, 0.1) 0%, transparent 55%),
    var(--flash-surface);
}

.flash-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(16, 16, 20, 0.07) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(180deg, #000 0%, #000 85%, transparent 100%);
}

.flash-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(16, 16, 20, 0.015) 3px,
    rgba(16, 16, 20, 0.015) 4px
  );
  opacity: 0.6;
}

body:not(.flash-light) .flash-bg {
  background:
    radial-gradient(ellipse 70% 50% at 15% 0%, rgba(255, 62, 181, 0.2) 0%, transparent 55%),
    radial-gradient(ellipse 60% 45% at 90% 20%, rgba(43, 92, 255, 0.15) 0%, transparent 50%),
    linear-gradient(180deg, #17171F 0%, #101014 100%);
}

body:not(.flash-light) .flash-bg::before {
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
}

.flash-grain {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.045;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

body:not(.flash-light) .flash-grain {
  opacity: 0.06;
  mix-blend-mode: overlay;
}

/* Stickers flottants décoratifs */
.flash-deco {
  position: fixed;
  z-index: 0;
  pointer-events: none;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.flash-deco-a {
  top: 18%;
  left: max(8px, 2vw);
  background: var(--flash-pink);
  color: var(--flash-ink);
  transform: rotate(-8deg);
  animation: flashWiggle 5s ease-in-out infinite;
}

.flash-deco-b {
  top: 32%;
  right: max(4px, 1vw);
  background: var(--flash-blue);
  color: var(--flash-text-inv);
  transform: rotate(6deg);
  animation: flashWiggle 6s ease-in-out infinite reverse;
}

.flash-deco-c {
  bottom: 22%;
  left: max(12px, 3vw);
  background: var(--flash-ink);
  color: var(--flash-pink);
  transform: rotate(3deg);
  font-size: 10px;
}

@media (max-width: 640px) {
  .flash-deco { display: none; }
}

body.flash-light {
  background: transparent;
  color: var(--flash-text);
}

body.flash-light .mesh-bg,
body.flash-light .ambient { display: none; }

/* ── Wordmark chrome ── */
.flash-wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(52px, 14vw, 88px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  background: var(--flash-chrome);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 0 rgba(46, 46, 56, 0.3)) drop-shadow(0 8px 24px rgba(255, 62, 181, 0.2));
  position: relative;
}

.flash-wordmark-sm {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -0.03em;
  background: var(--flash-chrome);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 1px 0 rgba(46, 46, 56, 0.25));
}

.flash-chrome-x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--flash-ink);
  box-shadow: var(--shadow-chrome), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 28px;
}

.flash-chrome-x span {
  background: var(--flash-chrome-x);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ── Stickers ── */
.flash-sticker {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  padding: 7px 16px;
  border-radius: var(--flash-radius-pill);
  white-space: nowrap;
  box-shadow: 0 3px 0 rgba(16, 16, 20, 0.15), 0 6px 20px rgba(0, 0, 0, 0.08);
  border: 2px solid rgba(16, 16, 20, 0.08);
}

.flash-sticker-pink {
  background: var(--flash-pink);
  color: var(--flash-ink);
  transform: rotate(-3deg);
  box-shadow: 0 3px 0 #d42e96, 0 8px 24px var(--flash-pink-glow);
}

.flash-sticker-blue {
  background: var(--flash-blue);
  color: var(--flash-text-inv);
  transform: rotate(3deg);
  box-shadow: 0 3px 0 #1e45cc, 0 8px 24px var(--flash-blue-glow);
}

.flash-sticker-ink {
  background: var(--flash-ink);
  color: var(--flash-pink);
  transform: rotate(-2deg);
}

/* ── Boutons FLASH ── */
.flash-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.01em;
  text-decoration: none;
  border-radius: var(--flash-radius-pill);
  padding: 15px 30px;
  border: none;
  cursor: pointer;
  transition: transform 0.18s var(--ease-flash), box-shadow 0.18s var(--ease-flash);
  touch-action: manipulation;
  position: relative;
}

.flash-btn-primary {
  background: var(--flash-blue);
  color: var(--flash-text-inv);
  box-shadow: 0 4px 0 #1e45cc, var(--shadow-blue);
}

.flash-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #1e45cc, 0 14px 40px rgba(43, 92, 255, 0.5);
}

.flash-btn-secondary {
  background: #FFFFFF;
  color: var(--flash-ink);
  border: 3px solid var(--flash-ink);
  font-weight: 800;
  box-shadow: 0 4px 0 var(--flash-ink);
}

.flash-btn-pink {
  background: var(--flash-pink);
  color: var(--flash-ink);
  box-shadow: 0 4px 0 #d42e96, var(--shadow-pink);
}

.flash-btn-pink:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #d42e96, 0 14px 40px rgba(255, 62, 181, 0.55);
}

/* ── Cartes ── */
.flash-card {
  background: #FFFFFF;
  border: 2px solid var(--flash-ink);
  border-radius: var(--flash-radius-lg);
  box-shadow: 0 4px 0 var(--flash-ink), 0 12px 32px rgba(16, 16, 20, 0.08);
  position: relative;
  overflow: hidden;
}

.flash-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--flash-pink), var(--flash-blue));
  opacity: 0.85;
}

.flash-card-ink {
  background: var(--flash-ink);
  border: 2px solid rgba(255, 62, 181, 0.35);
  border-radius: var(--flash-radius-lg);
  color: var(--flash-text-inv);
  box-shadow: 0 0 0 1px rgba(43, 92, 255, 0.2), 0 16px 48px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  position: relative;
  overflow: hidden;
}

.flash-card-ink::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 0% 0%, rgba(255, 62, 181, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse 60% 50% at 100% 100%, rgba(43, 92, 255, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.flash-card-ink > * { position: relative; z-index: 1; }

.flash-mono { font-family: var(--font-mono); }
.flash-display { font-family: var(--font-display); font-weight: 800; }

/* Tagline éclatée */
.flash-tagline-burst {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(20px, 5.5vw, 28px);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

/* Photobooth frame (viewer) */
.flash-booth-frame {
  border: 4px solid var(--flash-ink);
  border-radius: 24px;
  box-shadow:
    0 0 0 2px var(--flash-pink),
    0 0 0 6px var(--flash-ink),
    0 0 40px var(--flash-pink-glow),
    inset 0 0 80px rgba(255, 62, 181, 0.06);
  position: relative;
  overflow: hidden;
}

.flash-booth-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, transparent 40%, transparent 60%, rgba(255, 62, 181, 0.05) 100%);
  pointer-events: none;
  z-index: 5;
}

@keyframes flashWiggle {
  0%, 100% { transform: rotate(-3deg) translateY(0); }
  50% { transform: rotate(3deg) translateY(-3px); }
}

@keyframes flashPulseGlow {
  0%, 100% { opacity: 0.6; filter: blur(20px); }
  50% { opacity: 1; filter: blur(28px); }
}

.flash-wiggle { animation: flashWiggle 4s ease-in-out infinite; }

@keyframes flashShimmer {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

.flash-shimmer-bar {
  height: 4px;
  background: linear-gradient(90deg, var(--flash-pink), var(--flash-blue), var(--flash-pink));
  background-size: 200% 100%;
  animation: flashShimmer 3s linear infinite;
  border-radius: 999px;
}

/* Creator / glass Y2K */
body.flash-light .glass-card {
  border: 2px solid var(--flash-ink) !important;
  box-shadow: 0 6px 0 var(--flash-ink), 0 20px 50px rgba(16, 16, 20, 0.1) !important;
  border-radius: var(--flash-radius-lg) !important;
  position: relative;
  overflow: hidden;
}

body.flash-light .glass-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--flash-pink) 0%, var(--flash-blue) 100%);
}

body.flash-light .brand-name {
  font-size: 32px !important;
  filter: drop-shadow(0 2px 0 rgba(46, 46, 56, 0.3)) drop-shadow(0 6px 20px rgba(255, 62, 181, 0.25));
}

body.flash-light .btn-primary {
  box-shadow: 0 4px 0 #1e45cc, var(--shadow-blue) !important;
  font-weight: 800 !important;
}

body.flash-light .trust-pill {
  box-shadow: 0 2px 0 rgba(16, 16, 20, 0.2);
  font-weight: 700;
}

.pv-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--flash-pink);
  color: var(--flash-ink);
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 2px 0 #d42e96, 0 6px 20px var(--flash-pink-glow);
  transform: rotate(-2deg);
}

.pv-brand-sticker {
  font-family: var(--font-mono) !important;
  font-weight: 700 !important;
  background: var(--flash-ink) !important;
  color: var(--flash-pink) !important;
  border: 2px solid var(--flash-pink) !important;
  box-shadow: 0 0 16px var(--flash-pink-glow) !important;
}

.pv-shell.flash-booth {
  border: 3px solid rgba(255, 62, 181, 0.5);
  box-shadow: 0 0 0 2px var(--flash-ink), 0 0 48px var(--flash-pink-glow), inset 0 0 60px rgba(255, 62, 181, 0.05);
  background: rgba(16, 16, 20, 0.92);
}

.pv-frame.flash-booth-frame {
  border-width: 3px;
}

.btn-reveal {
  background: var(--flash-pink) !important;
  color: var(--flash-ink) !important;
  font-family: var(--font-display) !important;
  font-weight: 800 !important;
  box-shadow: 0 4px 0 #d42e96, var(--shadow-pink) !important;
  border: none !important;
}

.reaction-btn {
  border: 2px solid rgba(255, 62, 181, 0.4) !important;
  background: rgba(255, 62, 181, 0.12) !important;
}

.reaction-btn.is-sent {
  background: var(--flash-pink) !important;
  border-color: var(--flash-pink) !important;
  box-shadow: var(--shadow-pink) !important;
}

.countdown-progress {
  stroke: var(--flash-pink) !important;
}

@media (prefers-reduced-motion: reduce) {
  .flash-wiggle,
  .flash-shimmer-bar { animation: none !important; }
}
