/* ====== LEVEL 3 — Néon Arcade refonte ====== */
/* Visual system inspired by the booking widget DNA */

:root {
  /* Backgrounds — the signature gradient */
  --bg-deep: #0e0524;
  --bg-mid: #4b1591;
  --bg-magenta: #b21cb8;
  --bg-grad: linear-gradient(155deg, #2a0f6b 0%, #5b14a8 35%, #b21cb8 75%, #e23ed8 100%);
  --bg-grad-soft: linear-gradient(180deg, #2a0f6b 0%, #5b14a8 50%, #2a0f6b 100%);

  /* Paper / card surfaces */
  --paper: #f6f1fb;
  --paper-2: #ece2f5;
  --paper-3: #d9c8ea;
  --ink: #100425;
  --ink-2: #2a0c5c;
  --ink-soft: #5a2b9e;

  /* Neon accents */
  --neon-cyan: #4dd6f5;
  --neon-cyan-bright: #80e7ff;
  --neon-magenta: #ff3ec9;
  --neon-magenta-bright: #ff8de4;
  --neon-purple: #a855f7;
  --neon-yellow: #fde047;
  --neon-green: #5af26e;

  /* Strokes */
  --stroke: #0a0014;
  --stroke-thin: 2px;
  --stroke-thick: 3px;

  /* Radii */
  --r-card: 28px;
  --r-card-lg: 36px;
  --r-pill: 999px;

  /* Fonts */
  --font-display: 'Audiowide', 'Russo One', system-ui, sans-serif;
  --font-pixel: 'Press Start 2P', monospace;
  --font-body: 'Outfit', 'Inter', system-ui, sans-serif;
}

/* Reset-ish for artboard scope */
.l3 *, .l3 *::before, .l3 *::after { box-sizing: border-box; }

.l3 {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg-grad);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* Star/grain texture overlay */
.l3::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 12% 18%, rgba(255,255,255,0.5) 50%, transparent 51%),
    radial-gradient(1px 1px at 78% 32%, rgba(255,255,255,0.4) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 45% 65%, rgba(255,255,255,0.55) 50%, transparent 51%),
    radial-gradient(1px 1px at 88% 80%, rgba(255,255,255,0.35) 50%, transparent 51%),
    radial-gradient(1px 1px at 25% 88%, rgba(255,255,255,0.4) 50%, transparent 51%),
    radial-gradient(1px 1px at 62% 12%, rgba(255,255,255,0.4) 50%, transparent 51%),
    radial-gradient(2px 2px at 8% 55%, rgba(255,255,255,0.6) 50%, transparent 51%),
    radial-gradient(1px 1px at 92% 48%, rgba(255,255,255,0.4) 50%, transparent 51%);
  background-size: 100% 100%;
  pointer-events: none;
  z-index: 0;
}
.l3 > * { position: relative; z-index: 1; }

/* Typography helpers */
.l3 .h-arcade {
  font-family: var(--font-display);
  letter-spacing: 0.02em;
  line-height: 1.05;
  text-transform: uppercase;
}
.l3 .h-pixel {
  font-family: var(--font-pixel);
  letter-spacing: 0;
  line-height: 1.3;
}
.l3 .body {
  font-family: var(--font-body);
  font-weight: 500;
  line-height: 1.5;
}

/* Console card (white card with black thick stroke + drop shadow) — widget DNA */
.l3 .console-card {
  background: white;
  border: var(--stroke-thick) solid var(--stroke);
  border-radius: var(--r-card-lg);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.04),
    0 30px 50px -20px rgba(0,0,0,0.55),
    inset 0 -3px 0 rgba(0,0,0,0.06);
  overflow: hidden;
}
.l3 .console-card--dark {
  background: #0a0014;
  color: white;
  border-color: #0a0014;
  box-shadow: 0 30px 50px -20px rgba(0,0,0,0.7),
    inset 0 0 0 1px rgba(255,255,255,0.06);
}

/* Step badge (the "Étape X/Y" black badge from widget) */
.l3 .step-badge {
  background: var(--stroke);
  color: white;
  font-family: var(--font-display);
  padding: 8px 14px;
  font-size: 14px;
  line-height: 1;
  border-radius: 4px;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Section title bar like widget (black step + violet header) */
.l3 .section-bar {
  display: flex;
  align-items: stretch;
  background: linear-gradient(90deg, #0a0014 0 64px, #4b1591 64px 100%);
  color: white;
  border-radius: 8px 8px 0 0;
}
.l3 .section-bar__step {
  width: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  padding: 10px 0;
  font-size: 11px;
}
.l3 .section-bar__step .num { font-size: 18px; line-height: 1; }
.l3 .section-bar__title {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 0 18px;
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.02em;
}

/* Neon buttons */
.l3 .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--r-pill);
  border: var(--stroke-thick) solid var(--ink-2);
  background: white;
  color: var(--ink-2);
  font-family: var(--font-display);
  font-size: 17px;
  letter-spacing: 0.04em;
  cursor: pointer;
  text-decoration: none;
  transition: transform .12s ease, box-shadow .2s ease;
  position: relative;
}
.l3 .btn:hover { transform: translateY(-1px); }
.l3 .btn--magenta {
  background: var(--neon-magenta);
  color: white;
  border-color: var(--neon-magenta);
  box-shadow:
    0 0 0 3px rgba(255, 62, 201, 0.25),
    0 10px 30px -8px rgba(255, 62, 201, 0.6);
}
.l3 .btn--cyan {
  background: var(--neon-cyan);
  color: var(--ink-2);
  border-color: var(--neon-cyan);
  box-shadow: 0 0 0 3px rgba(77,214,245,0.25), 0 10px 30px -8px rgba(77,214,245,0.5);
}
.l3 .btn--ghost {
  background: transparent;
  border-color: white;
  color: white;
}
.l3 .btn--lg { padding: 18px 36px; font-size: 20px; }
.l3 .btn--sm { padding: 10px 18px; font-size: 14px; }

/* Neon glow text */
.l3 .neon-cyan {
  color: var(--neon-cyan-bright);
  text-shadow:
    0 0 6px rgba(77,214,245,0.7),
    0 0 16px rgba(77,214,245,0.4);
}
.l3 .neon-magenta {
  color: var(--neon-magenta-bright);
  text-shadow:
    0 0 6px rgba(255,62,201,0.7),
    0 0 18px rgba(255,62,201,0.4);
}
.l3 .neon-yellow {
  color: var(--neon-yellow);
  text-shadow: 0 0 6px rgba(253,224,71,0.6), 0 0 16px rgba(253,224,71,0.3);
}

/* Image placeholder (striped) */
.l3 .img-ph {
  background:
    repeating-linear-gradient(45deg,
      rgba(255,255,255,0.04) 0 14px,
      rgba(255,255,255,0.08) 14px 28px),
    linear-gradient(135deg, #2a0c5c, #4b1591);
  color: rgba(255,255,255,0.7);
  font-family: var(--font-pixel);
  font-size: 10px;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8px;
  overflow: hidden;
  position: relative;
}
.l3 .img-ph--neon {
  background:
    repeating-linear-gradient(45deg,
      rgba(255,62,201,0.08) 0 14px,
      rgba(77,214,245,0.06) 14px 28px),
    radial-gradient(circle at 30% 40%, rgba(255,62,201,0.35), transparent 60%),
    radial-gradient(circle at 70% 65%, rgba(77,214,245,0.35), transparent 60%),
    #1a0535;
}

/* Pill badge */
.l3 .pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 2px solid var(--ink-2);
  background: white;
  color: var(--ink-2);
}
.l3 .pill--dark { background: var(--stroke); color: white; border-color: var(--stroke); }
.l3 .pill--magenta { background: var(--neon-magenta); color: white; border-color: var(--neon-magenta); }
.l3 .pill--cyan { background: var(--neon-cyan); color: var(--ink-2); border-color: var(--neon-cyan); }
.l3 .pill--ghost { background: transparent; color: white; border-color: rgba(255,255,255,0.5); }

/* Divider — pixel dots */
.l3 .divider-dots {
  display: flex;
  gap: 6px;
  justify-content: center;
  padding: 16px 0;
}
.l3 .divider-dots span {
  width: 6px; height: 6px;
  background: rgba(255,255,255,0.4);
}

/* Marquee-ish strip */
.l3 .strip {
  background: var(--stroke);
  color: white;
  font-family: var(--font-display);
  letter-spacing: 0.1em;
  font-size: 12px;
  padding: 10px 0;
  text-align: center;
  text-transform: uppercase;
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* Floating astronaut logo container — like widget header */
.l3 .logo-tile {
  background: #0a0014;
  border-radius: 0 0 22px 22px;
  width: 110px;
  height: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}
.l3 .logo-tile--lg { width: 140px; height: 110px; border-radius: 0 0 28px 28px; }

/* Activity tile */
.l3 .act-card {
  border-radius: 18px;
  overflow: hidden;
  border: 3px solid var(--stroke);
  background: var(--stroke);
  position: relative;
  display: flex;
  flex-direction: column;
}
.l3 .act-card__img {
  aspect-ratio: 16 / 10;
  position: relative;
}
.l3 .act-card__label {
  background: var(--neon-magenta);
  color: white;
  font-family: var(--font-display);
  text-align: center;
  padding: 10px 8px;
  font-size: 14px;
  letter-spacing: 0.04em;
}

/* Subtle scan lines on dark surfaces */
.l3 .scanlines {
  position: relative;
}
.l3 .scanlines::after {
  content: "";
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,0.025) 0 1px,
    transparent 1px 3px
  );
  pointer-events: none;
  border-radius: inherit;
}
