/* OWAN onboarding — identité noir profond / lime, botanique premium */
@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400;12..96,600;12..96,800&family=Instrument+Sans:wght@400;500;600&display=swap');

:root {
  --noir: #0a0a0a;
  --noir-2: #121410;
  --carbone: #181a16;
  --bordure: #272a23;
  --lime: #c2ff3d;
  --lime-dim: rgba(194, 255, 61, 0.14);
  --vert: #2d5a3f;
  --blanc: #f4f6ef;
  --gris: #9aa191;
  --gris-2: #6c7263;
  --rouge: #ff6b5e;
  --radius: 14px;
  --font-display: 'Bricolage Grotesque', sans-serif;
  --font-body: 'Instrument Sans', sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background: var(--noir);
  color: var(--blanc);
  min-height: 100dvh;
  position: relative;
  overflow-x: hidden;
}

/* ── Atmosphère : halo lime + grain ─────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 45% at 50% -12%, rgba(194, 255, 61, 0.13), transparent 65%),
    radial-gradient(ellipse 60% 35% at 85% 110%, rgba(45, 90, 63, 0.25), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: 430px;
  margin: 0 auto;
  padding: 28px 22px 56px;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

/* ── Header logo ────────────────────────────────────────────── */
.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 6px 0 26px;
  animation: rise .6s cubic-bezier(.2,.7,.2,1) both;
}
.brand svg { display: block; filter: drop-shadow(0 0 10px rgba(194,255,61,.45)); }
.brand .word {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 25px;
  letter-spacing: .14em;
  color: var(--blanc);
}
.brand .word em { font-style: normal; color: var(--lime); }

/* ── Progression ────────────────────────────────────────────── */
.progress { margin-bottom: 30px; animation: rise .6s .08s cubic-bezier(.2,.7,.2,1) both; }
.progress .bars { display: flex; gap: 7px; }
.progress .bar {
  flex: 1; height: 5px; border-radius: 99px;
  background: var(--bordure);
  position: relative; overflow: hidden;
}
.progress .bar.on { background: var(--lime); box-shadow: 0 0 14px rgba(194,255,61,.5); }
.progress .bar.pulse::after {
  content: ''; position: absolute; inset: 0; border-radius: 99px;
  background: linear-gradient(90deg, transparent, rgba(194,255,61,.95), transparent);
  animation: sweep 1.8s ease-in-out infinite;
}
.progress .label {
  margin-top: 10px;
  font-size: 11px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--gris-2); text-align: center;
}
.progress .label b { color: var(--lime); font-weight: 600; }

/* ── Titres ─────────────────────────────────────────────────── */
.hero { text-align: center; margin-bottom: 34px; animation: rise .6s .14s cubic-bezier(.2,.7,.2,1) both; }
.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(27px, 7.4vw, 34px);
  line-height: 1.12;
  letter-spacing: -0.015em;
}
.hero h1 .lime { color: var(--lime); }
.hero p { margin-top: 12px; color: var(--gris); font-size: 15.5px; line-height: 1.55; }

/* ── Badge sécurité ─────────────────────────────────────────── */
.secure {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  margin: 18px auto 0;
  padding: 9px 16px;
  width: fit-content;
  border: 1px solid var(--bordure);
  border-radius: 99px;
  background: rgba(24, 26, 22, 0.7);
  font-size: 12.5px; font-weight: 500;
  color: var(--gris);
}
.secure svg { flex: none; }

/* ── Formulaire ─────────────────────────────────────────────── */
.bloc { margin-bottom: 30px; animation: rise .6s cubic-bezier(.2,.7,.2,1) both; }
.bloc:nth-of-type(1) { animation-delay: .2s; }
.bloc:nth-of-type(2) { animation-delay: .26s; }
.bloc:nth-of-type(3) { animation-delay: .32s; }
.bloc .titre {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 600;
  letter-spacing: .24em; text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 16px;
}
.bloc .titre::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, var(--bordure), transparent); }

.champ { margin-bottom: 14px; }
.champ label {
  display: block;
  font-size: 13.5px; font-weight: 500;
  color: var(--gris);
  margin-bottom: 7px;
}
.champ input {
  width: 100%;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--blanc);
  background: var(--carbone);
  border: 1px solid var(--bordure);
  border-radius: var(--radius);
  padding: 15px 16px;
  outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
  -webkit-appearance: none;
}
.champ input::placeholder { color: var(--gris-2); }
.champ input:focus {
  border-color: var(--lime);
  background: var(--noir-2);
  box-shadow: 0 0 0 3px var(--lime-dim);
}
.champ input.err { border-color: var(--rouge); }
.champ .aide { margin-top: 7px; font-size: 12.5px; color: var(--gris-2); line-height: 1.45; }
.demi { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ── CTA ────────────────────────────────────────────────────── */
.cta {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: .02em;
  color: #0a0a0a;
  background: var(--lime);
  border: none;
  border-radius: var(--radius);
  padding: 18px 20px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 6px 30px rgba(194,255,61,.28), inset 0 -2px 0 rgba(0,0,0,.18);
  transition: transform .15s, box-shadow .2s, filter .2s;
  animation: rise .6s .38s cubic-bezier(.2,.7,.2,1) both;
}
.cta:active { transform: scale(.97); }
.cta:hover { filter: brightness(1.06); box-shadow: 0 8px 38px rgba(194,255,61,.4), inset 0 -2px 0 rgba(0,0,0,.18); }
.cta:disabled { filter: grayscale(.6) brightness(.7); cursor: wait; transform: none; }
.cta svg { transition: transform .2s; }
.cta:hover svg { transform: translateX(4px); }

.cta-blanc {
  background: #fff;
  box-shadow: 0 6px 30px rgba(255,255,255,.12), inset 0 -2px 0 rgba(0,0,0,.1);
}
.cta-blanc:hover { box-shadow: 0 8px 38px rgba(255,255,255,.2), inset 0 -2px 0 rgba(0,0,0,.1); }

.erreur-box {
  display: none;
  margin-bottom: 16px;
  padding: 13px 16px;
  border: 1px solid rgba(255,107,94,.4);
  border-radius: var(--radius);
  background: rgba(255,107,94,.08);
  color: var(--rouge);
  font-size: 14px; line-height: 1.5;
}
.erreur-box.on { display: block; }

/* ── Écrans 2 & 3 : carte centrale ──────────────────────────── */
.scene {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  padding-bottom: 40px;
}
.icone {
  width: 92px; height: 92px;
  margin: 0 auto 28px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 28px;
  background: linear-gradient(160deg, var(--carbone), var(--noir-2));
  border: 1px solid var(--bordure);
  box-shadow: 0 0 50px rgba(194,255,61,.12), inset 0 1px 0 rgba(255,255,255,.05);
  animation: rise .6s .14s cubic-bezier(.2,.7,.2,1) both;
}
.scene h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(26px, 7vw, 32px);
  line-height: 1.14;
  animation: rise .6s .2s cubic-bezier(.2,.7,.2,1) both;
}
.scene h1 .lime { color: var(--lime); }
.scene .sous {
  margin: 14px auto 32px;
  max-width: 320px;
  color: var(--gris);
  font-size: 15.5px; line-height: 1.6;
  animation: rise .6s .26s cubic-bezier(.2,.7,.2,1) both;
}
.scene .note {
  margin-top: 18px;
  font-size: 12.5px; color: var(--gris-2); line-height: 1.5;
  animation: rise .6s .44s cubic-bezier(.2,.7,.2,1) both;
}

/* check animé (écran 3) */
.check-ring { animation: pop .55s .15s cubic-bezier(.3,1.6,.4,1) both; }
.check-trait {
  stroke-dasharray: 60; stroke-dashoffset: 60;
  animation: draw .5s .55s ease-out forwards;
}

.reseaux {
  display: flex; justify-content: center; gap: 14px;
  margin: 6px 0 30px;
  animation: rise .6s .32s cubic-bezier(.2,.7,.2,1) both;
}
.reseaux .r {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 16px;
  background: var(--carbone);
  border: 1px solid var(--bordure);
}

.footer-note {
  margin-top: 36px;
  text-align: center;
  font-size: 13px; color: var(--gris-2);
  animation: rise .6s .5s cubic-bezier(.2,.7,.2,1) both;
}

/* ── Animations ─────────────────────────────────────────────── */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes sweep { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(100%); } }
@keyframes pop { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: scale(1); } }
@keyframes draw { to { stroke-dashoffset: 0; } }

@media (min-width: 700px) {
  .wrap { padding-top: 48px; }
}
