:root {
  --bg1: #050816;
  --bg2: #0c1020;
  --accent: #00ff9d;
  --accent-soft: rgba(0, 255, 157, 0.3);
  --text-main: #f5f5f5;
  --text-secondary: #c8c8c8;
  --danger: #ff5757;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
  overflow: hidden; /* pas de scroll */
}

body {
  font-family: "Rajdhani", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--text-main);
  background: radial-gradient(circle at top left, #1f2937 0, var(--bg2) 40%, #000 100%);
  position: relative;
}

/* Background dynamique global */
.bg-anim {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: radial-gradient(circle at 10% 20%, rgba(0, 255, 157, 0.18), transparent 55%),
    radial-gradient(circle at 90% 80%, rgba(255, 87, 87, 0.2), transparent 55%),
    radial-gradient(circle at 50% 50%, rgba(0, 204, 255, 0.18), transparent 60%);
  filter: blur(2px);
  animation: bgPulse 16s ease-in-out infinite alternate;
}

@keyframes bgPulse {
  0% {
    transform: scale(1) translate3d(0, 0, 0);
    opacity: 0.75;
  }
  50% {
    transform: scale(1.1) translate3d(-10px, 10px, 0);
    opacity: 1;
  }
  100% {
    transform: scale(1.08) translate3d(10px, -5px, 0);
    opacity: 0.85;
  }
}

.scan-lines {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 1px, transparent 1px);
  background-size: 100% 3px;
  mix-blend-mode: soft-light;
  opacity: 0.35;
  pointer-events: none;
}

/* Layout principal */
.wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

/* Card avec background image couleur / NB */
.hero-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr);
  gap: 2rem;
  max-width: 1100px;
  width: 100%;
  padding: 2.3rem 2.5rem;
  border-radius: 24px;

  background-image: url("images/background-color.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: rgba(10, 10, 22, 0.96);
  background-blend-mode: multiply;

  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 25px 40px rgba(0, 0, 0, 0.8),
    0 0 40px rgba(0, 255, 157, 0.15);
  transition: box-shadow 0.25s ease, background-image 0.4s ease-in-out;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: conic-gradient(
    from 180deg,
    rgba(0, 255, 157, 0.8),
    rgba(0, 204, 255, 0.7),
    rgba(255, 87, 87, 0.7),
    rgba(0, 255, 157, 0.8)
  );
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
  filter: blur(2px);
}

/* swap background au survol de la card */
.hero-card:hover {
  background-image: url("images/background-nb.png");
}

.hero-card:hover::before {
  opacity: 0.9;
}

/* Colonne logo */
.logo-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.3rem;
  text-align: center;
}

.logo-wrapper {
  position: relative;
  padding: 1rem;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 0%, rgba(0, 255, 157, 0.4), transparent 55%);
  transform-style: preserve-3d; /* tilt sur le logo uniquement */
  will-change: transform;
  transition: transform 0.16s ease-out;
}

.logo-glow {
  position: absolute;
  inset: -14px;
  border-radius: inherit;
  background: radial-gradient(circle, var(--accent-soft), transparent 60%);
  filter: blur(8px);
  opacity: 0.7;
  pointer-events: none;
}

.logo {
  position: relative;
  display: block;
  width: min(220px, 40vw);
  height: auto;
  border-radius: 18px;
}

.tagline {
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

/* Contenu texte */
.content-side {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.1rem;
}

h1 {
  font-size: clamp(1.9rem, 2.6vw, 2.4rem);
  line-height: 1.15;
  text-transform: uppercase;
}

h1 span.highlight {
  color: var(--accent);
  text-shadow: 0 0 12px rgba(0, 255, 157, 0.8);
}

.subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 34rem;
}

.points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem 1.2rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.points span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.bullet-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(0, 255, 157, 0.9);
}

/* CTA */
.cta-zone {
  margin-top: 0.7rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.2rem;
}

.cta-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.9rem;
  border-radius: 999px;
  border: none;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.9rem;
  color: #050816;
  background: linear-gradient(135deg, var(--accent), #00ccff);
  cursor: pointer;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4),
    0 10px 22px rgba(0, 0, 0, 0.8),
    0 0 18px rgba(0, 255, 157, 0.75);
  transform: translate3d(0, 0, 0);
  transition: transform 0.16s ease-out, box-shadow 0.18s ease-out, filter 0.18s ease-out;
  animation: ctaPulse 1.9s ease-in-out infinite;
}

.cta-btn:hover {
  transform: translate3d(0, -3px, 0) scale(1.03);
  filter: brightness(1.1);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.9), 0 0 28px rgba(0, 255, 157, 0.95);
}

.cta-btn:active {
  transform: translate3d(0, 1px, 0) scale(0.98);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.9), 0 0 14px rgba(0, 255, 157, 0.9);
  animation: none;
}

@keyframes ctaPulse {
  0% {
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.8), 0 0 14px rgba(0, 255, 157, 0.7);
  }
  50% {
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.9), 0 0 26px rgba(0, 255, 157, 1);
  }
  100% {
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.8), 0 0 14px rgba(0, 255, 157, 0.7);
  }
}

.cta-caption {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.cta-caption strong {
  color: var(--danger);
  font-weight: 700;
}

.footer-mini {
  margin-top: 0.4rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(200, 200, 200, 0.65);
}

/* Responsive */
@media (max-width: 900px) {
  .hero-card {
    grid-template-columns: minmax(0, 1fr);
    text-align: center;
    padding: 1.8rem 1.6rem;
  }

  .content-side {
    align-items: center;
  }

  .subtitle {
    max-width: 100%;
  }

  .points {
    grid-template-columns: minmax(0, 1fr);
  }

  .cta-zone {
    justify-content: center;
  }
}

@media (max-width: 520px) {
  .hero-card {
    padding: 1.4rem 1.1rem;
    border-radius: 18px;
  }

  .logo {
    width: 160px;
  }

  h1 {
    font-size: 1.6rem;
  }

  .subtitle {
    font-size: 0.97rem;
  }
}
