/* Wuvy · direction « Peluche » : interface blanche et noire, la couleur vient des Wuvs. */
@font-face {
  font-family: "Sequel Sans";
  src: url("/fonts/sequel-sans-black-head.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-latin-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-latin-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-latin-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --surface: #ffffff;
  --surface-soft: #f4f3f1;
  --line: #e4e2de;
  --ink: #111111;
  --ink-muted: #66625e;
  --tomate: #ff5b4f;
  --tomate-deep: #d9352b;
  --display: "Sequel Sans", "Archivo", system-ui, sans-serif;
  --body: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius-md: 16px;
  --radius-lg: 24px;
  --gutter: 24px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 900; margin: 0; letter-spacing: -0.02em; text-wrap: balance; }
.mid { font-family: var(--body); font-weight: 700; }
p { margin: 0; }

.skip {
  position: absolute; left: 12px; top: -60px;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px;
  text-decoration: none; z-index: 10; transition: top .2s var(--ease);
}
.skip:focus { top: 12px; }

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 8px;
}

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 var(--gutter); }
main { flex: 1; }

/* En-tête */
.site-header { padding: 20px 0 8px; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; }
.logo { display: inline-block; border-radius: 10px; }
.logo img { width: 136px; }

/* Accueil : hero */
.hero { padding: 24px 0 56px; }
.hero-grid { display: grid; gap: 32px; align-items: center; }
.hero h1 { font-size: clamp(40px, 11vw, 72px); line-height: 1.02; letter-spacing: -0.035em; }
.hero .lead { margin-top: 16px; font-size: 19px; line-height: 1.4; color: var(--ink); max-width: 36ch; }
.hero-wuvs {
  display: flex; justify-content: center; align-items: flex-end;
  gap: 0; margin: 0 auto; max-width: 360px; position: relative;
}
.hero-wuvs img { width: 50%; }
.hero-wuvs .wuv-a { transform: rotate(-4deg) translateX(8%); z-index: 1; }
.hero-wuvs .wuv-b { transform: rotate(5deg) translateX(-8%); margin-bottom: -2%; }
.hero-wuvs::after {
  content: ""; position: absolute; left: 12%; right: 12%; bottom: -6px; height: 18px;
  background: radial-gradient(closest-side, rgba(17,17,17,.12), transparent);
  z-index: -1;
}

/* Formulaire liste d'attente */
.waitlist { margin-top: 28px; max-width: 460px; }
.waitlist-title { font-family: var(--display); font-size: 20px; line-height: 1.2; margin-bottom: 12px; }
.waitlist label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 8px; }
.field-row { display: flex; flex-direction: column; gap: 10px; }
.input {
  width: 100%; min-height: 56px; padding: 0 20px;
  font: 500 17px/1 var(--body); color: var(--ink);
  background: var(--surface); border: 2px solid var(--ink); border-radius: 999px;
  transition: box-shadow .2s var(--ease), border-color .2s var(--ease);
  appearance: none;
}
.input::placeholder { color: #8a8580; }
.input:focus { outline: none; box-shadow: 0 0 0 4px rgba(17,17,17,.14); }
.input:focus-visible { outline: none; }
.input[aria-invalid="true"] { border-color: var(--tomate-deep); box-shadow: 0 0 0 4px rgba(217,53,43,.14); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 56px; padding: 0 28px; border-radius: 999px;
  font: 900 17px/1 var(--display); letter-spacing: -0.01em;
  text-decoration: none; cursor: pointer; border: 2px solid var(--ink);
  transition: transform .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease), opacity .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { box-shadow: 0 8px 22px rgba(17,17,17,.22); transform: translateY(-1px); }
.btn-secondary { background: var(--surface); color: var(--ink); }
.btn-secondary:hover { background: var(--surface-soft); }
.btn[disabled] { opacity: .55; cursor: progress; transform: none; box-shadow: none; }
.btn-block { width: 100%; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-msg { min-height: 24px; margin-top: 12px; font-weight: 600; font-size: 16px; }
.form-msg.is-ok { display: flex; align-items: center; gap: 8px; }
.form-msg.is-ok::before {
  content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--tomate);
}
.form-msg.is-error { color: var(--tomate-deep); }
.waitlist.is-done .field-row { display: none; }

.soon {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 20px;
  font-size: 15px; font-weight: 600; color: var(--ink-muted);
}
.soon::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--tomate); }

/* Points forts */
.features { padding: 16px 0 72px; }
.features h2 { font-size: clamp(28px, 7vw, 40px); line-height: 1.08; margin-bottom: 24px; max-width: 16ch; }
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.feature {
  border: 2px solid var(--ink); border-radius: var(--radius-lg);
  padding: 20px 20px 22px; display: flex; gap: 16px; align-items: center;
  background: var(--surface);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.feature:hover, .js .feature.reveal.is-in:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(17,17,17,.08); }
.feature img { width: 88px; flex: none; }
.feature h3 { font-size: 21px; line-height: 1.15; }
.feature p { margin-top: 6px; color: var(--ink-muted); font-size: 16px; line-height: 1.4; }

/* Pied de page */
.site-footer { border-top: 2px solid var(--line); padding: 28px 0 36px; font-size: 15px; }
.site-footer .wrap { display: flex; flex-direction: column; gap: 14px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; margin: 0; padding: 0; }
.footer-links a, .text-link {
  font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px;
  text-underline-offset: 4px; text-decoration-color: var(--line);
  transition: text-decoration-color .2s var(--ease);
}
.footer-links a:hover, .text-link:hover { text-decoration-color: var(--ink); }
.footer-meta { color: var(--ink-muted); }

/* Invitation */
.invite { padding: 8px 0 56px; text-align: center; }
.invite .wrap { max-width: 520px; }
.invite-wuv { width: 176px; margin: 0 auto 8px; transform-origin: 50% 90%; }
.invite h1 { font-size: clamp(34px, 9.5vw, 48px); line-height: 1.05; letter-spacing: -0.03em; }
.invite .lead { margin-top: 12px; font-size: 18px; color: var(--ink-muted); }
.code-card {
  margin: 28px auto 0; border: 2px solid var(--ink); border-radius: var(--radius-lg);
  padding: 20px 16px; display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.code-label { font-size: 14px; font-weight: 600; color: var(--ink-muted); }
.code {
  font-family: var(--display); font-weight: 900; letter-spacing: 0.01em;
  font-size: clamp(40px, 13vw, 60px); line-height: 1; white-space: nowrap;
  user-select: all; -webkit-user-select: all;
}
.btn-copy {
  min-height: 44px; padding: 0 20px; border: 0; border-radius: 999px;
  background: var(--tomate); color: var(--ink);
  font: 900 16px/1 var(--display); cursor: pointer;
  transition: transform .2s var(--ease), background-color .2s var(--ease);
}
.btn-copy:hover { background: #ff6f64; }
.btn-copy:active { transform: scale(.96); }
.copy-status { min-height: 20px; font-size: 14px; font-weight: 600; }
.copy-status:empty { min-height: 0; margin-top: -14px; }
.invite .btn-primary { margin-top: 20px; }
.invite-later { margin-top: 32px; color: var(--ink); font-size: 16px; line-height: 1.5; text-align: left; }
.invite .waitlist { margin: 16px auto 0; text-align: left; }
.invite-error { margin-top: 24px; padding: 20px; border-radius: var(--radius-lg); background: var(--surface-soft); text-align: left; }
.invite-error h2 { font-size: 22px; line-height: 1.15; margin-bottom: 8px; }
.invite-error p { color: var(--ink-muted); }
[hidden] { display: none !important; }

/* Pages simples */
.page { padding: 24px 0 64px; }
.page .wrap { max-width: 720px; }
.page h1 { font-size: clamp(34px, 9vw, 52px); line-height: 1.05; margin-bottom: 20px; }
.page h2 { font-size: 22px; line-height: 1.2; margin: 32px 0 10px; }
.page h3 { font-family: var(--body); font-weight: 700; font-size: 17px; line-height: 1.3; letter-spacing: 0; margin: 20px 0 6px; }
.page p, .page li { color: #2a2826; }
.page p + p { margin-top: 12px; }
.page ul, .page ol { padding-left: 20px; margin: 8px 0 0; }
.page li + li { margin-top: 6px; }
.page-date { font-size: 15px; font-weight: 600; color: var(--ink-muted); margin-bottom: 16px; }
.page h2:target, .page h3:target { scroll-margin-top: 16px; }

/* Pages légales : résumé et sommaire */
.summary { margin-top: 20px; padding: 18px 20px 20px; border: 2px solid var(--ink); border-radius: var(--radius-lg); }
.summary-title { font-family: var(--display); font-size: 19px; line-height: 1.2; margin-bottom: 8px; }
.summary ul { margin-top: 0; }
.toc { margin-top: 20px; padding: 16px 20px; border-radius: var(--radius-lg); background: var(--surface-soft); }
.toc ol { margin: 0; padding-left: 22px; columns: 1; }
.toc li { margin: 0; padding: 3px 0; font-size: 15px; }
.toc-extra { margin-top: 10px; padding-top: 10px; border-top: 2px solid var(--line); font-size: 15px; }
.toc a { font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; text-decoration-color: var(--line); transition: text-decoration-color .2s var(--ease); }
.toc a:hover { text-decoration-color: var(--ink); }
@media (min-width: 560px) { .toc ol { columns: 2; column-gap: 32px; } }
.notfound { text-align: center; }
.notfound img { width: 190px; margin: 8px auto 12px; }
.notfound p { color: var(--ink-muted); margin-bottom: 24px; }

/* Animations d'entrée */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes pop { 0% { opacity: 0; transform: translateY(18px) scale(.94); } 100% { opacity: 1; transform: none; } }
@keyframes wave { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-5deg); } 40% { transform: rotate(4deg); } 60% { transform: rotate(-2deg); } }
.rise { animation: rise .6s var(--ease) both; }
.d1 { animation-delay: .06s; } .d2 { animation-delay: .14s; } .d3 { animation-delay: .22s; } .d4 { animation-delay: .3s; }
.hero-wuvs img { animation: pop .7s var(--ease) both; }
.hero-wuvs .wuv-b { animation-delay: .12s; }
.hero-wuvs .wuv-a { animation-name: pop-a; }
.hero-wuvs .wuv-b { animation-name: pop-b; }
@keyframes pop-a { from { opacity: 0; transform: rotate(-4deg) translate(8%, 18px) scale(.94); } to { opacity: 1; transform: rotate(-4deg) translateX(8%); } }
@keyframes pop-b { from { opacity: 0; transform: rotate(5deg) translate(-8%, 18px) scale(.94); } to { opacity: 1; transform: rotate(5deg) translateX(-8%); } }
.invite-wuv { animation: pop .7s var(--ease) both, wave 1.6s ease-in-out .8s 1; }
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease), box-shadow .3s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Écrans plus larges */
@media (min-width: 560px) {
  .field-row { flex-direction: row; }
  .field-row .input { flex: 1; }
  .field-row .btn { flex: none; }
  .feature-list { grid-template-columns: 1fr; }
}
@media (min-width: 880px) {
  :root { --gutter: 40px; }
  .site-header { padding-top: 28px; }
  .logo img { width: 156px; }
  .hero { padding: 48px 0 88px; }
  .hero-grid { grid-template-columns: 1.15fr 1fr; gap: 48px; }
  .hero-wuvs { max-width: 420px; }
  .hero h1 { font-size: 62px; }
  .hero .lead { font-size: 21px; }
  .feature-list { grid-template-columns: repeat(3, 1fr); }
  .feature { flex-direction: column; align-items: flex-start; padding: 24px; }
  .feature img { width: 132px; }
  .feature:hover, .js .feature.reveal.is-in:hover { transform: translateY(-4px); }
  .site-footer .wrap { flex-direction: row; justify-content: space-between; align-items: center; }
}
