:root{
  --ink: #333366;
  --paper: #faf7f1;
  --paper2: #f3efe7;
  --card: #ffffff;
  --muted: rgba(51,51,102,.70);
  --shadow: 0 18px 60px rgba(20, 20, 55, .18);
  --radius: 26px;
}

*{ box-sizing: border-box; }
html, body{ height: 100%; }

body{
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(900px 650px at 20% 15%, rgba(51,51,102,0.10), transparent 60%),
    radial-gradient(760px 520px at 85% 30%, rgba(51,51,102,0.08), transparent 60%),
    radial-gradient(820px 520px at 40% 92%, rgba(51,51,102,0.06), transparent 62%),
    linear-gradient(180deg, var(--paper), var(--paper2));
  overflow-x: hidden;
}

/* Grain papier (léger) */
body::before{
  content:"";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .12;
  background:
    repeating-linear-gradient(0deg, rgba(0,0,0,.035), rgba(0,0,0,.035) 1px, transparent 1px, transparent 5px),
    repeating-linear-gradient(90deg, rgba(0,0,0,.02), rgba(0,0,0,.02) 1px, transparent 1px, transparent 7px);
  mix-blend-mode: multiply;
}

/* Blobs “aquarelle” derrière la carte */
.blobs{
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.blob{
  position: absolute;
  width: min(52vw, 520px);
  height: min(52vw, 520px);
  background: rgba(51,51,102,0.10);
  filter: blur(28px);
  border-radius: 42% 58% 55% 45% / 55% 45% 55% 45%;
  transform: translate3d(0,0,0);
  animation: float 18s ease-in-out infinite alternate;
}
.b1{ top: -10%; left: -12%; animation-duration: 20s; }
.b2{ top: 15%; right: -14%; animation-duration: 24s; background: rgba(51,51,102,0.08); }
.b3{ bottom: -18%; left: 18%; animation-duration: 26s; background: rgba(51,51,102,0.06); }

@keyframes float{
  0%{ transform: translate3d(-2%, -1%, 0) scale(1.00) rotate(-2deg); }
  100%{ transform: translate3d(2%, 1%, 0) scale(1.06) rotate(2deg); }
}

/* Accessibilité : si l’utilisateur préfère moins d’animations */
@media (prefers-reduced-motion: reduce){
  .blob{ animation: none !important; }
  .badge .dot{ animation: none !important; }
  .card::after{ animation: none !important; }
}

.wrap{
  position: relative;
  z-index: 1;
  min-height: 100%;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 18px;
  max-width: 920px;
  margin: 0 auto;
  padding: 28px 18px 18px;
}

.top{
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.badge{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid rgba(51,51,102,0.12);
  box-shadow: 0 8px 28px rgba(20,20,55,.10);
  font-weight: 700;
}
.badge .dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--ink);
  box-shadow: 0 0 0 6px rgba(51,51,102,0.10);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse{
  0%,100%{ transform: scale(1); opacity: 1; }
  50%{ transform: scale(1.15); opacity: .7; }
}

.card{
  align-self: center;
  justify-self: center;
  width: 100%;
  max-width: 760px;
  padding: 30px 26px 22px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid rgba(51,51,102,0.10);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

/* petite “trace de pinceau” très douce */
.card::after{
  content:"";
  position:absolute;
  inset: -40% -40%;
  background:
    radial-gradient(120px 80px at 20% 25%, rgba(51,51,102,0.10), transparent 60%),
    radial-gradient(160px 110px at 78% 30%, rgba(51,51,102,0.08), transparent 62%),
    radial-gradient(240px 160px at 45% 78%, rgba(51,51,102,0.06), transparent 64%);
  transform: rotate(-6deg);
  animation: wash 16s ease-in-out infinite alternate;
  pointer-events:none;
  z-index: 0;
}
@keyframes wash{
  0%{ transform: translate3d(-1%, -1%, 0) rotate(-6deg) scale(1.00); }
  100%{ transform: translate3d(1%, 1%, 0) rotate(-4deg) scale(1.02); }
}

.signature{
  position: relative;
  z-index: 1;
  display:flex;
  justify-content:center;
  margin: 6px 0 12px;
}
.signature svg{
  width: min(540px, 86vw);
  height: auto;
}
.signature svg .st0{ fill: var(--ink) !important; }
.signature svg .st1{ display: none !important; }

h1{
  position: relative;
  z-index: 1;
  margin: 0 0 10px;
  font-size: clamp(24px, 3.1vw, 40px);
  letter-spacing: -0.02em;
  line-height: 1.12;
}
.lead{
  position: relative;
  z-index: 1;
  margin: 0 0 18px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
}

.cta{
  position: relative;
  z-index: 1;
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 8px 0 18px;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 12px 14px;
  border-radius: 14px;
  text-decoration:none;
  font-weight: 800;
  border: 1px solid rgba(51,51,102,0.16);
  background: #fff;
  color: var(--ink);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  box-shadow: 0 8px 22px rgba(20,20,55,.08);
}
.btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(20,20,55,.12);
}
.btn.primary{
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.btn.ghost{
  background: transparent;
  box-shadow: none;
}

.notes{
  position: relative;
  z-index: 1;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 10px 0 18px;
}

.note{
  padding: 14px 14px 12px;
  border-radius: 18px;
  border: 1px solid rgba(51,51,102,0.10);
  background:
    radial-gradient(120px 80px at 25% 30%, rgba(51,51,102,0.06), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,0.9), rgba(255,255,255,0.9));
}
.note-title{
  font-weight: 900;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.note-text{
  color: var(--muted);
  line-height: 1.5;
  font-size: 14px;
}

.line{
  height: 1px;
  background: rgba(51,51,102,0.10);
  margin: 12px 0 10px;
}

.small{
  position: relative;
  z-index: 1;
  display:flex;
  flex-wrap: wrap;
  align-items:center;
  gap: 10px;
  font-size: 13px;
  color: rgba(51,51,102,.78);
}
.sep{ opacity: .6; }

.link{
  color: rgba(51,51,102,.92);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 4px 6px 10px;
  color: rgba(51,51,102,.72);
  font-weight: 600;
  font-size: 12px;
}

.madeby{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  color: rgba(51,51,102,.72);
  text-decoration: none;
  transition: opacity .15s ease;
}
.madeby:hover{ opacity: .9; }

.mb-logo{
  display:inline-flex;
  align-items:center;
}
.mb-logo svg{
  width: 84px;
  height: auto;
}
.mb-logo svg path{ fill: currentColor !important; }

.heart{ filter: saturate(1.1); }

@media (max-width: 760px){
  .notes{ grid-template-columns: 1fr; }
  .btn{ flex: 1 1 auto; }
  .wrap{ padding-top: 22px; }
}
