:root {
  --accent: #F7931A;
  --bg: #0A0D0B;
  --surface: rgba(255, 255, 255, .06);
  --surface-2: rgba(255, 255, 255, .1);
  --line: rgba(255, 255, 255, .1);
  --text: #F4F5F2;
  --muted: #A6ADA8;
  --green: #4ADE80;
  --red: #F87171;
  --radius: 18px;
  --display: "Space Grotesk", system-ui, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
a { color: inherit; text-decoration: none; }
.ico { display: block; flex: none; }

/* ---------- Fond ---------- */
.bg-glow {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 40% at 50% -5%, rgba(247, 147, 26, .3), transparent 70%);
  background:
    radial-gradient(60% 40% at 50% -5%, color-mix(in srgb, var(--accent) 38%, transparent), transparent 70%),
    radial-gradient(50% 35% at 100% 100%, rgba(34, 197, 94, .14), transparent 70%),
    radial-gradient(45% 30% at 0% 70%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 70%);
}
.bg-photo {
  position: fixed; inset: 0; z-index: -2;
  background-size: cover; background-position: center;
  filter: saturate(1.1);
}
.bg-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,13,11,.55) 0%, rgba(10,13,11,.85) 45%, var(--bg) 100%);
}

/* ---------- Mise en page ---------- */
.page {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: calc(28px + env(safe-area-inset-top, 0px)) 18px calc(32px + env(safe-area-inset-bottom, 0px));
}

.share-btn {
  position: absolute; top: calc(16px + env(safe-area-inset-top, 0px)); right: 16px;
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
}
.share-btn:active { transform: scale(.94); }

/* ---------- Profil ---------- */
.profile { text-align: center; padding-top: 18px; }
.avatar {
  width: 112px; height: 112px; margin: 0 auto 16px;
  border-radius: 50%; padding: 4px;
  background: conic-gradient(from 200deg, var(--accent), #22C55E, var(--accent));
  box-shadow: 0 10px 40px -8px color-mix(in srgb, var(--accent) 60%, transparent);
  animation: pop .6s cubic-bezier(.2, .9, .3, 1.3) both;
}
.avatar img {
  width: 100%; height: 100%; border-radius: 50%; object-fit: cover;
  background: var(--bg); border: 3px solid var(--bg); display: block;
}
.profile h1 {
  font: 700 30px/1.1 var(--display);
  letter-spacing: -.02em;
  margin: 0;
}
.tagline {
  margin: 6px 0 0; color: var(--accent);
  font-weight: 600; font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
}
.bio { margin: 14px auto 0; max-width: 34ch; color: var(--muted); font-size: 15px; }

.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 14px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  font-size: 13px; font-weight: 500; color: var(--text);
}
.chip .ico { color: var(--muted); }

/* ---------- Liens ---------- */
.links { display: grid; gap: 12px; margin-top: 28px; }
.link {
  --brand: #A3A3A3;
  position: relative;
  display: flex; align-items: center; gap: 14px;
  min-height: 68px; padding: 12px 14px 12px 12px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: transform .15s ease, background .2s ease, border-color .2s ease;
  animation: rise .5s ease both;
  animation-delay: calc(var(--i) * 60ms + 150ms);
}
.link:hover { background: var(--surface-2); border-color: color-mix(in srgb, var(--brand) 45%, transparent); }
.link:active { transform: scale(.97); }
.link-icon {
  width: 44px; height: 44px; border-radius: 13px; flex: none;
  display: grid; place-items: center;
  color: var(--brand);
  background: rgba(255, 255, 255, .08);
  background: color-mix(in srgb, var(--brand) 16%, transparent);
}
.link-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.link-text strong { font: 600 16px/1.25 var(--sans); }
.link-text small { color: var(--muted); font-size: 13px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.link-arrow { color: var(--muted); transition: transform .2s ease; }
.link:hover .link-arrow { transform: translateX(3px); }

/* Lien mis en avant : bouton plein + halo animé */
.link.is-featured {
  min-height: 76px;
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 70%, #ffcf66));
  border-color: transparent;
  color: #120C02;
  box-shadow: 0 12px 34px -10px color-mix(in srgb, var(--accent) 80%, transparent);
  overflow: hidden;
}
.link.is-featured .link-icon { background: rgba(0, 0, 0, .14); color: #120C02; }
.link.is-featured .link-text strong { font-size: 17px; font-weight: 700; }
.link.is-featured .link-text small { color: rgba(18, 12, 2, .72); }
.link.is-featured .link-arrow { color: #120C02; }
.link.is-featured::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%);
  transform: translateX(-100%);
  animation: shine 3.2s ease-in-out 1.2s infinite;
}

/* ---------- Pied de page ---------- */
.foot { text-align: center; margin-top: 36px; color: var(--muted); font-size: 12px; }
.foot p { margin: 4px 0; }
.foot .copy { opacity: .6; }

.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  transform: translate(-50%, 20px); opacity: 0;
  background: #fff; color: #111; padding: 10px 16px; border-radius: 999px;
  font-weight: 600; font-size: 14px; pointer-events: none;
  transition: .25s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Boutons ---------- */
.btn-primary, .btn-ghost {
  display: inline-flex; justify-content: center; align-items: center;
  width: 100%; min-height: 52px; padding: 0 20px; border-radius: 14px;
  font: 700 16px var(--sans); cursor: pointer; border: 0;
}
.btn-primary { background: var(--accent); color: #120C02; }
.btn-ghost { background: transparent; color: var(--muted); margin-top: 8px; }

/* ---------- Page menu ---------- */
.menu-page { padding-top: calc(16px + env(safe-area-inset-top, 0px)); }
.menu-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.menu-brand { display: flex; align-items: center; gap: 10px; font: 700 16px var(--display); }
.menu-brand img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid var(--accent); }
.menu-hero { text-align: center; padding: 34px 0 18px; }
.menu-hero h1 { font: 700 38px/1.05 var(--display); letter-spacing: -.03em; margin: 0; }
.menu-hero p { color: var(--muted); margin: 8px 0 0; }

.cat-nav {
  position: sticky; top: 0; z-index: 5;
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  margin: 0 -18px; padding: 12px 18px;
  padding-top: calc(12px + env(safe-area-inset-top, 0px));
  background: linear-gradient(var(--bg) 70%, transparent);
}
.cat-nav::-webkit-scrollbar { display: none; }
.cat-nav a {
  flex: none; padding: 8px 16px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  font-weight: 600; font-size: 14px; white-space: nowrap;
}
.cat-nav a.active { background: var(--accent); border-color: var(--accent); color: #120C02; }

.menu-cat { margin-top: 22px; scroll-margin-top: 70px; }
.menu-cat h2 {
  font: 700 13px var(--sans); letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 10px 4px;
}
.items { list-style: none; margin: 0; padding: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.item { display: flex; gap: 14px; padding: 16px; border-top: 1px solid var(--line); }
.item:first-child { border-top: 0; }
.item-main { flex: 1; min-width: 0; }
.item-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.item-title strong { font-size: 16px; font-weight: 600; }
.item p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.details { display: inline-block; margin-top: 6px; font-size: 12px; font-weight: 600; color: var(--text); opacity: .8; }
.item-price { font: 700 16px var(--display); white-space: nowrap; color: var(--text); text-align: right; }
.item.is-out { opacity: .45; }
.sold { font: 600 12px var(--sans); color: var(--red); text-transform: uppercase; letter-spacing: .06em; }
.badge {
  --b: #999;
  font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 6px;
  color: var(--b); background: rgba(255, 255, 255, .08); background: color-mix(in srgb, var(--b) 18%, transparent);
}
.empty { text-align: center; color: var(--muted); margin: 40px 0; }
.back-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; color: var(--text); font-weight: 600; font-size: 14px; }

.preview-bar {
  position: sticky; top: 0; z-index: 20; text-align: center;
  background: #FACC15; color: #111; font-weight: 600; font-size: 13px; padding: 8px 12px;
}

.age-gate {
  position: fixed; inset: 0; z-index: 50;
  display: grid; place-items: center; padding: 24px;
  background: rgba(5, 7, 6, .82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.age-gate[hidden] { display: none; }
.age-card {
  width: 100%; max-width: 360px; text-align: center;
  background: #121714; border: 1px solid var(--line); border-radius: 24px; padding: 28px 22px 18px;
  animation: pop .4s ease both;
}
.age-card img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.age-card h2 { font: 700 22px var(--display); margin: 14px 0 6px; }
.age-card p { color: var(--muted); margin: 0 0 20px; }

.notfound { text-align: center; padding-top: 30vh; }
.notfound h1 { font: 700 28px var(--display); margin: 0 0 8px; }
.notfound p { color: var(--muted); margin: 0 0 24px; }

/* ---------- Animations ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }
@keyframes shine { 0% { transform: translateX(-100%); } 45%, 100% { transform: translateX(100%); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
