/* Nafsapp — site public. Mobile d'abord, thème clair.
   Palette : le bleu de l'espace Amis pour l'identité du site ; chaque espace garde SES couleurs
   (mêmes valeurs que lib/data/spaces.dart) dans sa propre section. */
:root {
  --line: rgba(35, 28, 41, 0.1);
  --sh: 0 1px 2px rgba(15, 34, 51, .06), 0 14px 34px -16px rgba(15, 34, 51, .3);
  --shp: 0 1px 2px rgba(15, 34, 51, .05), 0 16px 36px -16px color-mix(in srgb, var(--p) 70%, transparent);
  --paper: #faf6f3;
  --ink: #231c29;
  --ink-soft: #5f5868;
  --b900: #0f2233;
  --b800: #173c57;
  --b600: #3b82c4;
  --b100: #e3effa;
  --radius: 26px;
  /* couleurs du « bloc courant » : redéfinies par .sp-* */
  --p: var(--b600);
  --s: var(--b100);
  --g1: var(--b800);
  --g2: var(--b600);
}
.sp-couple { --p: #c43d63; --s: #fbe9ee; --g1: #7a1f3d; --g2: #c43d63; }
.sp-crush { --p: #6e4fb8; --s: #efe8fb; --g1: #2e2359; --g2: #6e4fb8; }
.sp-amis { --p: #3b82c4; --s: #e3effa; --g1: #173c57; --g2: #3b82c4; }
.sp-cercle { --p: #1f7a68; --s: #e3f3ef; --g1: #0e4a3e; --g2: #1f7a68; }
.sp-famille { --p: #7d6aa6; --s: #f2eef7; --g1: #4a3d66; --g2: #7d6aa6; }

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: 'Public Sans', system-ui, -apple-system, 'Segoe UI', sans-serif; color: var(--ink); background: var(--paper); line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3, h4 { font-family: 'Fraunces', Georgia, serif; line-height: 1.08; margin: 0; letter-spacing: -0.015em; }
p { margin: 0; }
a { color: inherit; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }
.wrap { width: min(1120px, 100% - 36px); margin-inline: auto; }
.hidden { display: none !important; }

/* ---------- briques : bouton, « sticker », bulles ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line); border-radius: 999px; padding: 14px 24px; font: 800 16px 'Public Sans', sans-serif; background: var(--p); color: #fff; text-decoration: none; cursor: pointer; box-shadow: var(--sh); transition: transform .12s ease, box-shadow .12s ease; }
.btn:active { transform: translate(3px, 3px); box-shadow: var(--sh); }
.btn:disabled { opacity: .55; cursor: default; }
.btn.light { background: #fff; color: var(--ink); }
.btn.small { padding: 9px 16px; font-size: 14px; box-shadow: var(--sh); }
.sticker { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shp); }
.chip-tag { display: inline-block; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; font: 800 12px 'Public Sans', sans-serif; letter-spacing: .04em; text-transform: uppercase; background: var(--s); }
.bubble { display: inline-block; max-width: 86%; padding: 11px 15px; border-radius: 20px 20px 20px 6px; background: #fff; border: 1px solid var(--line); font-weight: 600; font-size: 14.5px; box-shadow: var(--shp); }
.bubble.me { border-radius: 20px 20px 6px 20px; background: var(--p); color: #fff; }

.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store { display: inline-flex; align-items: center; gap: 12px; padding: 10px 20px 10px 16px; border-radius: 18px; background: var(--ink); color: #fff; text-decoration: none; border: 1px solid var(--line); box-shadow: var(--shp); min-width: 178px; transition: transform .12s ease, box-shadow .12s ease; }
.store:active { transform: translate(3px, 3px); box-shadow: var(--shp); }
.store svg { width: 25px; height: 25px; flex: none; }
.store small { display: block; font-size: 10.5px; opacity: .78; line-height: 1.1; }
.store b { display: block; font-size: 16.5px; line-height: 1.2; }


/* ---------- hero (bleu Amis) ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--b100) 0%, var(--paper) 100%); padding: 24px 0 56px; }
.hero::before, .hero::after { content: ''; position: absolute; border-radius: 50%; z-index: 0; }
.hero::before { width: 420px; height: 420px; right: -160px; top: -120px; background: radial-gradient(circle at 35% 35%, #8fc0ea, var(--b600)); opacity: .5; }
.hero::after { width: 280px; height: 280px; left: -120px; bottom: -80px; background: radial-gradient(circle at 60% 40%, #fbe9ee, #e7b3c4); opacity: .65; }
.hero .wrap { position: relative; z-index: 1; display: grid; gap: 30px; }
.hero h1 { font-size: clamp(38px, 11vw, 66px); margin: 16px 0 14px; }
.hero h1 em { font-style: normal; background: linear-gradient(transparent 62%, #ffd9e2 62%); }
.hero .lead { font-size: 18px; color: var(--ink-soft); max-width: 520px; margin-bottom: 24px; }
.hero .note { margin-top: 16px; font-size: 13.5px; color: var(--ink-soft); font-weight: 600; }
.stage { position: relative; min-height: 440px; display: flex; justify-content: center; }
.stage .phone { transform: rotate(3deg); }
.float { position: absolute; z-index: 3; animation: bob 5s ease-in-out infinite; }
.f1 { left: 0; top: 40px; }
.f2 { right: 0; top: 190px; animation-delay: -1.7s; }
.f3 { left: 6px; bottom: 30px; animation-delay: -3.2s; }
@keyframes bob { 50% { transform: translateY(-9px); } }

/* ---------- téléphone + capture d'écran ---------- */
.phone { width: 236px; aspect-ratio: 9 / 18.6; border-radius: 38px; background: var(--ink); padding: 8px; border: 1px solid var(--line); box-shadow: var(--shp); position: relative; flex: none; }
.phone::before { content: ''; position: absolute; top: 13px; left: 50%; width: 72px; height: 19px; transform: translateX(-50%); background: var(--ink); border-radius: 0 0 13px 13px; z-index: 2; }
.screen { width: 100%; height: 100%; border-radius: 30px; overflow: hidden; background: var(--s); }
.screen img { width: 100%; height: 100%; object-fit: cover; }
.slot-empty { height: 100%; display: grid; place-items: center; text-align: center; padding: 18px; color: var(--ink-soft); font-size: 12.5px; font-weight: 700; background: repeating-linear-gradient(45deg, var(--s), var(--s) 10px, #fff 10px, #fff 20px); }
.slot-empty span { display: block; font-size: 28px; margin-bottom: 6px; }

/* ---------- jeux : bandeau défilant ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: var(--ink); color: #fff; padding: 12px 0; }
.marquee .track { display: flex; gap: 12px; width: max-content; animation: slide 42s linear infinite; }
.marquee span { flex: none; padding: 7px 15px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; font-weight: 700; font-size: 14px; white-space: nowrap; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
section { padding: 64px 0; }
.eyebrow { display: inline-block; font: 800 12.5px 'Public Sans', sans-serif; letter-spacing: .1em; text-transform: uppercase; color: var(--p); margin-bottom: 10px; }
.title { font-size: clamp(30px, 8vw, 50px); margin-bottom: 12px; }
.sub { color: var(--ink-soft); font-size: 17.5px; max-width: 620px; }

.steps { display: grid; gap: 18px; margin-top: 30px; counter-reset: s; }
.step { padding: 22px 22px 22px 76px; position: relative; }
.step::before { counter-increment: s; content: counter(s); position: absolute; left: 20px; top: 20px; width: 40px; height: 40px; border-radius: 50%; background: var(--p); color: #fff; font: 800 18px 'Public Sans', sans-serif; display: grid; place-items: center; border: 1px solid var(--line); }
.step h3 { font-size: 21px; margin-bottom: 4px; }
.step p { color: var(--ink-soft); font-size: 15.5px; }

/* un bloc par espace, à SES couleurs */
.space { background: var(--s); border-block: 1px solid var(--line); }
.space + .space { border-top: 0; }
.space .wrap { display: grid; gap: 30px; }
.space .head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.space .emo { width: 62px; height: 62px; border-radius: 20px; background: linear-gradient(135deg, var(--g1), var(--g2)); border: 1px solid var(--line); display: grid; place-items: center; font-size: 30px; box-shadow: var(--sh); flex: none; }
.space h2 { font-size: clamp(34px, 9vw, 56px); color: var(--g1); }
.space .thesis { font: 600 clamp(19px, 5vw, 24px) 'Fraunces', serif; line-height: 1.3; margin: 10px 0 20px; }
.space .trio { display: grid; gap: 12px; margin: 22px 0; }
.space .trio .sticker { padding: 15px 17px; box-shadow: var(--shp); }
.space .trio b { display: inline-block; margin-bottom: 3px; color: var(--p); font: 800 12px 'Public Sans', sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.space .trio p { font-size: 15px; }
.comps { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.comps span { padding: 7px 13px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 13px; font-weight: 700; }
.chat { display: grid; gap: 10px; margin-top: 22px; }
.chat .bubble:nth-child(even) { justify-self: end; }
.visual { display: flex; justify-content: center; padding: 6px 0 14px; }
.visual .phone { transform: rotate(-2deg); }
.space:nth-of-type(even) .visual .phone { transform: rotate(2deg); }

.cards3 { display: grid; gap: 16px; margin-top: 30px; }
.mini { padding: 22px; }
.mini .ic { font-size: 30px; margin-bottom: 8px; }
.mini h3 { font-size: 21px; margin-bottom: 4px; }
.mini p { color: var(--ink-soft); font-size: 15px; }

.shots { display: flex; gap: 18px; overflow-x: auto; padding: 10px 6px 22px; margin-top: 24px; scroll-snap-type: x mandatory; }
.shots figure { margin: 0; flex: none; scroll-snap-align: center; text-align: center; }
.shots .phone { width: 190px; }
.shots figcaption { margin-top: 14px; font-weight: 800; font-size: 14px; }

.faq .wrap { max-width: 760px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px 20px; margin-bottom: 12px; box-shadow: var(--shp); }
.faq summary { font-weight: 800; cursor: pointer; }
.faq p { color: var(--ink-soft); margin-top: 8px; }

.final { background: linear-gradient(135deg, var(--b800), var(--b600)); color: #fff; border: 1px solid var(--line); border-radius: 34px; padding: 44px 22px; text-align: center; box-shadow: var(--sh); }
.final .title { color: #fff; }
.final .sub { color: rgba(255, 255, 255, .92); margin-inline: auto; }
.final .stores { justify-content: center; margin-top: 24px; }
.final .store { background: #fff; color: var(--ink); box-shadow: var(--sh); }
footer { padding: 30px 0 110px; color: var(--ink-soft); font-size: 13.5px; text-align: center; }

/* ---------- page « message anonyme » (bleu Amis, thème clair) ---------- */
body.compose { background: radial-gradient(120% 60% at 50% 0%, var(--b100) 0%, var(--paper) 70%) no-repeat, var(--paper); min-height: 100vh; }
.compose main { padding: 6px 0 70px; }
.panel { width: min(540px, 100% - 28px); margin: 0 auto; }
.app-banner { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 9px 12px; margin-bottom: 16px; box-shadow: var(--shp); }
.app-banner img { width: 40px; height: 40px; border-radius: 11px; border: 1px solid var(--line); }
.app-banner p { flex: 1; font-size: 13.5px; font-weight: 700; line-height: 1.25; }
.ask-wrap { padding-top: 34px; }
.ask { background: linear-gradient(135deg, var(--b800), var(--b600)); color: #fff; border: 1px solid var(--line); border-radius: 30px; padding: 26px 22px 28px; text-align: center; box-shadow: var(--sh); }
.ask .avatar { width: 66px; height: 66px; border-radius: 50%; background: #fff; color: var(--b800); border: 1px solid var(--line); font: 700 30px 'Fraunces', serif; display: grid; place-items: center; margin: -58px auto 12px; box-shadow: var(--sh); }
.ask .who { font-size: 14px; font-weight: 700; opacity: .92; }
.ask .q { font: 700 clamp(25px, 7vw, 33px) 'Fraunces', serif; line-height: 1.18; margin-top: 6px; }
.form { background: #fff; border: 1px solid var(--line); border-radius: 26px; padding: 14px 16px 16px; margin-top: 22px; box-shadow: var(--shp); }
.form textarea { width: 100%; min-height: 132px; resize: none; border: 0; outline: 0; font: 600 18px/1.45 'Public Sans', sans-serif; color: var(--ink); padding: 6px 2px; background: transparent; }
.form textarea::placeholder { color: #a39fb5; }
.form .row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 6px; }
.count { font-size: 12px; color: #8b8697; font-weight: 700; }
.lock { display: flex; gap: 10px; align-items: center; justify-content: center; margin-top: 18px; font-size: 13px; color: var(--ink-soft); font-weight: 600; text-align: center; }
.chips-title { margin: 24px 0 10px; font: 800 12px 'Public Sans', sans-serif; letter-spacing: .08em; text-transform: uppercase; text-align: center; color: var(--ink-soft); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.chip { border: 1px solid var(--line); background: #fff; cursor: pointer; border-radius: 999px; padding: 8px 14px; font: 700 12.5px 'Public Sans', sans-serif; color: var(--ink); }
.chip.on { background: var(--b600); color: #fff; }
.err { background: #ffe9ec; color: #8a1c2c; border: 2px solid #8a1c2c; border-radius: 14px; padding: 10px 14px; margin-top: 14px; font-size: 14px; font-weight: 700; text-align: center; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.state { text-align: center; padding: 70px 16px; }
.state h2 { font-size: 30px; margin-bottom: 8px; }
.state p { color: var(--ink-soft); }
.state .btn { margin-top: 18px; }
.spin { width: 38px; height: 38px; border-radius: 50%; border: 4px solid var(--b100); border-top-color: var(--b600); margin: 0 auto 16px; animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.sent { text-align: center; padding: 30px 22px; }
.sent .tick { width: 70px; height: 70px; border-radius: 50%; background: var(--b600); color: #fff; border: 1px solid var(--line); font-size: 36px; display: grid; place-items: center; margin: 0 auto 12px; box-shadow: var(--sh); animation: pop .45s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes pop { from { transform: scale(.4); } }
.sent h2 { font-size: 28px; }
.sent .sub2 { color: var(--ink-soft); margin-top: 6px; font-weight: 600; }
.next { margin-top: 34px; }
.next > h3 { font-size: 27px; text-align: center; }
.next > .lead { color: var(--ink-soft); text-align: center; margin: 8px 0 14px; }
.rail { display: flex; gap: 14px; overflow-x: auto; padding: 8px 14px 22px; margin-inline: -14px; scroll-snap-type: x mandatory; }
.sp-card { flex: none; width: 250px; scroll-snap-align: center; background: var(--s); border: 1px solid var(--line); border-radius: 26px; padding: 18px; box-shadow: var(--shp); }
.sp-card .emo { width: 48px; height: 48px; border-radius: 16px; background: linear-gradient(135deg, var(--g1), var(--g2)); border: 1px solid var(--line); display: grid; place-items: center; font-size: 24px; margin-bottom: 10px; }
.sp-card h4 { font-size: 24px; color: var(--g1); }
.sp-card .tag { font-size: 11.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--p); margin: 2px 0 8px; }
.sp-card p { font-size: 14px; }
.next .stores { flex-direction: column; margin-top: 6px; }
.next .store { justify-content: center; }
.again { display: block; margin: 22px auto 0; background: none; border: 0; color: var(--ink); font: 800 14px 'Public Sans', sans-serif; text-decoration: underline; cursor: pointer; }

/* ---------- grands écrans ---------- */
@media (min-width: 760px) {
  section { padding: 92px 0; }
  .hero { padding: 40px 0 90px; }
  .hero .wrap { grid-template-columns: 1.1fr .9fr; align-items: center; gap: 40px; }
  .stage { min-height: 560px; }
  .phone { width: 262px; }
  .steps, .cards3 { grid-template-columns: repeat(3, 1fr); }
  .space .wrap { grid-template-columns: 1.1fr .9fr; align-items: center; gap: 56px; }
  .space:nth-of-type(even) .wrap .visual { order: -1; }
  .space .trio { grid-template-columns: repeat(3, 1fr); }
  .dock { display: none; }
  footer { padding-bottom: 40px; }
  .shots { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* ================= v2 : en-tête flottant, navigation, révélations ================= */
.top { position: sticky; top: 0; z-index: 50; padding: 10px 0 0; pointer-events: none; }
.top .bar { pointer-events: auto; display: flex; align-items: center; gap: 10px; height: 60px; padding: 0 10px 0 14px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shp); transition: box-shadow .3s, transform .3s; }
.top.stuck .bar { box-shadow: var(--shp), 0 14px 30px rgba(15, 34, 51, .14); }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; font: 700 20px 'Fraunces', serif; margin-right: auto; }
.brand img { width: 36px; height: 36px; border-radius: 11px; border: 1px solid var(--line); }
.links { display: none; gap: 4px; }
.links a { text-decoration: none; font-weight: 800; font-size: 14px; padding: 8px 14px; border-radius: 999px; border: 2px solid transparent; transition: background .15s; }
.links a:hover { background: var(--b100); }
.links a.on { border-color: var(--ink); background: var(--c, var(--b100)); }
.top .btn.small { white-space: nowrap; }
.burger { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff; cursor: pointer; display: grid; place-content: center; gap: 5px; padding: 0; }
.burger i { display: block; width: 18px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: transform .25s, opacity .2s; }
.burger[aria-expanded='true'] i:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger[aria-expanded='true'] i:nth-child(2) { opacity: 0; }
.burger[aria-expanded='true'] i:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
.progress { pointer-events: none; height: 4px; margin: 6px 22px 0; border-radius: 4px; background: transparent; overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; background: var(--hp, var(--b600)); border-radius: 4px; transition: background .3s; }
.sheet { position: fixed; inset: 0; z-index: 45; background: rgba(15, 34, 51, .45); opacity: 0; pointer-events: none; transition: opacity .25s; }
.sheet.on { opacity: 1; pointer-events: auto; }
.sheet nav { position: absolute; left: 14px; right: 14px; top: 84px; background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: 14px; box-shadow: var(--shp); transform: translateY(-14px) scale(.98); transition: transform .25s; display: grid; gap: 6px; }
.sheet.on nav { transform: none; }
.sheet nav a.l { display: flex; align-items: center; gap: 12px; text-decoration: none; font: 700 20px 'Fraunces', serif; padding: 12px 14px; border-radius: 18px; }
.sheet nav a.l span { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: var(--s); border: 1px solid var(--line); font-size: 18px; }
.sheet nav .stores { margin-top: 8px; }
.sheet nav .store { flex: 1; min-width: 0; justify-content: center; }
.dock { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 16px; background: var(--ink); color: #fff; border-radius: 22px; box-shadow: 0 10px 30px rgba(15, 34, 51, .35); transform: translateY(150%); transition: transform .3s ease; }
.dock.on { transform: none; }
.dock p { flex: 1; font-weight: 700; font-size: 14px; line-height: 1.25; }
.dock .btn { box-shadow: none; border-color: #fff; padding: 10px 18px; font-size: 14px; background: var(--b600); }

/* hero : mot qui tourne, pastilles, stats */
.rot { display: inline-block; min-width: 1ch; font-style: normal; background: linear-gradient(transparent 62%, #ffd9e2 62%); animation: rotin .45s ease; }
@keyframes rotin { from { opacity: 0; transform: translateY(10px) rotate(-2deg); } }
.hero { padding-top: 16px; }
.sticker-emoji { position: absolute; z-index: 2; font-size: 40px; filter: drop-shadow(3px 3px 0 var(--ink)); animation: bob 6s ease-in-out infinite; }
.e1 { right: 6%; top: 8px; } .e2 { left: 2%; top: 46%; animation-delay: -2s; } .e3 { right: 0; bottom: 8%; animation-delay: -4s; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 26px; }
.stats div { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 10px 8px; text-align: center; box-shadow: var(--shp); }
.stats b { display: block; font: 700 26px 'Fraunces', serif; line-height: 1; }
.stats span { font-size: 11.5px; font-weight: 700; color: var(--ink-soft); }

/* barre des espaces : navigation colorée */
.spacebar { position: sticky; top: 76px; z-index: 20; padding: 12px 0 8px; background: linear-gradient(var(--paper) 70%, transparent); }
.spacebar .rail2 { display: flex; gap: 10px; overflow-x: auto; padding: 4px 18px 8px; scrollbar-width: none; justify-content: flex-start; }
.spacebar .rail2::-webkit-scrollbar { display: none; }
.spacebar a { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--s); text-decoration: none; font-weight: 800; font-size: 14px; box-shadow: var(--shp); transition: transform .12s; }
.spacebar a:active { transform: translate(2px, 2px); box-shadow: var(--shp); }
.spacebar a b { font-size: 18px; font-weight: 400; }

/* jeux : deux rangées en sens opposés */
.games2 { background: var(--ink); border-block: 1px solid var(--line); padding: 14px 0; display: grid; gap: 10px; overflow: hidden; }
.games2 .track { display: flex; gap: 10px; width: max-content; animation: slide 46s linear infinite; }
.games2 .track.rev { animation-direction: reverse; animation-duration: 58s; }
.games2 .track span { flex: none; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; font-weight: 800; font-size: 14px; background: var(--s); color: var(--ink); white-space: nowrap; box-shadow: var(--shp); }

/* blocs d'espace : numéro, filigrane, coins */
.space { position: relative; overflow: hidden; }
.space::before { content: attr(data-emoji); position: absolute; right: -30px; top: 24px; font-size: 220px; opacity: .08; transform: rotate(-12deg); pointer-events: none; line-height: 1; }
.space .idx { font: 800 13px 'Public Sans', sans-serif; letter-spacing: .1em; color: var(--p); margin-left: auto; align-self: flex-start; }
.space .wrap { position: relative; }

/* révélation au défilement */
.js .rv { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .8, .2, 1); }
.js .rv.in { opacity: 1; transform: none; }
.js .rv.d1 { transition-delay: .08s; } .js .rv.d2 { transition-delay: .16s; }

/* pied de page */
.foot { background: var(--ink); color: #fff; border-top: 1px solid var(--line); padding: 40px 0 120px; margin-top: 0; text-align: left; }
.foot .wrap { display: grid; gap: 26px; }
.foot .brand { color: #fff; margin: 0 0 8px; }
.foot p { color: rgba(255, 255, 255, .72); font-size: 14px; max-width: 360px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.foot nav a { color: #fff; text-decoration: none; font-weight: 700; font-size: 14px; opacity: .85; }
.foot small { color: rgba(255, 255, 255, .55); }

@media (min-width: 900px) {
  .links { display: flex; }
  .burger { display: none; }
  .top .bar { padding-right: 12px; }
  .spacebar .rail2 { justify-content: center; }
  .sticker-emoji { font-size: 54px; }
  .stats b { font-size: 34px; }
  .foot { padding-bottom: 50px; }
  .foot .wrap { grid-template-columns: 1.2fr 1fr; align-items: end; }
  .foot nav { justify-content: flex-end; }
}

/* ================= v3 : sobre, net, haut de gamme ================= */
body { font-size: 16px; }
h1, h2, h3, h4 { letter-spacing: -0.02em; }
.wrap { width: min(1120px, 100% - 40px); }

/* boutons : dégradé plein, lueur douce, pas de contour noir */
.btn { border: 0; background: linear-gradient(135deg, var(--g2), var(--g1)); box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--g1) 80%, transparent); padding: 15px 26px; font-weight: 700; letter-spacing: .005em; }
.btn:active { transform: scale(.98); box-shadow: 0 6px 14px -8px color-mix(in srgb, var(--g1) 80%, transparent); }
.btn.light { background: #fff; color: var(--ink); border: 1px solid var(--line); box-shadow: var(--sh); }
.btn.small { padding: 10px 18px; font-size: 14px; box-shadow: 0 8px 18px -8px color-mix(in srgb, var(--g1) 80%, transparent); }
.store { border: 0; box-shadow: 0 12px 26px -12px rgba(15, 34, 51, .55); background: #14111c; }
.store:active { transform: scale(.98); }
.final .store { background: #fff; color: var(--ink); }

/* en-tête : verre dépoli, filet fin */
.top { padding-top: 10px; }
.top .bar { background: rgba(255, 255, 255, .78); border: 1px solid rgba(35, 28, 41, .08); box-shadow: 0 8px 30px -12px rgba(15, 34, 51, .25); height: 58px; padding-left: 12px; }
.brand img { border: 0; border-radius: 10px; box-shadow: 0 4px 10px -4px rgba(42, 68, 242, .5); }
.links a.on { border-color: transparent; background: var(--c, var(--b100)); }
.burger { border: 1px solid var(--line); background: rgba(255, 255, 255, .9); }
.progress { margin: 7px 26px 0; height: 3px; }
.sheet nav { border: 1px solid var(--line); box-shadow: 0 30px 60px -20px rgba(15, 34, 51, .45); }
.sheet nav a.l span { border: 0; }
.dock { background: rgba(20, 17, 28, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }

/* hero : plus aéré, plus calme */
.hero { padding: 18px 0 56px; background: radial-gradient(120% 70% at 85% 0%, #cfe3f6 0%, transparent 60%), radial-gradient(90% 60% at 0% 100%, #fde9ef 0%, transparent 60%), var(--paper); }
.hero::before, .hero::after { display: none; }
.hero h1 { font-size: clamp(36px, 10.4vw, 64px); line-height: 1.04; margin: 18px 0 16px; }
.rot, .hero h1 em { background: none; color: var(--b600); }
.hero .lead { font-size: 17px; line-height: 1.55; }
.chip-tag { border: 1px solid var(--line); background: rgba(255, 255, 255, .8); font-size: 11.5px; padding: 7px 13px; box-shadow: none; }
.sticker-emoji { display: none; }
.stats { gap: 10px; margin-top: 28px; }
.stats div { border: 1px solid var(--line); box-shadow: var(--sh); background: rgba(255, 255, 255, .8); border-radius: 18px; padding: 12px 6px; }
.stats b { color: var(--b800); }
.stage { min-height: 460px; }
.stage .phone { transform: rotate(0deg); margin-top: 8px; }
.float .bubble { box-shadow: var(--sh); border: 1px solid var(--line); font-size: 13.5px; }
.bubble { border: 1px solid var(--line); box-shadow: var(--sh); }
.bubble.me { background: linear-gradient(135deg, var(--g2), var(--g1)); border: 0; }

/* téléphones : cadre sombre fin, ombre portée douce */
.phone { border: 0; box-shadow: 0 30px 50px -22px rgba(15, 34, 51, .55), 0 0 0 1px rgba(255, 255, 255, .06) inset; background: #14111c; }
.visual .phone, .space:nth-of-type(even) .visual .phone { transform: none; }

/* cartes */
.sticker, .mini, .step { border: 1px solid var(--line); box-shadow: var(--sh); border-radius: 22px; }
.step { padding: 22px 22px 22px 78px; }
.step::before { border: 0; background: linear-gradient(135deg, var(--g2), var(--g1)); box-shadow: 0 8px 16px -8px color-mix(in srgb, var(--g1) 80%, transparent); }
.mini .ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--b100); font-size: 26px; margin-bottom: 14px; }

/* sections d'espace : fond teinté, titres sobres */
.space { border-block: 0; }
.space .emo { border: 0; box-shadow: 0 12px 24px -12px color-mix(in srgb, var(--g1) 85%, transparent); width: 58px; height: 58px; border-radius: 18px; }
.space h2 { color: var(--g1); }
.space .thesis { font-weight: 600; }
.space .trio .sticker { box-shadow: var(--sh); }
.comps span { border: 1px solid var(--line); background: rgba(255, 255, 255, .85); font-weight: 600; font-size: 13px; }
.space::before { opacity: .06; }

/* barre des espaces et jeux */
.spacebar a { border: 1px solid var(--line); box-shadow: var(--sh); background: #fff; font-weight: 700; }
.spacebar a b { filter: none; }
.games2 { background: #14111c; border: 0; }
.games2 .track span { border: 0; box-shadow: none; background: rgba(255, 255, 255, .08); color: #fff; font-weight: 600; }
.games2 .track span:nth-child(odd) { background: rgba(255, 255, 255, .14); }

.faq details { border: 1px solid var(--line); box-shadow: var(--sh); }
.final { border: 0; box-shadow: 0 30px 60px -24px rgba(23, 60, 87, .6); background: linear-gradient(135deg, var(--b800), var(--b600)); }

/* page d'envoi */
.app-banner { border: 1px solid var(--line); box-shadow: var(--sh); }
.app-banner img { border: 0; }
.ask { border: 0; box-shadow: 0 24px 50px -22px rgba(23, 60, 87, .7); }
.ask .avatar { border: 3px solid #fff; box-shadow: 0 8px 20px -8px rgba(15, 34, 51, .5); }
.form { border: 1px solid var(--line); box-shadow: var(--sh); }
.chip { border: 1px solid var(--line); box-shadow: none; font-weight: 600; }
.chip.on { background: var(--b600); border-color: var(--b600); }
.err { border-width: 1px; }
.sent { border: 1px solid var(--line); box-shadow: var(--sh); }
.sent .tick { border: 0; background: linear-gradient(135deg, var(--b600), var(--b800)); box-shadow: 0 12px 24px -10px rgba(23, 60, 87, .7); }
.sp-card { border: 1px solid var(--line); box-shadow: var(--shp); }
.sp-card .emo { border: 0; }
.foot { border: 0; }

@media (min-width: 900px) {
  .hero h1 { font-size: 64px; }
}

.rot { white-space: nowrap; }
.rot::after { content: "."; }

.space, section[id] { scroll-margin-top: 150px; }
#spaces { scroll-margin-top: 80px; }
