@font-face { font-family: "Unbounded"; font-weight: 700; font-display: swap;
  src: url("/fonts/unbounded-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC; }
@font-face { font-family: "Unbounded"; font-weight: 700; font-display: swap;
  src: url("/fonts/unbounded-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02AF, U+1E00-1EFF; }
/* Charte AfroPulse — logo n° 10 « Cauri » : terre cuite, or, crème, brun */
:root {
  --terracotta: #B93A22; --gold: #FFD166; --cream: #FAF3E3; --brown: #3B1D10;
  --bg: #1C0D07; --panel: #2A150C; --panel2: #3B1D10; --line: #5A3220;
  --text: var(--cream); --muted: #D2BFA8; --accent: var(--terracotta); --green: #5FD08F; --red: #FF8A75;
  --display: "Unbounded", system-ui, sans-serif;
  --nav: 62px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #000; color: var(--text);
  font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
#app { position: relative; max-width: 520px; height: 100dvh; margin: 0 auto; background: var(--bg); overflow: hidden; }
#view { height: calc(100dvh - var(--nav)); overflow-y: auto; }
#view.feed { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* navigation */
#nav { position: absolute; bottom: 0; left: 0; right: 0; height: var(--nav); display: flex; background: var(--bg);
  border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
#nav a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  font-size: 11px; color: var(--muted); }
#nav a span { line-height: 0; }
svg.i { flex: none; vertical-align: middle; }
.tile .e { color: var(--gold); line-height: 0; }
.acts .ico svg { filter: drop-shadow(0 1px 2px #000a); }
.acts .liked svg { fill: var(--gold); }
.card .noimg { color: var(--muted); }
#nav a.on { color: var(--gold); }
#nav a.plus span { background: var(--gold); color: var(--brown); width: 46px; height: 32px;
  border-radius: 10px; display: grid; place-items: center; font-weight: 700; }

/* fil vidéo */
.feedbar { position: absolute; top: 0; left: 0; right: 0; z-index: 5; display: flex; justify-content: center; padding-right: 120px !important; align-items: center;
  gap: 18px; padding: 14px 12px; background: linear-gradient(#000a, transparent); }
.feedbar a { font-weight: 600; color: #fffa; padding-bottom: 3px; border-bottom: 2px solid transparent; }
.feedbar a.on { color: #fff; border-color: var(--gold); }
.feedbar select { position: absolute; right: 10px; width: auto; max-width: 104px; background: #0008; border: 1px solid #fff4; border-radius: 8px; padding: 4px 6px; font-size: 13px; }
.feedbar .back { position: absolute; left: 10px; border: 0; font-size: 22px; }
.reel { height: 100%; overflow-y: scroll; scroll-snap-type: y mandatory; scrollbar-width: none; }
.reel::-webkit-scrollbar { display: none; }
.vid { position: relative; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; background: #000; }
.vid video { width: 100%; height: 100%; object-fit: cover; }
.vid .shade { position: absolute; inset: auto 0 0 0; height: 55%; background: linear-gradient(transparent, #000c); pointer-events: none; }
.vid .info { position: absolute; left: 12px; right: 76px; bottom: 14px; }
.vid .info .who { font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.vid .info p { margin: 6px 0; font-size: 15px; white-space: pre-wrap; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.vid .tags { display: flex; flex-wrap: wrap; gap: 6px; font-size: 12px; color: #fffc; }
.vid .tags span { background: #fff2; padding: 2px 8px; border-radius: 20px; }
.buy { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 8px 12px; border-radius: 12px;
  background: var(--gold); color: var(--brown); font-weight: 700; }
.buy img { width: 34px; height: 34px; border-radius: 8px; object-fit: cover; }
.buy small { display: block; font-weight: 500; }
.acts { position: absolute; right: 8px; bottom: 18px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.acts button, .acts a { background: none; border: 0; display: flex; flex-direction: column; align-items: center; font-size: 12px;
  text-shadow: 0 1px 3px #000; min-width: 48px; }
.acts .ico { font-size: 28px; line-height: 1.1; }
.acts .liked .ico { color: var(--gold); }
.avatar { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; background: var(--panel2); border: 2px solid #fff;
  display: grid; place-items: center; font-weight: 700; color: var(--gold); flex: none; }
.avatar.sm { width: 36px; height: 36px; border-width: 1px; font-size: 14px; }
.avatar.lg { width: 84px; height: 84px; font-size: 30px; }
.empty { height: 100%; display: grid; place-items: center; text-align: center; padding: 30px; color: var(--muted); }
.paused::after { content: "▶"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 64px; color: #fff9; pointer-events: none; }

/* pages */
.page { padding: 16px 14px 28px; }
.page h1 { font: 700 19px/1.25 var(--display); margin: 4px 0 14px; }
.wordmark { font: 700 26px/1 var(--display); color: var(--cream); letter-spacing: .01em; }
.wordmark span { color: var(--gold); }
.brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.brand img { border-radius: 9px; }
.brand .wordmark { font-size: 17px; }
.page h2 { font-size: 17px; margin: 22px 0 10px; }
.head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.head h1 { margin: 0; flex: 1; }
.muted { color: var(--muted); font-size: 14px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: none; }
.chips a, .chips button { flex: none; padding: 6px 14px; border-radius: 20px; background: var(--panel2); border: 1px solid var(--line); font-size: 14px; }
.chips .on { background: var(--accent); border-color: var(--accent); color: var(--cream); font-weight: 600; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }
.grid3 a { position: relative; aspect-ratio: 3/4; background: var(--panel2); overflow: hidden; }
.grid3 video { width: 100%; height: 100%; object-fit: cover; }
.grid3 small { position: absolute; left: 5px; bottom: 4px; text-shadow: 0 1px 3px #000; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: block; }
.card img, .card .noimg { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--panel2); display: grid; place-items: center; font-size: 40px; }
.card div.b { padding: 8px 10px 10px; }
.card b { display: block; font-size: 14px; }
.price { color: var(--gold); font-weight: 700; }
.row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.row .g { flex: 1; min-width: 0; }
.row .g b, .row .g span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .g .badge { display: inline-block; vertical-align: middle; }
.rank { width: 26px; text-align: center; font-weight: 700; color: var(--gold); }
.tile { display: flex; gap: 12px; align-items: center; padding: 14px; background: var(--panel); border: 1px solid var(--line);
  border-radius: 14px; margin-bottom: 10px; }
.tile .e { font-size: 28px; }
.tile b { display: block; }
.badge { font-size: 11px; padding: 2px 8px; border-radius: 20px; background: var(--panel2); border: 1px solid var(--line); white-space: nowrap; }
.badge.ok { color: var(--green); border-color: var(--green); }
.badge.star { color: var(--brown); background: var(--gold); border-color: var(--gold); font-weight: 700; }
.badge.warn { color: var(--gold); border-color: var(--gold); }
.badge.bad { color: var(--red); border-color: var(--red); }

/* formulaires */
form { display: grid; gap: 12px; }
label { display: grid; gap: 5px; font-size: 14px; color: var(--muted); }
input, select, textarea { width: 100%; padding: 11px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--text); }
textarea { min-height: 84px; resize: vertical; }
.btn { display: inline-flex; justify-content: center; align-items: center; gap: 6px; padding: 11px 16px; border-radius: 10px; border: 0;
  background: var(--accent); color: var(--cream); font-weight: 700; }
.btn.alt { background: var(--panel2); color: var(--text); border: 1px solid var(--line); }
.btn.gold { background: var(--gold); color: var(--brown); }
.btn.sm { padding: 6px 12px; font-size: 14px; }
.btn[disabled] { opacity: .5; }
.btns { display: flex; gap: 8px; flex-wrap: wrap; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.check { display: flex; align-items: center; gap: 8px; }
.check input { width: auto; }
.note { background: var(--panel); border-left: 3px solid var(--gold); padding: 10px 12px; border-radius: 6px; font-size: 14px; }

/* profil */
.prof { text-align: center; }
.prof .avatar { margin: 0 auto 8px; }
.stats { display: flex; justify-content: center; gap: 26px; margin: 12px 0; }
.stats b { display: block; font-size: 18px; }
.stats span { font-size: 12px; color: var(--muted); }
.balance { font-size: 34px; font-weight: 800; color: var(--gold); }
.pos { color: var(--green); } .neg { color: var(--red); }
pre.ai { white-space: pre-wrap; background: var(--panel); padding: 14px; border-radius: 12px; font: inherit; }

/* feuille et notification */
#sheet { position: fixed; inset: 0; z-index: 20; background: #000a; display: flex; align-items: flex-end; justify-content: center; }
#sheet[hidden], #toast[hidden] { display: none; }
#sheet .in { width: 100%; max-width: 520px; max-height: 78dvh; overflow-y: auto; background: var(--panel); border-radius: 18px 18px 0 0; padding: 16px 14px 22px; }
#sheet h3 { margin: 0 0 12px; display: flex; justify-content: space-between; align-items: center; }
#sheet h3 button { background: none; border: 0; font-size: 22px; }
#toast { position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%); z-index: 30; background: var(--cream); color: var(--brown);
  padding: 10px 16px; border-radius: 22px; font-weight: 600; font-size: 14px; max-width: 90vw; text-align: center; }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }

/* v0.4 : contenus abonnés, notifications */
.vid.locked { display: grid; place-items: center; background: var(--brown); }
.vid .blur { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(22px) brightness(.45); transform: scale(1.2); }
.lockbox { position: relative; z-index: 1; display: grid; gap: 10px; justify-items: center; text-align: center; padding: 0 60px 90px 30px; color: var(--cream); }
.lockbox svg { color: var(--gold); }
.lockbox b { font: 700 18px/1.3 var(--display); }
.grid3 img { width: 100%; height: 100%; object-fit: cover; }
.lockmark { position: absolute; top: 5px; left: 5px; color: var(--gold); filter: drop-shadow(0 1px 2px #000); }
#nav a { position: relative; }
#nav .dot { position: absolute; top: 6px; left: calc(50% + 6px); min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--terracotta);
  color: var(--cream); font: 700 10px/17px system-ui, sans-serif; text-align: center; }
.row.new { background: var(--panel); margin: 0 -14px; padding-left: 14px; padding-right: 14px; }
.btn .badge { margin-left: 4px; }
span[data-raw] { display: inline !important; padding: 0 !important; background: none !important; border-radius: 0 !important; }
.vid .info .who { gap: 0; }
.vid .info .who .badge { margin-left: 6px; }
.feedbar .back { background: none; color: #fff; }
.lockbox { padding: 0 84px 90px 24px; }
