:root {
  --sl-blue:   #147ffd;
  --sl-violet: #a491fb;
  --sl-gradient: linear-gradient(135deg, var(--sl-blue) 0%, var(--sl-violet) 100%);
  --bg:        #14172b;
  --text:      #f3f4fb;
  --text-soft: #aab0c8;
  --text-dim:  #6e7596;
  --surface:   rgba(255,255,255,0.04);
  --border:    rgba(164,145,251,0.18);
  --font-display: "Manrope", "Helvetica Neue", sans-serif;
  --font-body:    "IBM Plex Sans", "Helvetica Neue", sans-serif;
}

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

html, body { height: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* ---- Halo dégradé d'arrière-plan (piloté par JS) ---- */
.glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  will-change: transform;
  /* repli CSS si le JS ne tourne pas */
  animation: breathe 9s ease-in-out infinite;
}
.blob-a {
  width: 640px; height: 640px;
  top: -160px; left: -120px;
  background: radial-gradient(circle, rgba(20,127,253,0.7), transparent 68%);
}
.blob-b {
  width: 700px; height: 700px;
  bottom: -200px; right: -140px;
  background: radial-gradient(circle, rgba(164,145,251,0.65), transparent 68%);
  animation-delay: -4.5s;
}
.blob-c {
  width: 540px; height: 540px;
  top: 28%; left: 42%;
  background: radial-gradient(circle, rgba(105,140,253,0.55), transparent 70%);
  animation-delay: -2s;
}
/* quand le JS prend la main, il retire l'animation CSS */
.glow.js-driven .blob { animation: none; }
@keyframes breathe {
  0%, 100% { transform: translate(0, 0) scale(1);   opacity: 0.5; }
  50%      { transform: translate(60px, -40px) scale(1.18); opacity: 0.78; }
}

/* fine grille décorative très discrète */
.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(164,145,251,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(164,145,251,0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 42%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 50% 42%, #000 0%, transparent 72%);
}

/* ---- Contenu ---- */
main {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
}

.card {
  width: 100%;
  max-width: 680px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo {
  width: 188px;
  height: auto;
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeUp 0.8s 0.05s ease forwards;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-soft);
  padding: 7px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  margin-bottom: 30px;
  opacity: 0;
  animation: fadeUp 0.8s 0.15s ease forwards;
}
.status .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--sl-violet);
  box-shadow: 0 0 0 0 rgba(164,145,251,0.7);
  animation: pulse 2.2s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(164,145,251,0.6); }
  70%  { box-shadow: 0 0 0 10px rgba(164,145,251,0); }
  100% { box-shadow: 0 0 0 0 rgba(164,145,251,0); }
}

h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.3rem, 6vw, 3.9rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
  max-width: 640px;
  opacity: 0;
  animation: fadeUp 0.8s 0.25s ease forwards;
}
.grad {
  background: var(--sl-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.lead {
  font-size: clamp(1rem, 2vw, 1.18rem);
  color: var(--text-soft);
  max-width: 540px;
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeUp 0.8s 0.35s ease forwards;
}

/* ---- Formulaire email ---- */
form.notify {
  display: flex;
  gap: 10px;
  width: 100%;
  max-width: 460px;
  opacity: 0;
  animation: fadeUp 0.8s 0.45s ease forwards;
}
.notify input[type="email"] {
  flex: 1;
  min-width: 0;
  padding: 14px 18px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  outline: none;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.notify input[type="email"]::placeholder { color: var(--text-dim); }
.notify input[type="email"]:focus {
  border-color: var(--sl-violet);
  background: rgba(255,255,255,0.06);
  box-shadow: 0 0 0 3px rgba(164,145,251,0.18);
}
.notify button {
  flex-shrink: 0;
  padding: 14px 24px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  background: var(--sl-gradient);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, filter 0.2s;
  box-shadow: 0 8px 24px -8px rgba(20,127,253,0.6);
}
.notify button:hover    { transform: translateY(-2px); filter: brightness(1.06); box-shadow: 0 12px 30px -8px rgba(164,145,251,0.7); }
.notify button:active   { transform: translateY(0); }

.form-msg {
  min-height: 22px;
  margin-top: 14px;
  font-size: 0.92rem;
  color: var(--sl-violet);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.4s, transform 0.4s;
}
.form-msg.show { opacity: 1; transform: translateY(0); }

/* ---- Footer ---- */
footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 28px 24px;
  font-size: 0.85rem;
  color: var(--text-dim);
  opacity: 0;
  animation: fadeUp 0.8s 0.6s ease forwards;
}
footer a { color: var(--text-soft); text-decoration: none; }
footer a:hover { color: var(--text); }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 520px) {
  form.notify { flex-direction: column; }
  .notify button { width: 100%; }
  .logo { width: 158px; margin-bottom: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  .logo, .status, h1, .lead, form.notify, footer { animation: none !important; opacity: 1 !important; }
  .status .dot { animation: none !important; }
  /* le fond garde une animation très douce, pilotée par le JS si présent */
}
