/* ═══════════════════════════════════════════════════════════
   GUIGZZ_JOJOW — design system
   Modifier les couleurs ici (canaux RGB séparés par des espaces).
   ═══════════════════════════════════════════════════════════ */
:root {
  --bg: 7 5 13;
  --bg-2: 11 8 21;
  --surface: 17 12 31;
  --surface-2: 26 19 47;
  --primary: 145 70 255;      /* violet électrique */
  --primary-2: 190 120 255;
  --hot: 255 61 120;          /* touche rose */
  --live: 255 52 82;          /* rouge « en direct » */
  --gold: 255 197 61;
  --silver: 210 216 234;
  --bronze: 228 142 86;
  --text: 244 240 255;
  --muted: 160 150 192;
  --line: 255 255 255;

  --display: "Big Shoulders Display", Impact, "Arial Narrow", sans-serif;
  --sans: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 18px;
  --radius-sm: 12px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --nav-h: 68px;

  color-scheme: dark;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --bg: 7 5 13; } }
:root[data-theme="dark"] { --bg: 7 5 13; }

@view-transition { navigation: auto; }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 24px + env(safe-area-inset-top, 0px)); -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body { min-height: 100vh; background: rgb(var(--bg)); color: rgb(var(--text)); font-family: var(--sans); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
button, input, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid rgb(var(--primary-2)); outline-offset: 3px; border-radius: 8px; }
::selection { background: rgb(var(--primary) / .55); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .wrap { padding: 0 32px; } }
.muted { color: rgb(var(--muted)); }
.page-in { animation: pageIn .6s var(--ease) both; }
@keyframes pageIn { from { opacity: 0; } }

/* ── Boutons ─────────────────────────────────────────── */
.btn {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 24px; border-radius: 14px; white-space: nowrap;
  font-family: var(--display); font-weight: 800; font-size: 18px; letter-spacing: .04em; text-transform: uppercase;
  transition: transform .35s var(--ease), box-shadow .35s, background-color .35s, border-color .35s, color .2s;
}
.btn:active { transform: scale(.97); }
.btn svg { flex: none; }
.btn-primary { color: #fff; background: linear-gradient(110deg, rgb(var(--primary)), #b13cff 55%, rgb(var(--hot))); box-shadow: 0 10px 30px -12px rgb(var(--primary) / .9), inset 0 1px 0 rgb(255 255 255 / .25); }
.btn-primary::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgb(255 255 255 / .4) 50%, transparent 70%); transform: translateX(-120%); transition: transform .8s var(--ease); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -14px rgb(var(--primary) / 1), inset 0 1px 0 rgb(255 255 255 / .3); }
.btn-primary:hover::after { transform: translateX(120%); }
.btn-ghost { border: 1px solid rgb(var(--line) / .14); background: rgb(var(--line) / .04); }
.btn-ghost:hover { transform: translateY(-2px); border-color: rgb(var(--primary-2) / .65); background: rgb(var(--primary) / .12); }
.btn-twitch { color: #fff; background: #9146ff; }
.btn-twitch:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -12px #9146ff; }
.btn-live { color: #fff; background: rgb(var(--live)); }
.btn-live:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -12px rgb(var(--live)); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; border-radius: 11px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid rgb(var(--line) / .12); background: rgb(10 6 20 / .55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: transform .3s var(--ease), background-color .3s, border-color .3s, color .2s;
}
.icon-btn:hover { transform: translateY(-2px); background: rgb(var(--primary) / .25); border-color: rgb(var(--primary-2) / .6); }
.icon-btn[aria-pressed="true"] { color: rgb(var(--hot)); border-color: rgb(var(--hot) / .55); background: rgb(var(--hot) / .14); }
.icon-btn[aria-pressed="true"] svg { fill: currentColor; }
.arr { display: inline-block; transition: transform .3s var(--ease); }
a:hover > .arr, button:hover > .arr { transform: translateX(4px); }

/* ── Badges ──────────────────────────────────────────── */
.pill { white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; border: 1px solid rgb(var(--line) / .12); background: rgb(var(--line) / .05); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: rgb(var(--muted)); flex: none; }
.is-live .dot, .dot.live { background: rgb(var(--live)); box-shadow: 0 0 0 0 rgb(var(--live) / .7); animation: livePulse 1.6s infinite; }
@keyframes livePulse { 70% { box-shadow: 0 0 0 9px rgb(var(--live) / 0); } 100% { box-shadow: 0 0 0 0 rgb(var(--live) / 0); } }
.pill.is-live { border-color: rgb(var(--live) / .45); background: rgb(var(--live) / .12); color: #fff; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 8px; font-size: 12px; font-weight: 600; background: rgb(0 0 0 / .62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); font-variant-numeric: tabular-nums; }

/* ── Navbar ──────────────────────────────────────────── */
.nav { position: sticky; top: 0; z-index: 60; padding-top: env(safe-area-inset-top, 0px); transition: background-color .4s, border-color .4s, backdrop-filter .4s; border-bottom: 1px solid transparent; }
:root { padding-top: 0; }
.nav.scrolled, .nav.open { background: rgb(var(--bg) / .78); backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3); border-color: rgb(var(--line) / .08); }
.nav-in { height: var(--nav-h); display: flex; align-items: center; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 900; font-size: 24px; letter-spacing: .01em; margin-right: auto; }
.brand img { width: 36px; height: 36px; border-radius: 10px; box-shadow: 0 0 0 1px rgb(var(--line) / .15), 0 0 18px -4px rgb(var(--primary)); }
.brand .us { color: rgb(var(--gold)); }
.nav-links { display: none; align-items: center; gap: 2px; list-style: none; }
.nav-links a { position: relative; display: block; padding: 8px 14px; font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: .03em; color: rgb(var(--text) / .72); transition: color .2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: rgb(var(--text)); }
.nav-links a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, rgb(var(--primary)), rgb(var(--hot))); transform: scaleX(0); transition: transform .35s var(--ease); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-tools { display: flex; align-items: center; gap: 8px; }
.search-trigger { display: inline-flex; align-items: center; gap: 10px; height: 42px; padding: 0 12px; border-radius: 12px; border: 1px solid rgb(var(--line) / .12); background: rgb(var(--line) / .04); color: rgb(var(--muted)); font-size: 14px; transition: border-color .3s, background-color .3s; }
.search-trigger:hover { border-color: rgb(var(--primary-2) / .55); background: rgb(var(--primary) / .1); color: rgb(var(--text)); }
.search-trigger .lbl, .search-trigger kbd { display: none; }
kbd { font-family: var(--sans); font-size: 11px; padding: 2px 6px; border-radius: 6px; border: 1px solid rgb(var(--line) / .18); color: rgb(var(--muted)); }
.nav-live { display: none; }
.nav-live.is-live { display: inline-flex; }
.nav-twitch { display: none; }
.burger { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; }
.burger span { position: relative; width: 22px; height: 14px; }
.burger i { position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: currentColor; transition: transform .35s var(--ease), opacity .2s; }
.burger i:nth-child(1) { top: 0; } .burger i:nth-child(2) { top: 6px; } .burger i:nth-child(3) { top: 12px; }
.nav.open .burger i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav.open .burger i:nth-child(2) { opacity: 0; }
.nav.open .burger i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.sheet { position: fixed; left: 0; right: 0; top: calc(var(--nav-h) + env(safe-area-inset-top, 0px)); bottom: 0; z-index: 59; background: rgb(var(--bg) / .97); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path .45s var(--ease), visibility .45s; overflow-y: auto; }
.nav.open + .sheet { clip-path: inset(0 0 0 0); visibility: visible; }
.sheet ul { list-style: none; padding-top: 24px; padding-bottom: 40px; }
.sheet li a { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid rgb(var(--line) / .07); font-family: var(--display); font-weight: 900; font-size: 40px; line-height: 1; }
.sheet li a[aria-current="page"] { color: rgb(var(--primary-2)); }
@media (min-width: 640px) { .search-trigger .lbl { display: inline; } .search-trigger { min-width: 190px; } .search-trigger kbd { display: inline; margin-left: auto; } }
@media (min-width: 1024px) { .nav-links { display: flex; } .burger, .sheet { display: none; } .nav-twitch { display: inline-flex; } .brand { margin-right: 12px; } .nav-links { margin-right: auto; } }

/* ── Sections ────────────────────────────────────────── */
.section { padding: 72px 0; position: relative; }
@media (min-width: 768px) { .section { padding: 104px 0; } }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; margin-bottom: 32px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgb(var(--primary-2)); }
.h2 { margin-top: 8px; font-family: var(--display); font-weight: 900; font-size: clamp(40px, 7vw, 68px); line-height: .92; letter-spacing: -.005em; text-transform: uppercase; }
.lead { margin-top: 12px; max-width: 36em; color: rgb(var(--muted)); }
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ── Hero ───────────────────────────────────────────── */
.hero { position: relative; isolation: isolate; overflow: hidden; margin-top: calc(-1 * var(--nav-h)); padding-top: var(--nav-h); }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.halo { position: absolute; border-radius: 50%; }
.halo.a { right: -18%; top: -20%; width: 70vmax; height: 70vmax; background: radial-gradient(closest-side, rgb(var(--primary) / .32), rgb(var(--primary) / .07) 55%, transparent); animation: haloBreath 14s ease-in-out infinite alternate; }
.halo.b { left: -22%; bottom: -40%; width: 55vmax; height: 55vmax; background: radial-gradient(closest-side, rgb(var(--hot) / .14), transparent); animation: haloBreath 18s ease-in-out infinite alternate-reverse; }
@keyframes haloBreath { from { opacity: .7; transform: scale(1); } to { opacity: 1; transform: scale(1.06); } }
.grid-bg { position: absolute; inset: 0; background-image: linear-gradient(rgb(var(--line) / .045) 1px, transparent 1px), linear-gradient(90deg, rgb(var(--line) / .045) 1px, transparent 1px); background-size: 64px 64px; -webkit-mask-image: radial-gradient(ellipse 70% 60% at 65% 40%, #000, transparent 75%); mask-image: radial-gradient(ellipse 70% 60% at 65% 40%, #000, transparent 75%); }
.hero-fade { position: absolute; inset: auto 0 0; height: 160px; background: linear-gradient(transparent, rgb(var(--bg))); }
.hero-in > * { min-width: 0; }
.hero-in { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: center; padding-top: 40px; padding-bottom: 64px; }
@media (min-width: 1024px) { .hero-in { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 56px; min-height: min(88svh, 860px); padding-top: 32px; padding-bottom: 72px; } }
.hero-id { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; }
.hero-id img { width: 64px; height: 64px; border-radius: 18px; box-shadow: 0 0 0 1px rgb(var(--line) / .18), 0 0 34px -6px rgb(var(--primary)); }
.hero-id .who { font-family: var(--display); font-weight: 900; font-size: 26px; line-height: 1; }
.hero-id .who small { display: block; margin-top: 4px; font-family: var(--sans); font-weight: 500; font-size: 13px; color: rgb(var(--muted)); letter-spacing: .02em; }
.hero h1 { margin-top: 26px; font-family: var(--display); font-weight: 900; text-transform: uppercase; line-height: .86; letter-spacing: -.01em; }
.hero h1 .l1 { display: block; font-size: clamp(30px, 6.4vw, 52px); color: rgb(var(--text) / .9); }
.hero h1 .l2 { display: inline-block; white-space: nowrap; margin-top: .08em; padding-bottom: .04em; font-size: clamp(52px, 14.5vw, 116px);
  background: linear-gradient(100deg, #fff 0%, #efe4ff 30%, rgb(var(--primary-2)) 62%, rgb(var(--hot)) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 28px rgb(var(--primary) / .45)); }
.hero h1 .l2 .us { -webkit-text-fill-color: rgb(var(--gold)); }
@media (min-width: 1024px) { .hero h1 .l1 { font-size: clamp(40px, 3.4vw, 54px); } .hero h1 .l2 { font-size: clamp(80px, 7.4vw, 118px); } }
.hero-desc { margin-top: 20px; max-width: 32em; font-size: clamp(16px, 1.4vw, 18.5px); color: rgb(var(--muted)); }
.hero-ctas { margin-top: 30px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 12px; max-width: 460px; }
@media (min-width: 1024px) { .hero-ctas { display: flex; } }
@media (max-width: 359px) { .hero-ctas { grid-template-columns: 1fr; } }
.hero-proof { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 26px; font-size: 14px; color: rgb(var(--muted)); min-height: 34px; }
.hero-proof b { margin-right: 6px; font-family: var(--display); font-weight: 800; font-size: 22px; color: rgb(var(--text)); font-variant-numeric: tabular-nums; }
.hero .stagger > * { animation: slideIn .9s var(--ease) both; }
.hero .stagger > *:nth-child(2) { animation-delay: .08s; } .hero .stagger > *:nth-child(3) { animation-delay: .16s; } .hero .stagger > *:nth-child(4) { animation-delay: .24s; } .hero .stagger > *:nth-child(5) { animation-delay: .32s; } .hero .stagger > *:nth-child(6) { animation-delay: .4s; }
@keyframes slideIn { from { opacity: 0; transform: translateX(-24px); } }

/* Clip vedette */
.featured { position: relative; animation: rise 1s var(--ease) .2s both; }
@keyframes rise { from { opacity: 0; transform: translateY(30px) scale(.97); } }
.featured-glow { position: absolute; inset: 10% 4% -6%; border-radius: 40px; background: radial-gradient(closest-side, rgb(var(--primary) / .55), rgb(var(--hot) / .14) 65%, transparent); filter: blur(34px); pointer-events: none; animation: haloBreath 6s ease-in-out infinite alternate; }
.fcard { position: relative; border-radius: 24px; overflow: hidden; background: rgb(var(--surface)); box-shadow: 0 0 0 1px rgb(var(--line) / .12), 0 40px 80px -36px rgb(0 0 0 / .95); transition: transform .5s var(--ease), box-shadow .5s; }
.fcard::before { content: ""; position: absolute; inset: 0; z-index: 4; border-radius: inherit; padding: 1px; pointer-events: none; background: linear-gradient(140deg, rgb(255 255 255 / .55), rgb(var(--primary-2) / .45) 30%, transparent 55%, rgb(var(--hot) / .5)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.fcard:hover { transform: translateY(-6px); box-shadow: 0 0 0 1px rgb(var(--line) / .16), 0 50px 90px -36px rgb(var(--primary) / .8); }
.fmedia { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: rgb(var(--surface-2)); }
.fmedia img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.fcard:hover .fmedia img { transform: scale(1.05); }
.fmedia iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 3; }
.fmedia .shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgb(7 5 13 / .45), transparent 30%, transparent 55%, rgb(7 5 13 / .7)); }
.fbadge { position: absolute; left: 16px; top: 16px; z-index: 2; display: inline-flex; gap: 6px; align-items: center; padding: 6px 12px; border-radius: 10px; font-family: var(--display); font-weight: 800; font-size: 15px; letter-spacing: .08em; color: #fff; background: linear-gradient(110deg, rgb(var(--primary)), rgb(var(--hot))); box-shadow: 0 8px 22px -8px rgb(var(--hot)); }
.ftools { position: absolute; right: 14px; top: 14px; z-index: 2; display: flex; gap: 8px; }
.bigplay { position: absolute; left: 50%; top: 50%; z-index: 2; width: 88px; height: 88px; translate: -50% -50%; display: grid; place-items: center; border-radius: 50%; }
.bigplay .ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgb(255 255 255 / .6); animation: ring 2.6s var(--ease) infinite; }
.bigplay .ring.r2 { animation-delay: 1.3s; }
@keyframes ring { from { transform: scale(1); opacity: .7; } to { transform: scale(1.7); opacity: 0; } }
.bigplay .core { position: relative; width: 100%; height: 100%; display: grid; place-items: center; border-radius: 50%; color: #14072e; background: rgb(255 255 255 / .95); box-shadow: 0 0 0 8px rgb(255 255 255 / .12), 0 12px 44px rgb(var(--primary) / .85); transition: transform .4s var(--ease); }
.bigplay:hover .core, .fcard:hover .bigplay .core { transform: scale(1.08); }
.finfo { padding: 20px 22px 22px; }
.finfo .ttl { display: block; font-family: var(--display); font-weight: 800; font-size: clamp(26px, 3vw, 34px); line-height: 1.02; }
.finfo .ttl:hover { color: rgb(var(--primary-2)); }
.meta { margin-top: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; font-size: 14px; color: rgb(var(--muted)); }
.meta b { color: rgb(var(--text)); font-weight: 600; font-variant-numeric: tabular-nums; }
.meta .game { color: rgb(var(--primary-2)); font-weight: 600; }
.factions { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 10px; }

/* ── Cartes de clip ─────────────────────────────────── */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 268px), 1fr)); }
.card { position: relative; border-radius: var(--radius); background: rgb(var(--surface)); box-shadow: 0 0 0 1px rgb(var(--line) / .08); transition: transform .45s var(--ease), box-shadow .45s; animation: cardIn .55s var(--ease) both; }
@keyframes cardIn { from { opacity: 0; transform: translateY(14px); } }
.card:hover { transform: translateY(-6px); box-shadow: 0 0 0 1px rgb(var(--primary-2) / .35), 0 24px 50px -22px rgb(var(--primary) / .8); }
.card-link { display: block; border-radius: inherit; }
.thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; background: rgb(var(--surface-2)); }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card:hover .thumb img { transform: scale(1.07); }
.thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgb(7 5 13 / .65)); }
.thumb .tag { position: absolute; z-index: 2; }
.thumb .t-dur { right: 10px; bottom: 10px; }
.thumb .t-rank { left: 10px; bottom: 10px; font-family: var(--display); font-weight: 800; font-size: 14px; }
.play { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; }
.play span { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; color: #14072e; background: rgb(255 255 255 / .94); box-shadow: 0 10px 34px rgb(var(--primary) / .8); transform: scale(.6); opacity: 0; transition: transform .4s var(--ease), opacity .3s; }
.card:hover .play span, .card-link:focus-visible .play span { transform: none; opacity: 1; }
@media (hover: none) { .play span { transform: scale(.82); opacity: .9; } }
.preview { position: absolute; inset: 0; z-index: 3; border: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0; transition: opacity .4s; border-radius: var(--radius) var(--radius) 0 0; }
.preview.on { opacity: 1; }
.card-body { padding: 14px 16px 16px; }
.card-title { font-family: var(--display); font-weight: 800; font-size: 22px; line-height: 1.06; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.12em; transition: color .25s; }
.card:hover .card-title { color: rgb(var(--primary-2)); }
.card .meta { margin-top: 10px; font-size: 13.5px; gap: 4px 12px; }
.card-tools { position: absolute; top: 10px; right: 10px; z-index: 4; display: flex; gap: 6px; opacity: 0; transform: translateY(-4px); transition: opacity .3s, transform .3s var(--ease); }
.card-tools .icon-btn { width: 38px; height: 38px; border-radius: 10px; }
.card:hover .card-tools, .card:focus-within .card-tools, .card-tools.has-fav { opacity: 1; transform: none; }
@media (hover: none) { .card-tools { opacity: 1; transform: none; } }

/* Grandes cartes « À ne pas manquer » */
.spot { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 768px) { .spot { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .spot.n3 { grid-template-columns: 1.3fr 1fr; } .spot.n3 > :first-child { grid-row: span 2; } }
.scard { position: relative; border-radius: 22px; overflow: hidden; background: rgb(var(--surface)); box-shadow: 0 0 0 1px rgb(var(--line) / .08); transition: transform .5s var(--ease), box-shadow .5s; width: 100%; }
.scard:hover { transform: translateY(-6px); box-shadow: 0 0 0 1px rgb(var(--primary-2) / .4), 0 30px 60px -26px rgb(var(--primary) / .85); }
.scard .card-link { position: absolute; inset: 0; }
.scard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.scard:hover img { transform: scale(1.06); }
.scard .ov { position: absolute; inset: 0; background: linear-gradient(180deg, rgb(7 5 13 / .25) 0%, transparent 35%, rgb(7 5 13 / .55) 60%, rgb(7 5 13 / .96) 100%); }
.scard .body { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px; z-index: 2; pointer-events: none; }
.scard .card-title { font-size: clamp(24px, 2.6vw, 32px); -webkit-line-clamp: 2; min-height: 0; }
.scard .hot { position: absolute; left: 16px; top: 16px; z-index: 2; }
.scard .play span { width: 70px; height: 70px; }
.scard .card-tools { opacity: 1; transform: none; top: 14px; right: 14px; }
.spot > .scard { aspect-ratio: 4 / 3; }
@media (min-width: 768px) { .spot > .scard { aspect-ratio: 16 / 10; } }
@media (min-width: 1200px) { .spot.n3 > .scard:first-child { aspect-ratio: auto; } }

/* ── Galerie : barre d'outils ───────────────────────── */
.toolbar { position: sticky; top: calc(var(--nav-h) + env(safe-area-inset-top, 0px)); z-index: 20; margin: 0 -20px 24px; padding: 14px 20px; background: rgb(var(--bg) / .86); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid rgb(var(--line) / .06); }
@media (min-width: 768px) { .toolbar { margin: 0 -32px 28px; padding: 14px 32px; } }
.tools { display: grid; gap: 12px; }
@media (min-width: 1024px) { .tools { grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; } }
.field { position: relative; display: block; }
.field svg { position: absolute; left: 14px; top: 50%; translate: 0 -50%; color: rgb(var(--muted)); pointer-events: none; }
.input { width: 100%; height: 48px; padding: 0 16px 0 44px; border-radius: 13px; border: 1px solid rgb(var(--line) / .1); background: rgb(var(--surface)); font-size: 16px; transition: border-color .25s, box-shadow .25s; }
.input::placeholder { color: rgb(var(--muted)); }
.input:focus { outline: none; border-color: rgb(var(--primary-2) / .8); box-shadow: 0 0 0 4px rgb(var(--primary) / .18); }
.row { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; }
.row::-webkit-scrollbar { display: none; }
.seg { position: relative; display: inline-flex; flex: none; padding: 4px; border-radius: 13px; border: 1px solid rgb(var(--line) / .1); background: rgb(var(--surface)); }
.seg button { position: relative; z-index: 1; flex: none; height: 38px; padding: 0 14px; border-radius: 10px; font-size: 14px; font-weight: 600; color: rgb(var(--muted)); transition: color .25s; white-space: nowrap; }
.seg button[aria-pressed="true"] { color: #fff; }
.seg .ind { position: absolute; z-index: 0; top: 4px; bottom: 4px; border-radius: 10px; background: linear-gradient(110deg, rgb(var(--primary)), #b13cff); transition: left .4s var(--ease), width .4s var(--ease); }
.select { position: relative; flex: none; }
.select select { appearance: none; -webkit-appearance: none; height: 48px; padding: 0 40px 0 14px; border-radius: 13px; border: 1px solid rgb(var(--line) / .1); background: rgb(var(--surface)); font-size: 14px; font-weight: 600; max-width: 230px; }
.select::after { content: ""; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px; border-right: 2px solid rgb(var(--muted)); border-bottom: 2px solid rgb(var(--muted)); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 16px; border-radius: 13px; border: 1px solid rgb(var(--line) / .1); background: rgb(var(--surface)); font-size: 14px; font-weight: 600; transition: border-color .25s, background-color .25s, color .25s; }
.chip[aria-pressed="true"] { border-color: rgb(var(--hot) / .6); background: rgb(var(--hot) / .14); color: #fff; }
.count { margin-top: 10px; font-size: 13.5px; color: rgb(var(--muted)); }
.more { margin-top: 32px; display: flex; justify-content: center; }

/* ── Classement ─────────────────────────────────────── */
.podium { display: grid; gap: 20px; align-items: end; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .podium { grid-template-columns: 1fr 1.18fr 1fr; } .podium .p1 { order: 2; } .podium .p2 { order: 1; } .podium .p3 { order: 3; } }
.pcard { position: relative; border-radius: 24px; padding: 2px; transition: transform .5s var(--ease); }
.pcard:hover { transform: translateY(-8px); }
.pcard .frame { position: relative; border-radius: 22px; overflow: hidden; background: rgb(var(--surface)); }
.p1 { background: linear-gradient(150deg, rgb(var(--gold)), #ff9d2e 40%, rgb(var(--primary)) 100%); box-shadow: 0 30px 80px -30px rgb(var(--gold) / .65); }
.p2 { background: linear-gradient(150deg, rgb(var(--silver)), rgb(var(--primary) / .7)); }
.p3 { background: linear-gradient(150deg, rgb(var(--bronze)), rgb(var(--hot) / .6)); }
.p1::before { content: ""; position: absolute; inset: -2px; z-index: -1; border-radius: 26px; background: conic-gradient(from var(--angle, 0deg), rgb(var(--gold)), rgb(var(--primary)), rgb(var(--hot)), rgb(var(--gold))); filter: blur(16px); opacity: .55; animation: spin 8s linear infinite; }
@property --angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes spin { to { --angle: 360deg; } }
.pcard .thumb { border-radius: 0; }
.pcard .medal { position: absolute; left: 14px; top: 10px; z-index: 3; font-size: 40px; line-height: 1; filter: drop-shadow(0 6px 14px rgb(0 0 0 / .6)); }
.pcard .num { position: absolute; right: 14px; bottom: -6px; z-index: 3; font-family: var(--display); font-weight: 900; font-size: 96px; line-height: 1; -webkit-text-stroke: 2px rgb(255 255 255 / .85); color: transparent; opacity: .9; }
.p1 .num { -webkit-text-stroke-color: rgb(var(--gold)); font-size: 120px; }
.pcard .card-body { padding: 18px 18px 20px; }
.pcard .lbl { font-family: var(--display); font-weight: 800; font-size: 15px; letter-spacing: .1em; }
.p1 .lbl { color: rgb(var(--gold)); } .p2 .lbl { color: rgb(var(--silver)); } .p3 .lbl { color: rgb(var(--bronze)); }
.pcard .card-title { margin-top: 6px; }
.p1 .card-title { font-size: 28px; }
.pcard .views { margin-top: 12px; font-family: var(--display); font-weight: 900; font-size: 30px; line-height: 1; font-variant-numeric: tabular-nums; }
.p1 .views { font-size: 38px; }
.pcard .views small { font-family: var(--sans); font-size: 13px; font-weight: 500; color: rgb(var(--muted)); margin-left: 6px; }
.lb { margin-top: 28px; list-style: none; border-radius: 20px; overflow: hidden; border: 1px solid rgb(var(--line) / .08); background: rgb(var(--surface) / .7); }
.lb li + li { border-top: 1px solid rgb(var(--line) / .06); }
.lb a { display: grid; grid-template-columns: 52px 112px minmax(0, 1fr); align-items: center; gap: 14px; padding: 12px 16px; transition: background-color .2s; }
.lb a:hover { background: rgb(var(--primary) / .08); }
.lb .r { font-family: var(--display); font-weight: 900; font-size: 30px; text-align: center; color: rgb(var(--text) / .55); }
.lb .mini { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: rgb(var(--surface-2)); }
.lb .mini img { width: 100%; height: 100%; object-fit: cover; }
.lb .t { display: block; font-family: var(--display); font-weight: 800; font-size: 20px; line-height: 1.1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: color .2s; }
.lb a:hover .t { color: rgb(var(--primary-2)); }
.lb .meta { margin-top: 4px; font-size: 13px; }
.lb .bar { display: block; margin-top: 8px; height: 4px; border-radius: 4px; background: rgb(var(--line) / .06); overflow: hidden; }
.lb .bar i { display: block; height: 100%; width: var(--w); border-radius: 4px; background: linear-gradient(90deg, rgb(var(--primary)), rgb(var(--hot))); }
@media (max-width: 560px) { .lb a { grid-template-columns: 40px 84px minmax(0, 1fr); gap: 10px; padding: 10px 12px; } .lb .r { font-size: 24px; } .lb .t { font-size: 17px; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; } }

/* ── Statistiques ───────────────────────────────────── */
.stats { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 1024px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat { position: relative; overflow: hidden; border-radius: 20px; padding: 22px; border: 1px solid rgb(var(--line) / .08); background: linear-gradient(160deg, rgb(var(--surface-2) / .8), rgb(var(--surface))); }
.stat::after { content: ""; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; background: radial-gradient(closest-side, rgb(var(--primary) / .25), transparent); }
.stat dt { padding-right: 30px; font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: rgb(var(--muted)); }
.stat dd { margin-top: 10px; font-family: var(--display); font-weight: 900; font-size: clamp(36px, 5vw, 58px); line-height: 1; font-variant-numeric: tabular-nums; }
.stat .ico { position: absolute; right: 18px; top: 16px; font-size: 22px; opacity: .9; }
.stat-wide { grid-column: span 2; }
.stat-clip { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 14px; align-items: center; margin-top: 12px; }
.stat-clip .mini { aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: rgb(var(--surface-2)); }
.stat-clip .mini img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.stat-clip:hover .mini img { transform: scale(1.06); }
.stat-clip .t { font-family: var(--display); font-weight: 800; font-size: 21px; line-height: 1.08; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.stat-clip:hover .t { color: rgb(var(--primary-2)); }
.stat-clip .meta { margin-top: 6px; font-size: 13px; }
@media (max-width: 640px) { .stat-wide { grid-column: span 2; } .stat-clip { grid-template-columns: 96px minmax(0, 1fr); } .stat { padding: 18px; } }
.chart-card { margin-top: 16px; border-radius: 20px; padding: 22px; border: 1px solid rgb(var(--line) / .08); background: rgb(var(--surface)); }
.chart-card h3 { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: rgb(var(--muted)); }
.chart { display: flex; align-items: flex-end; gap: 6px; height: 200px; margin-top: 18px; padding-top: 20px; }
.chart .c { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 8px; }
.chart .bar { position: relative; width: 100%; max-width: 44px; height: 0; border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, rgb(var(--primary-2)), rgb(var(--primary))); box-shadow: 0 0 20px -6px rgb(var(--primary)); transition: height 1s var(--ease); }
.chart .bar.zero { background: rgb(var(--line) / .08); box-shadow: none; }
.chart-card.in .bar { height: var(--h); }
.chart .bar span { position: absolute; left: 50%; bottom: calc(100% + 4px); translate: -50% 0; font-size: 12px; font-weight: 600; }
.chart .m { font-size: 11.5px; color: rgb(var(--muted)); text-transform: capitalize; white-space: nowrap; }
@media (max-width: 520px) { .chart { gap: 3px; } .chart .m { font-size: 9.5px; } .chart .bar span { font-size: 10px; } }

/* Stats : groupes, barres horizontales, emotes */
.stat-group + .stat-group { margin-top: 44px; }
.sg-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-bottom: 16px; }
.sg-title { font-family: var(--display); font-weight: 900; font-size: clamp(26px, 3.4vw, 34px); line-height: 1; text-transform: uppercase; }
.sg-note { font-size: 13.5px; color: rgb(var(--muted)); }
.stat dd.txt { font-size: clamp(26px, 3.1vw, 36px); line-height: 1.05; }
.stat .sub { position: relative; z-index: 1; margin-top: 10px; font-size: 13px; color: rgb(var(--muted)); }
.stat.is-live-tile { border-color: rgb(var(--live) / .45); background: linear-gradient(160deg, rgb(var(--live) / .18), rgb(var(--surface))); }
.duo { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1024px) { .duo { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); } }
.duo .chart-card { margin-top: 0; }
.hbars { list-style: none; display: grid; gap: 14px; margin-top: 18px; }
.hbars li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; align-items: center; }
.hbars .n { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbars .v { font-size: 13px; color: rgb(var(--muted)); white-space: nowrap; }
.hbars .v b { color: rgb(var(--text)); }
.hbars .b { grid-column: 1 / -1; height: 8px; border-radius: 8px; background: rgb(var(--line) / .06); overflow: hidden; }
.hbars .b i { display: block; height: 100%; width: 0; border-radius: 8px; background: linear-gradient(90deg, rgb(var(--primary)), rgb(var(--hot))); transition: width 1.1s var(--ease); }
.chart-card.in .hbars .b i { width: var(--w); }
.chart .bar.hot { background: linear-gradient(180deg, #ff8ac0, rgb(var(--hot))); box-shadow: 0 0 22px -4px rgb(var(--hot)); }
.chart.h24 { gap: 3px; height: 170px; }
.chart.h24 .bar { border-radius: 4px 4px 2px 2px; }
.emotes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.emotes img { width: 40px; height: 40px; padding: 4px; border-radius: 10px; background: rgb(var(--line) / .05); border: 1px solid rgb(var(--line) / .08); transition: transform .3s var(--ease); }
.emotes img:hover { transform: scale(1.25) rotate(-6deg); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tags span { padding: 5px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: rgb(var(--primary-2)); background: rgb(var(--primary) / .12); border: 1px solid rgb(var(--primary) / .25); }
@media (max-width: 640px) { .stat dd.txt { font-size: 24px; } }

/* ── Twitch / live ──────────────────────────────────── */
.live-box { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; border-radius: 28px; padding: 28px; border: 1px solid rgb(var(--line) / .1); background: radial-gradient(ellipse 80% 120% at 100% 0%, rgb(var(--primary) / .22), transparent 60%), rgb(var(--surface)); }
@media (min-width: 900px) { .live-box { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; padding: 44px; } }
.live-box.is-live { border-color: rgb(var(--live) / .45); background: radial-gradient(ellipse 80% 120% at 100% 0%, rgb(var(--live) / .2), transparent 60%), rgb(var(--surface)); }
.live-state { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: .08em; }
.live-box h2 { margin-top: 12px; font-family: var(--display); font-weight: 900; font-size: clamp(36px, 5.4vw, 60px); line-height: .95; text-transform: uppercase; }
.live-box p { margin-top: 12px; color: rgb(var(--muted)); }
.live-actions { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; }
.vod { display: block; border-radius: 18px; overflow: hidden; background: rgb(var(--surface-2)); box-shadow: 0 0 0 1px rgb(var(--line) / .1); transition: transform .45s var(--ease), box-shadow .45s; }
.vod:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px rgb(var(--primary-2) / .45), 0 24px 50px -24px rgb(var(--primary)); }
.vod .thumb { border-radius: 0; }
.vod .k { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: rgb(var(--muted)); }
.vod .card-body .t { display: block; margin-top: 4px; font-family: var(--display); font-weight: 800; font-size: 22px; line-height: 1.08; }
.mini-list { display: grid; gap: 10px; }
.mini-list a { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 14px; align-items: center; padding: 8px; border-radius: 14px; transition: background-color .2s; }
.mini-list a:hover { background: rgb(var(--line) / .05); }
.mini-list .mini { aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: rgb(var(--surface-2)); }
.mini-list .mini img { width: 100%; height: 100%; object-fit: cover; }
.mini-list .t { font-family: var(--display); font-weight: 800; font-size: 19px; line-height: 1.08; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ── Page clip ──────────────────────────────────────── */
.clip-page { padding: 24px 0 72px; }
.crumb { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: rgb(var(--muted)); transition: color .2s; }
.crumb:hover { color: rgb(var(--text)); }
.clip-layout { margin-top: 18px; display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1100px) { .clip-layout { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; } }
.player { position: relative; aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden; background: #000; box-shadow: 0 0 0 1px rgb(var(--line) / .1), 0 40px 90px -40px rgb(var(--primary) / .8); }
.player img { width: 100%; height: 100%; object-fit: cover; opacity: .75; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player .bigplay { width: 96px; height: 96px; }
.clip-title { margin-top: 22px; font-family: var(--display); font-weight: 900; font-size: clamp(34px, 5vw, 56px); line-height: .98; }
.clip-meta { margin-top: 14px; font-size: 15px; gap: 8px 20px; }
.clip-actions { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px; }
.clip-desc { margin-top: 24px; padding: 20px; border-radius: 18px; border: 1px solid rgb(var(--line) / .08); background: rgb(var(--surface)); color: rgb(var(--text) / .85); }
.clip-desc h2 { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: rgb(var(--muted)); margin-bottom: 8px; }
.prevnext { margin-top: 28px; display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.pn { display: grid; gap: 6px; padding: 14px 16px; border-radius: 16px; border: 1px solid rgb(var(--line) / .08); background: rgb(var(--surface)); transition: border-color .25s, transform .35s var(--ease); min-width: 0; }
.pn:hover { border-color: rgb(var(--primary-2) / .55); transform: translateY(-2px); }
.pn .k { font-size: 13px; font-weight: 600; color: rgb(var(--primary-2)); }
.pn .t { font-family: var(--display); font-weight: 800; font-size: 18px; line-height: 1.1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pn.next { text-align: right; }
.pn.disabled { opacity: .35; pointer-events: none; }
.aside h2 { font-family: var(--display); font-weight: 900; font-size: 30px; text-transform: uppercase; margin-bottom: 14px; }
.aside .mini-list a { grid-template-columns: 128px minmax(0, 1fr); }
.aside .meta { margin-top: 4px; font-size: 12.5px; }
.rank-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 9px; font-family: var(--display); font-weight: 800; font-size: 15px; letter-spacing: .05em; background: rgb(var(--gold) / .14); color: rgb(var(--gold)); border: 1px solid rgb(var(--gold) / .35); }

/* ── États ──────────────────────────────────────────── */
.sk { position: relative; overflow: hidden; background: rgb(var(--line) / .06); border-radius: 10px; }
.sk::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgb(var(--line) / .08), transparent); animation: skMove 1.3s ease-in-out infinite; }
@keyframes skMove { to { transform: translateX(100%); } }
.sk-card { border-radius: var(--radius); overflow: hidden; background: rgb(var(--surface)); box-shadow: 0 0 0 1px rgb(var(--line) / .06); }
.sk-card .sk.th { aspect-ratio: 16 / 9; border-radius: 0; }
.sk-card .bd { display: grid; gap: 10px; padding: 16px; }
.sk.l { height: 13px; } .sk.l.big { height: 22px; } .w70 { width: 70%; } .w40 { width: 40%; }
.state { padding: 48px 24px; text-align: center; border-radius: 22px; border: 1px dashed rgb(var(--line) / .16); background: rgb(var(--line) / .02); }
.state .ico { font-size: 34px; }
.state .t { margin-top: 10px; font-family: var(--display); font-weight: 900; font-size: clamp(26px, 4vw, 34px); line-height: 1.05; }
.state .d { margin: 10px auto 0; max-width: 32em; color: rgb(var(--muted)); }
.state .btn { margin-top: 22px; }

/* ── Recherche (palette) ────────────────────────────── */
.palette { position: fixed; inset: 0; z-index: 90; display: flex; align-items: flex-start; justify-content: center; padding: calc(10vh + env(safe-area-inset-top, 0px)) 14px 14px; background: rgb(3 2 8 / .72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
.palette.open { opacity: 1; visibility: visible; transition: opacity .25s, visibility 0s; }
.pbox { width: 100%; max-width: 640px; max-height: 76vh; display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; border: 1px solid rgb(var(--line) / .12); background: rgb(var(--bg-2)); box-shadow: 0 40px 100px -20px rgb(0 0 0 / .8), 0 0 0 1px rgb(var(--primary) / .15); transform: translateY(-10px) scale(.98); transition: transform .35s var(--ease); }
.palette.open .pbox { transform: none; }
.pbox .field { border-bottom: 1px solid rgb(var(--line) / .08); }
.pbox .input { height: 60px; border: 0; border-radius: 0; background: transparent; font-size: 18px; box-shadow: none; padding-left: 50px; }
.pbox .field svg { left: 18px; }
.presults { overflow-y: auto; padding: 8px; list-style: none; }
.presults a { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; align-items: center; padding: 8px; border-radius: 12px; }
.presults a[aria-selected="true"], .presults a:hover { background: rgb(var(--primary) / .16); }
.presults .mini { aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: rgb(var(--surface-2)); }
.presults .mini img { width: 100%; height: 100%; object-fit: cover; }
.presults .t { font-weight: 600; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.presults .t mark { background: none; color: rgb(var(--primary-2)); }
.presults .meta { margin-top: 2px; font-size: 12.5px; }
.pempty { padding: 28px 16px; text-align: center; color: rgb(var(--muted)); }
.pfoot { display: flex; gap: 16px; padding: 10px 16px; border-top: 1px solid rgb(var(--line) / .08); font-size: 12px; color: rgb(var(--muted)); }

/* ── Toast, retour en haut ──────────────────────────── */
.toast { position: fixed; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); z-index: 95; translate: -50% 0; display: flex; align-items: center; gap: 10px; max-width: calc(100vw - 28px); padding: 12px 18px; border-radius: 14px; background: rgb(var(--surface-2)); border: 1px solid rgb(var(--line) / .14); box-shadow: 0 20px 50px rgb(0 0 0 / .5); font-size: 14.5px; font-weight: 500; opacity: 0; transform: translateY(16px); transition: opacity .3s, transform .4s var(--ease); pointer-events: none; }
.toast.show { opacity: 1; transform: none; }
.to-top { position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 50; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: linear-gradient(140deg, rgb(var(--primary)), #b13cff); box-shadow: 0 14px 30px -10px rgb(var(--primary)); opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .3s, transform .4s var(--ease); }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.notice { margin-top: 18px; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 14px; border: 1px solid rgb(var(--gold) / .35); background: rgb(var(--gold) / .08); font-size: 14px; }
.notice[hidden] { display: none; }

/* ── Footer ─────────────────────────────────────────── */
.footer { margin-top: 40px; border-top: 1px solid rgb(var(--line) / .08); background: linear-gradient(180deg, transparent, rgb(var(--primary) / .05)); }
.foot { display: grid; gap: 32px; padding: 52px 0 28px; }
@media (min-width: 768px) { .foot { grid-template-columns: 1.3fr 1fr 1fr; } }
.foot .brand { font-size: 30px; }
.foot p { margin-top: 12px; color: rgb(var(--muted)); max-width: 26em; }
.foot h3 { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: rgb(var(--muted)); }
.foot ul { list-style: none; margin-top: 14px; display: grid; gap: 10px; }
.foot ul a { color: rgb(var(--text) / .82); transition: color .2s; }
.foot ul a:hover { color: rgb(var(--primary-2)); }
.copy { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 18px 0 28px; border-top: 1px solid rgb(var(--line) / .06); font-size: 13px; color: rgb(var(--muted)); }

/* ── Écran d'intro (accueil, 1 fois par session) ─────── */
.intro { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; }
.intro-bg { position: absolute; inset: 0; background: radial-gradient(ellipse 70% 60% at 50% 45%, #150a2c, rgb(var(--bg)) 70%);
  clip-path: circle(150% at var(--x, 50%) var(--y, 50%)); transition: clip-path .8s cubic-bezier(.7, 0, .25, 1); }
.intro .logo-wrap { position: relative; width: min(340px, 64vw); aspect-ratio: 1; opacity: 0;
  transition: transform .72s cubic-bezier(.7, 0, .2, 1), opacity .2s; will-change: transform; }
.intro .logo-wrap::before { content: ""; position: absolute; inset: -12%; border-radius: 50%; background: radial-gradient(closest-side, rgb(var(--primary) / .6), rgb(var(--hot) / .15) 60%, transparent); filter: blur(24px); animation: haloBreath 1.4s ease-in-out infinite alternate; transition: opacity .35s; }
.intro img { position: relative; width: 100%; height: 100%; border-radius: 28px; -webkit-mask-image: radial-gradient(closest-side, #000 86%, transparent); mask-image: radial-gradient(closest-side, #000 86%, transparent); }
.intro-bar { position: absolute; left: 50%; top: calc(50% + min(170px, 32vw) + 28px); width: min(220px, 50vw); height: 3px; translate: -50% 0; border-radius: 3px; background: rgb(var(--line) / .1); overflow: hidden; transition: opacity .25s; }
.intro-bar i { display: block; height: 100%; background: linear-gradient(90deg, rgb(var(--primary)), rgb(var(--hot))); transform: scaleX(0); transform-origin: left; }
.intro.ready .logo-wrap { opacity: 1; animation: introIn .9s var(--ease) both; }
.intro.ready .intro-bar i { animation: introBar 1.3s var(--ease) both; transform: none; }
/* Sortie : le fond se referme en cercle sur le logo, qui vole jusqu'à sa place dans le hero */
.intro.leaving { pointer-events: none; }
.intro.leaving .intro-bg { clip-path: circle(0% at var(--x, 50%) var(--y, 50%)); }
.intro.leaving .logo-wrap::before, .intro.leaving .intro-bar { opacity: 0; }
.intro-streak { position: fixed; z-index: 101; left: 0; top: 0; width: 2px; height: 2px; pointer-events: none; }
.land-ring { position: fixed; z-index: 101; border-radius: 22px; border: 2px solid rgb(var(--primary-2)); box-shadow: 0 0 24px rgb(var(--primary)), inset 0 0 18px rgb(var(--hot) / .6); pointer-events: none; animation: landRing .75s var(--ease) forwards; }
@keyframes landRing { from { opacity: 1; transform: scale(.8); } to { opacity: 0; transform: scale(2.4); } }
@keyframes introIn { from { opacity: 0; transform: scale(.7) rotate(-6deg); filter: blur(12px) brightness(2); } }
@keyframes introBar { from { transform: scaleX(0); } }
.intro-failsafe { animation: introHide 0s 9s forwards; }
@keyframes introHide { to { visibility: hidden; opacity: 0; pointer-events: none; } }
/* Le hero attend la fin de l'intro pour lancer ses animations */
.intro-active .hero .stagger > *, .intro-active .featured, .intro-active .featured-glow { animation-play-state: paused; }
.intro-run .hero .stagger > .hero-id { animation: none; }
.intro-run:not(.intro-landed) .hero-id img { opacity: 0; }
.intro-run .hero-id .who, .intro-run .hero-id .pill { opacity: 0; transform: translateX(-10px); transition: opacity .5s var(--ease) .12s, transform .5s var(--ease) .12s; }
.intro-landed .hero-id .who, .intro-landed .hero-id .pill { opacity: 1; transform: none; }
.hero-id img.landed { animation: logoPop .55s var(--ease); }
@keyframes logoPop { 0% { transform: scale(1.22); box-shadow: 0 0 0 1px rgb(var(--line) / .3), 0 0 60px 6px rgb(var(--primary)); } 100% { transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
