/* Rôle du fichier :
👉 éléments UI
        .logo
        .menu
        .item
        .title
        .bar
*/

:root {
  --bg: #0f172a;          /* bleu nuit profond (plus premium) */
  --text: #e5e7eb;        /* blanc cassé */
  --muted: #94a3b8;       /* gris froid */
  --accent: #D7340b;      /* TON rouge conservé */
}

/* LOGO */
.logo {
  position: relative;
  z-index: 2;
}

.logo::after {
  content: "";
  position: absolute;
  inset: -80px;

  background: radial-gradient(
    circle,
    rgba(229,228,226,0.25) 0%,
    rgba(229,228,226,0.12) 30%,
    rgba(229,228,226,0.05) 50%,
    transparent 75%
  );

  filter: blur(60px);
  z-index: -1;
  pointer-events: none;
  transform: translate(var(--shift, 0px), 0);
  transition: transform 0.2s ease;
  animation: glowPulse 6s ease-in-out infinite;
}

.logo svg {
  width: 90vw;
  max-width: 420px;
}

/* BARCODE */
.bar {
  transform-origin: center;
  fill: rgba(255,255,255,0.8);

  opacity: 0.4;

    transition:
    transform 0.2s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.25s ease-out;
}

/* état glitch */
.bar.glitch {
  filter: brightness(1.6);
  opacity: 1;
}

.bar.react {
  transform: scaleY(0.8);
  opacity: 0.5;
}

/* TITLE */
.title {
  font-size: clamp(1.4rem, 4vw, 2rem);
  letter-spacing: 8px;
  text-shadow:
    0 0 10px rgba(229,228,226,0.25),
    0 0 30px rgba(229,228,226,0.15),
    0 0 60px rgba(229,228,226,0.08);
  color: rgba(255,255,255,0.85);
  mix-blend-mode: normal;
  animation: glowPulseSoft 6s ease-in-out infinite;
}

/* MENU */
.menu {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.item {
  position: absolute;
  pointer-events: auto;
  color: rgba(255, 255, 255, 0.938);
  text-shadow:
    0 0 2px rgba(0,0,0,0.6),
    0 0 8px rgba(0,0,0,0.5);
  text-decoration: none;
}

.item:nth-child(1) { top: 20%; left: 10%; }
.item:nth-child(2) { top: 30%; right: 10%; }
.item:nth-child(3) { bottom: 30%; left: 15%; }
.item:nth-child(4) { bottom: 20%; right: 15%; }

.menu .item {
  opacity: 0.5;
  transition: all 0.2s ease;
}

.menu .item:hover {
  opacity: 1;
  letter-spacing: 4px;
}

.back-button {
  position: fixed;
  top: 20px;
  left: 20px;

  font-size: 12px;
  letter-spacing: 2px;

  background: none;
  border: none;
  color: rgba(255,255,255,0.6);
  opacity: 0.5;

  cursor: pointer;

  transition: all 0.2s ease;
  z-index: 50;
}

.back-button:hover {
  color: white;
  transform: translateX(-4px);
  opacity: 1;
}

@media (max-width: 768px) {
  .back-button {
    top: 15px;
    left: 15px;
    font-size: 11px;
  }
}