@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&family=Playfair+Display:wght@500;700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:      #0d0f14;
  --surface: #13161d;
  --accent:  #7c6af7;
  --accent2: #4fd1c5;
  --text:    #e2e8f0;
  --muted:   #64748b;
  --border:  rgba(124,106,247,.25);
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

/* ── Arrière-plan ── */
.bg-glow {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
}
.bg-glow::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124,106,247,.18) 0%, transparent 70%);
  top: -150px; left: -150px;
  animation: driftA 12s ease-in-out infinite alternate;
}
.bg-glow::after {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79,209,197,.12) 0%, transparent 70%);
  bottom: -100px; right: -100px;
  animation: driftB 15s ease-in-out infinite alternate;
}

@keyframes driftA { from { transform: translate(0,0); } to { transform: translate(80px,60px); } }
@keyframes driftB { from { transform: translate(0,0); } to { transform: translate(-60px,-80px); } }

.dots-grid {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(circle, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* ── Carte ── */
.card {
  position: relative; z-index: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 56px 64px;
  max-width: 620px;
  width: 90%;
  text-align: center;
  box-shadow: 0 32px 80px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.04) inset;
  animation: fadeUp .8s cubic-bezier(.16,1,.3,1) both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Engrenages ── */
.gear-wrap {
  position: relative;
  width: 88px; height: 88px;
  margin: 0 auto 32px;
}

.gear {
  position: absolute;
  border-radius: 50%;
  border: 3px solid var(--accent);
}

.gear-big {
  width: 64px; height: 64px;
  top: 0; left: 0;
  border-color: var(--accent);
  animation: spin 6s linear infinite;
  box-shadow: 0 0 20px rgba(124,106,247,.4);
}

.gear-small {
  width: 36px; height: 36px;
  bottom: 0; right: 0;
  border-color: var(--accent2);
  animation: spin 4s linear infinite reverse;
  box-shadow: 0 0 14px rgba(79,209,197,.35);
}

.gear::before {
  content: '';
  position: absolute; inset: -4px;
  border-radius: 50%;
  border: 6px dotted currentColor;
  opacity: .4;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ── Typographie ── */
.label {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #e2e8f0 30%, var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

p {
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.7;
  max-width: 440px;
  margin: 0 auto 36px;
}

/* ── Barre de progression ── */
.progress-wrap {
  margin-bottom: 36px;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: .75rem;
  color: var(--muted);
  margin-bottom: 8px;
}

.progress-track {
  width: 100%;
  height: 6px;
  background: rgba(255,255,255,.07);
  border-radius: 99px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border-radius: 99px;
  box-shadow: 0 0 12px rgba(124,106,247,.6);
  animation: loadBar 3s cubic-bezier(.4,0,.2,1) 0.5s forwards;
}

@keyframes loadBar { to { width: 72%; } }

/* ── Statut ── */
.status-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
  margin-bottom: 36px;
}

.status-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .85rem;
  color: var(--muted);
}

.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot.done  { background: var(--accent2); box-shadow: 0 0 8px var(--accent2); }
.dot.doing { background: var(--accent);  box-shadow: 0 0 8px var(--accent); animation: pulse 1.4s ease-in-out infinite; }
.dot.todo  { background: rgba(255,255,255,.15); }

@keyframes pulse { 0%,100% { opacity:1; } 50% { opacity:.3; } }

/* ── Formulaire notification ── */
.notify-form {
  display: flex;
  gap: 10px;
}

.notify-form input {
  flex: 1;
  padding: 12px 16px;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-size: .85rem;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: border-color .2s;
}

.notify-form input:focus { border-color: var(--accent); }
.notify-form input::placeholder { color: var(--muted); }

.notify-form button {
  padding: 12px 20px;
  background: var(--accent);
  border: none;
  border-radius: 12px;
  color: #fff;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .2s, transform .1s;
  white-space: nowrap;
}

.notify-form button:hover  { opacity: .85; }
.notify-form button:active { transform: scale(.97); }

.confirm-msg {
  display: none;
  margin-top: 12px;
  font-size: .8rem;
  color: var(--accent2);
}

/* ── Footer ── */
.footer {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.06);
  font-size: .75rem;
  color: var(--muted);
}

.footer a {
  color: var(--accent);
  text-decoration: none;
}

/* ── Responsive ── */
@media (max-width: 480px) {
  .card { padding: 40px 28px; }
  .notify-form { flex-direction: column; }
}
