/* Couleurs et échelle reprises de l'app (app/src/ui/theme.ts). */
:root {
  --yellow: #FEE402; --violet: #6615FC; --pink: #FB1A51; --blue: #0076FD;
  --bg: #000000; --surface: #161616; --surface2: #232323; --line: #2C2C2C;
  --text: #FFFFFF; --text2: #9B9B9B;
  --radius: 24px;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  .doc { --bg: #FFFFFF; --surface: #F2F2F4; --surface2: #E8E8EC; --line: #E2E2E6; --text: #000000; --text2: #6E6E73; color-scheme: light; }
}

* { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg); color: var(--text);
  font-family: 'Figtree', -apple-system, system-ui, sans-serif; font-weight: 500;
  font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
.wrap { max-width: 1080px; margin: 0 auto; padding-inline: 20px; }

/* En-tête */
.top { display: flex; align-items: center; justify-content: space-between; padding-block: 20px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 900; font-size: 22px; letter-spacing: -0.02em; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.top nav { display: flex; gap: 20px; font-weight: 700; font-size: 15px; }
.top nav a { text-decoration: none; color: var(--text2); }
.top nav a:hover { color: var(--text); }

/* Bouton pilule, comme dans l'app */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 56px; padding: 0 28px; border-radius: 28px;
  background: var(--yellow); color: #000; font-weight: 800; font-size: 17px; text-decoration: none;
}
.pill:active { transform: scale(0.98); }
.pill svg { width: 20px; height: 20px; }

/* Accueil */
.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; padding-block: 40px 72px; }
.hero h1 { font-weight: 900; font-size: clamp(44px, 7vw, 76px); line-height: 0.98; letter-spacing: -0.035em; }
.hero p.lead { color: var(--text2); font-size: 20px; margin: 20px 0 32px; max-width: 30ch; }
.hero .small { color: var(--text2); font-size: 14px; margin-top: 14px; }
/* Le téléphone tient dans la hauteur de l'écran (capture 603 x 1311) : le bouton reste visible sur un portable. */
.phone { position: relative; justify-self: center; width: min(320px, 78vw, calc((100svh - 150px) * 0.45)); }
.phone img.screen { width: 100%; height: auto; border-radius: 44px; border: 8px solid #1c1c1c; }
.phone .sticker { position: absolute; width: 30%; height: auto; aspect-ratio: 1; border-radius: 26%; padding: 2.5%; }
.phone .s1 { background: var(--violet); left: -15%; top: 44%; transform: rotate(-8deg); }
.phone .s2 { background: var(--pink); right: -12%; bottom: 18%; transform: rotate(7deg); }

.hero .ctas { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.hero-qr { display: flex; align-items: center; gap: 12px; color: var(--text2); font-size: 14px; font-weight: 700; line-height: 1.3; }
.hero-qr img { width: 72px; height: 72px; background: #fff; padding: 6px; border-radius: 12px; }
/* Un QR ne sert qu'à l'écran d'un ordinateur : masqué sur téléphone et tablette. */
@media (hover: none), (pointer: coarse) { .hero-qr { display: none; } }

h2 { font-weight: 900; font-size: clamp(32px, 4.5vw, 48px); line-height: 1.02; letter-spacing: -0.03em; margin-bottom: 28px; }
section { padding-block: 48px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tile { border-radius: var(--radius); padding: 24px; min-height: 220px; display: flex; flex-direction: column; justify-content: space-between; }
.tile .n { font-weight: 900; font-size: 15px; opacity: 0.8; }
.tile h3 { font-weight: 900; font-size: 30px; line-height: 1.05; letter-spacing: -0.02em; margin: 40px 0 8px; }
.tile p { font-weight: 600; font-size: 16px; line-height: 1.4; }
.y { background: var(--yellow); color: #000; }
.v { background: var(--violet); color: #fff; }
.p { background: var(--pink); color: #fff; }
.b { background: var(--blue); color: #fff; }

.groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.group { border-radius: var(--radius); padding: 20px 20px 20px 24px; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 128px; }
.group span { display: block; font-weight: 900; font-size: 28px; letter-spacing: -0.02em; line-height: 1.1; }
.group small { display: block; font-weight: 600; font-size: 14px; opacity: 0.85; margin-top: 4px; }
/* Petite carte blanche, comme les tuiles de groupe de l'app. */
.mini { flex: none; width: 112px; min-height: 76px; background: #fff; color: #000; border-radius: 14px; padding: 10px 12px; transform: rotate(5deg); font-weight: 900; font-size: 14px; line-height: 1.15; box-shadow: 0 6px 16px rgba(0,0,0,0.25); }
.mini b { display: block; font-weight: 800; font-size: 9px; letter-spacing: 0.08em; color: #6E6E73; margin-bottom: 6px; }

.packs { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.packs .lead { color: var(--text2); font-size: 20px; margin: -8px 0 24px; max-width: 32ch; }
.packs .small { color: var(--text2); font-size: 14px; margin-top: 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; max-width: 520px; }
.chip { border-radius: 999px; padding: 8px 16px; font-weight: 800; font-size: 15px; }

.promise { background: var(--surface); border-radius: 32px; padding: 40px; display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; }
.promise p { color: var(--text2); font-size: 18px; max-width: 46ch; }
.avatars { display: grid; grid-template-columns: repeat(3, 72px); gap: 10px; }
.avatars img { width: 72px; height: 72px; border-radius: 20px; padding: 6px; }

.cta { text-align: center; padding-block: 72px 40px; }
.cta h2 { margin-bottom: 24px; }

footer { border-top: 1px solid var(--line); padding: 28px 0 48px; margin-top: 40px; color: var(--text2); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 12px 20px; }
footer a { text-decoration: none; font-weight: 700; }
footer a:hover { color: var(--text); }

/* Pages courtes centrées (invitation, redirection vers le store) */
.center { max-width: 440px; margin: 0 auto; padding: 24px 20px 48px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.center h1 { font-weight: 900; font-size: clamp(36px, 11vw, 44px); line-height: 1; letter-spacing: -0.03em; }
.center .lead { color: var(--text2); font-size: 18px; margin: 12px 0 28px; }
.avatars-row { display: flex; justify-content: center; gap: 10px; margin: 16px 0 28px; }
.avatars-row img { width: 64px; height: 64px; border-radius: 18px; padding: 6px; }
.qr { display: flex; flex-direction: column; align-items: center; gap: 12px; margin: 8px 0 24px; color: var(--text2); font-weight: 700; font-size: 15px; }
.qr img { background: #fff; padding: 12px; border-radius: 20px; box-sizing: content-box; }
[hidden] { display: none !important; }

/* Pages de texte (confidentialité, conditions, support, suppression) */
.doc main { max-width: 720px; margin: 0 auto; padding: 24px 20px 40px; }
.doc h1 { font-weight: 900; font-size: clamp(36px, 6vw, 52px); line-height: 1; letter-spacing: -0.03em; margin: 24px 0 8px; }
.doc .meta { color: var(--text2); font-size: 15px; margin-bottom: 32px; }
.doc h2 { font-size: 24px; margin: 40px 0 12px; letter-spacing: -0.01em; }
.doc h3 { font-weight: 800; font-size: 18px; margin: 24px 0 8px; }
.doc p, .doc li { color: var(--text); }
.doc p + p { margin-top: 12px; }
.doc ul, .doc ol { padding-left: 22px; margin: 10px 0; }
.doc li + li { margin-top: 6px; }
.doc .box { background: var(--surface); border-radius: 20px; padding: 20px 22px; margin: 20px 0; }
.doc table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 15px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.doc th { font-weight: 800; }
.doc .faq h3 { margin-top: 28px; }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; padding-block-start: 16px; gap: 40px; }
  .steps, .groups, .packs { grid-template-columns: 1fr; }
  .packs { gap: 32px; }
  .tile { min-height: 0; }
  .tile h3 { margin-top: 24px; }
  .promise { grid-template-columns: 1fr; padding: 28px 24px; }
  .phone { width: min(300px, 72vw); }
  .phone .s1 { left: -8%; } .phone .s2 { right: -6%; }
  .hero-qr { display: none; }
  .top nav { gap: 14px; }
}
