/* ==========================================================================
   TheBlondGuy · page de liens
   ========================================================================== */

@font-face {
  font-family: "Unbounded";
  src: url("../fonts/unbounded.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Outfit";
  src: url("../fonts/outfit.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0d0b09;
  --bg-raise: #17130f;
  --surface: rgb(255 246 230 / .045);
  --surface-hover: rgb(255 246 230 / .085);
  --border: rgb(255 236 200 / .10);
  --border-strong: rgb(255 236 200 / .18);

  --text: #f8f3ea;
  --text-muted: #bdb3a4;
  --text-dim: #8d8476;

  --gold: #ffd60a;
  --gold-deep: #ffb000;
  --orange: #ff8a1f;
  --live: #ff3b3b;

  --twitch: #9146ff;
  --youtube: #ff0033;
  --rednote: #ff2442;
  --discord: #5865f2;

  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --gutter: 16px;
  --ease-out: cubic-bezier(.2, .8, .2, 1);

  --font-cjk: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Noto Sans CJK SC", "Source Han Sans SC";
  --font-display: "Unbounded", "Outfit", system-ui, sans-serif;
  --font-body: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  color-scheme: dark;
}

/* Chinois : les polices de la page n'ont pas d'idéogrammes, on enchaîne sur les polices CJK du système */
:lang(zh) {
  --font-display: "Unbounded", "Outfit", var(--font-cjk), system-ui, sans-serif;
  --font-body: "Outfit", var(--font-cjk), system-ui, sans-serif;
}

/* Japonais (« ニコニコ ») : polices japonaises du système, sinon Windows prend une police très fine */
:lang(ja) {
  font-family: "Outfit", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", Meiryo, "Noto Sans JP", sans-serif;
}

/* Langue de départ autre que le français : page masquée le temps de traduire (quelques ms) */
.i18n-pending body {
  visibility: hidden;
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.5 var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

::selection {
  background: var(--gold);
  color: #14110c;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Ambiance (fond animé) ---------- */

/* Performance (Firefox surtout) : aucun backdrop-filter sur les éléments posés sur ce fond animé,
   sinon le flou est recalculé à chaque image et la page saccade. Les seuls flous restants
   (fenêtres, changement de langue) mettent les formes en pause tant qu'ils sont affichés. */

.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.ambient::after {
  /* grain léger */
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .045;
}

.blob {
  position: absolute;
  width: 70vmax;
  height: 70vmax;
  border-radius: 50%;
  will-change: transform;
  animation: drift 26s ease-in-out infinite alternate;
}

html:has(dialog[open], .translate-overlay.is-visible) .blob {
  animation-play-state: paused;
}

.blob--gold {
  top: -36vmax;
  left: -28vmax;
  background: radial-gradient(closest-side, rgb(255 214 10 / .30), transparent);
}

.blob--orange {
  right: -32vmax;
  bottom: -40vmax;
  background: radial-gradient(closest-side, rgb(255 122 26 / .24), transparent);
  animation-duration: 32s;
  animation-direction: alternate-reverse;
}

.blob--purple {
  top: 22%;
  right: -46vmax;
  background: radial-gradient(closest-side, rgb(145 70 255 / .20), transparent);
  animation-duration: 38s;
  transition: background .6s;
}

.is-live .blob--purple {
  background: radial-gradient(closest-side, rgb(255 59 59 / .22), transparent);
}

@keyframes drift {
  to {
    transform: translate3d(6vmax, 4vmax, 0) scale(1.08);
  }
}

/* ---------- Mise en page ---------- */

.page {
  position: relative;
  z-index: 1;
  max-width: calc(560px + 2 * var(--gutter));
  margin-inline: auto;
  padding:
    max(var(--gutter), env(safe-area-inset-top))
    max(var(--gutter), env(safe-area-inset-right))
    calc(40px + env(safe-area-inset-bottom))
    max(var(--gutter), env(safe-area-inset-left));
}

.has-dock .page {
  padding-bottom: calc(110px + env(safe-area-inset-bottom));
}

/* ---------- Photo IRL ---------- */

.photo-card {
  position: relative;
  margin: 0;
  aspect-ratio: 5 / 4;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--bg-raise);
  box-shadow:
    0 0 0 1px var(--border),
    0 30px 80px -40px rgb(255 176 0 / .5);
  isolation: isolate;
}

.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 15%;
}

.photo-card::before {
  /* reflet qui suit la souris (desktop) */
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(520px circle at var(--gx, 50%) var(--gy, 0%), rgb(255 255 255 / .16), transparent 42%);
  opacity: 0;
  transition: opacity .4s;
  pointer-events: none;
}

.photo-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to top, rgb(13 11 9 / .55), transparent 38%),
    linear-gradient(to bottom, rgb(13 11 9 / .35), transparent 28%);
  pointer-events: none;
}

.photo-card.is-tilting::before {
  opacity: 1;
}

.photo-card__tag {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  padding: 7px 10px 6px;
  border-radius: 999px;
  background: var(--gold);
  color: #14110c;
  font: 700 11px/1 var(--font-display);
  letter-spacing: .14em;
  text-transform: uppercase;
}

/* ---------- Choix de la langue (en haut de page) ---------- */

.topbar {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.lang-picker {
  position: relative;
}

.plan-btn,
.lang-picker__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: rgb(255 246 230 / .06);
  color: var(--text);
  font-size: .9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .2s, background-color .2s;
}

.plan-btn:hover,
.lang-picker__btn:hover,
.lang-picker__btn[aria-expanded="true"] {
  border-color: rgb(255 214 10 / .55);
  background: rgb(255 246 230 / .1);
}

.plan-btn svg,
.lang-picker__btn > svg:first-child {
  width: 18px;
  height: 18px;
  color: var(--gold);
}

.lang-picker__chevron {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  transition: transform .25s var(--ease-out);
}

.lang-picker__btn[aria-expanded="true"] .lang-picker__chevron {
  transform: rotate(180deg);
}

.lang-picker__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  margin: 0;
  padding: 6px;
  list-style: none;
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  background: rgb(20 17 13 / .96);
  box-shadow: 0 20px 50px -16px rgb(0 0 0 / .85);
  transform-origin: top right;
  animation: menu-in .18s var(--ease-out);
}

.lang-picker__menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--text);
  font-size: .9375rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background-color .15s;
}

.lang-picker__menu button:hover {
  background: rgb(255 255 255 / .07);
}

.lang-picker__menu button::before {
  /* coche de la langue active */
  content: "";
  flex: none;
  width: 16px;
  height: 16px;
}

.lang-picker__menu button[aria-pressed="true"] {
  color: var(--gold);
  font-weight: 600;
}

.lang-picker__menu button[aria-pressed="true"]::before {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffd60a' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 16px no-repeat;
}

.lang-picker__code {
  margin-left: auto;
  color: var(--text-dim);
  font: 700 .6875rem/1 var(--font-display);
  letter-spacing: .08em;
}

@keyframes menu-in {
  from {
    opacity: 0;
    transform: translateY(-4px) scale(.97);
  }
}

/* ---------- Profil ---------- */

.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.avatar {
  position: relative;
  z-index: 2;
  width: 124px;
  height: 124px;
  margin-top: -62px;
  border-radius: 50%;
  background: var(--bg);
  box-shadow:
    0 0 0 6px var(--bg),
    0 18px 44px -12px rgb(255 214 10 / .5);
}

.avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.avatar::after {
  /* anneau rouge quand le live est en cours */
  content: "";
  position: absolute;
  inset: -10px;
  border: 3px solid var(--live);
  border-radius: 50%;
  opacity: 0;
  transform: scale(.92);
  transition: opacity .35s, transform .35s var(--ease-out);
  pointer-events: none;
}

.is-live .avatar::after {
  opacity: 1;
  transform: none;
  animation: ring-pulse 2s var(--ease-out) infinite;
}

.avatar__live {
  position: absolute;
  bottom: -13px;
  left: 50%;
  z-index: 1;
  transform: translateX(-50%);
  padding: 5px 9px 4px;
  border-radius: 6px;
  background: var(--live);
  box-shadow: 0 0 0 3px var(--bg);
  color: #fff;
  font: 700 11px/1 var(--font-display);
  letter-spacing: .12em;
  text-transform: uppercase;
}

.identity {
  margin-top: 18px;
}

.is-live .identity {
  margin-top: 26px;
}

.name {
  margin: 0;
  font: 800 clamp(1.75rem, 7.4vw, 2.25rem)/1.05 var(--font-display);
  letter-spacing: -.02em;
}

.name__accent {
  background: linear-gradient(100deg, var(--gold) 10%, var(--gold-deep) 55%, var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.handle-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 10px;
  margin-top: 6px;
}

.handle {
  margin: 0;
  color: var(--text-muted);
  font-weight: 500;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px 0 10px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-muted);
  font-size: .8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s, transform .2s var(--ease-out);
}

.share-btn:hover {
  border-color: rgb(255 214 10 / .5);
  background: var(--surface-hover);
  color: var(--text);
}

.share-btn:active {
  transform: scale(.95);
}

.share-btn svg {
  width: 14px;
  height: 14px;
}

.aka {
  margin: 2px 0 0;
  color: var(--text-dim);
  font-size: .875rem;
}

.aka strong {
  color: var(--text-muted);
  font-weight: 600;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.tags li {
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-muted);
  font-size: .8125rem;
  font-weight: 500;
}

.tags .tags__place {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding-left: 9px;
}

.tags__place svg {
  width: 14px;
  height: 14px;
  color: var(--gold);
}

.bio {
  max-width: 42ch;
  margin: 16px 0 0;
  color: var(--text-muted);
  text-wrap: balance;
}

.bio .nowrap {
  white-space: nowrap;
}

.bio a,
.steps a {
  color: var(--text);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgb(255 214 10 / .55);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color .2s, text-decoration-color .2s;
}

.bio a:hover,
.steps a:hover {
  color: var(--gold);
  text-decoration-color: var(--gold);
}

/* Bandeau « en live » */

.live-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-top: 20px;
  padding: 12px 12px 12px 16px;
  border: 1px solid rgb(255 59 59 / .45);
  border-radius: var(--radius-md);
  background: linear-gradient(120deg, rgb(255 59 59 / .22), rgb(255 59 59 / .06));
  text-align: left;
  cursor: pointer;
  animation: rise .6s var(--ease-out) backwards;
  transition: transform .25s var(--ease-out), border-color .25s;
}

.live-banner:hover {
  transform: translateY(-1px);
  border-color: rgb(255 59 59 / .75);
}

.live-banner__text {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.live-banner__text strong {
  color: #ff7a7a;
  font: 700 .75rem/1.3 var(--font-display);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.live-banner__title {
  overflow: hidden;
  font-size: .9375rem;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.live-banner__cta {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 6px;
  padding: 8px 12px 8px 14px;
  border-radius: 999px;
  background: var(--live);
  color: #fff;
  font-size: .875rem;
  font-weight: 600;
}

.live-banner__cta svg {
  width: 14px;
  height: 14px;
}

.live-dot {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--live);
  animation: dot-pulse 1.6s infinite;
}

/* ---------- Liens ---------- */

.content > nav {
  margin-top: 26px;
}

/* Petits titres de groupe (Monde, Français, Chinois, Japonais) */
.link-group + .link-group {
  margin-top: 24px;
}

.link-group__title,
.panel-subtitle {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  padding: 0 4px;
  color: var(--text-dim);
  font: 700 .6875rem/1.2 var(--font-display);
  letter-spacing: .14em;
  text-transform: uppercase;
}

.link-group__title::after,
.panel-subtitle::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border-strong), transparent);
}

.links {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.link {
  --brand: var(--gold);
  --brand-rgb: 255 214 10;

  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 74px;
  padding: 12px 14px 12px 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background-color: var(--surface);
  -webkit-tap-highlight-color: transparent;
  transition:
    transform .3s var(--ease-out),
    border-color .3s,
    background-color .3s,
    box-shadow .3s;
}

.link::before {
  /* reflet au survol */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgb(255 255 255 / .08) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform .8s var(--ease-out);
  pointer-events: none;
}

.link:active {
  transform: scale(.985);
}

.link__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--brand);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / .22),
    0 8px 20px -8px rgb(var(--brand-rgb) / .8);
}

.link__icon svg {
  width: 24px;
  height: 24px;
}

.link__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.link__title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.25;
}

.link__desc {
  color: var(--text-muted);
  font-size: .875rem;
  line-height: 1.35;
  text-wrap: balance;
}

.link__alt {
  color: var(--text-dim);
  font-size: .9375rem;
  font-weight: 500;
}

.link__arrow {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgb(255 255 255 / .04);
  color: var(--text-dim);
  transition: transform .3s var(--ease-out), color .3s, background-color .3s;
}

.link__arrow svg {
  width: 16px;
  height: 16px;
}

.link__cta {
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--brand);
  box-shadow: 0 8px 20px -8px rgb(var(--brand-rgb) / .9);
  color: #fff;
  font-size: .875rem;
  font-weight: 600;
  white-space: nowrap;
  transition: transform .3s var(--ease-out);
}

.chip {
  padding: 4px 7px 3px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: rgb(255 255 255 / .06);
  color: var(--text-muted);
  font: 600 .625rem/1 var(--font-display);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.badge-live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 7px 3px;
  border-radius: 6px;
  background: var(--live);
  color: #fff;
  font: 700 .625rem/1 var(--font-display);
  letter-spacing: .1em;
  text-transform: uppercase;
}

.badge-live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  animation: blink 1.4s infinite;
}

@media (hover: hover) {
  .link:hover {
    transform: translateY(-2px);
    border-color: rgb(var(--brand-rgb) / .55);
    background-color: var(--surface-hover);
    box-shadow: 0 16px 36px -18px rgb(var(--brand-rgb) / .75);
  }

  .link:hover::before {
    transform: translateX(100%);
  }

  .link:hover .link__arrow {
    transform: translate(2px, -2px);
    background: rgb(var(--brand-rgb) / .2);
    color: var(--text);
  }

  .link:hover .link__cta {
    transform: translateX(2px);
  }
}

/* Couleurs des plateformes */

.link--twitch {
  --brand: var(--twitch);
  --brand-rgb: 145 70 255;
}

.link--youtube {
  --brand: var(--youtube);
  --brand-rgb: 255 0 51;
}

.link--tiktok {
  --brand: #000;
  --brand-rgb: 37 244 238;
}

.link--tiktok .link__icon {
  border: 1px solid rgb(255 255 255 / .12);
}

.link--tiktok .link__icon svg {
  filter: drop-shadow(-1.5px -1.5px 0 #25f4ee) drop-shadow(1.5px 1.5px 0 #fe2c55);
}

.link--instagram {
  --brand: linear-gradient(45deg, #feda75 0%, #fa7e1e 25%, #d62976 55%, #962fbf 80%, #4f5bd5 100%);
  --brand-rgb: 214 41 118;
}

.link--x {
  --brand: #000;
  --brand-rgb: 220 220 220;
}

.link--x .link__icon,
.link--niconico .link__icon {
  border: 1px solid rgb(255 255 255 / .14);
}

.link--x .link__icon svg {
  width: 20px;
  height: 20px;
}

.link--niconico {
  --brand: #231815;
  --brand-rgb: 220 220 220;
}

.link--rednote {
  --brand: var(--rednote);
  --brand-rgb: 255 36 66;
}

.link--rednote .link__icon svg {
  width: 36px;
  height: 17px;
}

.link--discord {
  --brand: var(--discord);
  --brand-rgb: 88 101 242;
}

/* Liens mis en avant (Twitch, Discord) */

.link--featured {
  min-height: 86px;
  padding: 14px 14px 14px 14px;
  border-color: rgb(var(--brand-rgb) / .4);
  background-image: linear-gradient(135deg, rgb(var(--brand-rgb) / .3), rgb(var(--brand-rgb) / .06) 62%);
}

.link--featured .link__icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
}

.link--featured .link__icon svg {
  width: 28px;
  height: 28px;
}

.link--featured .link__title {
  font-size: 1.1875rem;
}

.is-live .link--twitch {
  border-color: rgb(255 59 59 / .6);
  box-shadow:
    0 0 0 1px rgb(255 59 59 / .25),
    0 18px 40px -18px rgb(255 59 59 / .75);
}

/* ---------- Contenu des fenêtres Sub gratuit / Sub Prime ---------- */

.panel-hero {
  --hero-rgb: 255 214 10;

  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 18px;
  border: 1px solid rgb(var(--hero-rgb) / .4);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgb(var(--hero-rgb) / .24), rgb(var(--hero-rgb) / .05) 65%), var(--surface);
}

.panel-hero--twitch {
  --hero-rgb: 145 70 255;
}

.panel-hero--flame {
  --hero-rgb: 255 107 53;
}

/* Rang Vétéran : le logo du rang en vedette, texte centré dessous */
.panel-hero--badge {
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  gap: 6px;
  padding-top: 14px;
  background:
    radial-gradient(55% 40% at 50% 18%, rgb(145 70 255 / .3), transparent 75%),
    linear-gradient(135deg, rgb(var(--hero-rgb) / .2), rgb(var(--hero-rgb) / .04) 65%),
    var(--surface);
  text-align: center;
}

.panel-hero__badge img {
  display: block;
  width: 132px;
  height: 132px;
  filter: drop-shadow(0 10px 22px rgb(145 70 255 / .5));
  animation: badge-in .7s var(--ease-out) .1s backwards;
}

@keyframes badge-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(.7) rotate(-8deg);
  }
}

.panel-hero__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgb(var(--hero-rgb));
  box-shadow: 0 8px 20px -8px rgb(var(--hero-rgb) / .8);
  color: #14110c;
}

.panel-hero--twitch .panel-hero__icon {
  color: #fff;
}

.panel-hero__icon svg {
  width: 24px;
  height: 24px;
}

.panel-hero__title {
  margin: 2px 0 0;
  font: 700 1.125rem/1.3 var(--font-display);
  text-wrap: balance;
}

.panel-hero__text {
  margin: 6px 0 0;
  color: var(--text-muted);
  font-size: .9375rem;
  text-wrap: pretty;
}

/* Prix en Flams (points de chaîne Twitch) */
.panel-hero__price {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 12px 0 0;
  padding: 7px 14px 7px 10px;
  border-radius: 999px;
  background: rgb(var(--hero-rgb));
  box-shadow: 0 8px 20px -10px rgb(var(--hero-rgb) / .9);
  color: #14110c;
  font-size: .9375rem;
  font-weight: 600;
}

.panel-hero__price strong {
  font: 800 1rem/1 var(--font-display);
}

.panel-hero__price svg {
  width: 18px;
  height: 18px;
}

.panel-subtitle {
  margin-top: 26px;
}

.steps {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding: 14px 16px 14px 58px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--text-muted);
  font-size: .9375rem;
  counter-increment: step;
  text-wrap: pretty;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  top: 13px;
  left: 14px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--gold);
  color: #14110c;
  font: 800 .875rem/1 var(--font-display);
}

.steps strong,
.prime-upsell strong,
.perk p strong,
.rules strong {
  color: var(--text);
  font-weight: 600;
}

.rules {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 16px 18px;
  list-style: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.rules li {
  position: relative;
  padding-left: 18px;
  color: var(--text-muted);
  font-size: .875rem;
  text-wrap: pretty;
}

.rules li::before {
  content: "";
  position: absolute;
  top: .6em;
  left: 2px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

/* Mises en garde (ex. rang retiré en cas de ban) */
.rules--warn {
  border-color: rgb(255 107 53 / .45);
  background: linear-gradient(135deg, rgb(255 107 53 / .12), rgb(255 107 53 / .03) 70%), var(--surface);
}

.rules--warn li::before {
  background: #ff7a45;
}

.perks {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.perk {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  padding: 14px 16px 14px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.perk__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgb(255 214 10 / .12);
  color: var(--gold);
}

.perk__icon svg {
  width: 20px;
  height: 20px;
}

.perk__title {
  display: block;
  font-weight: 600;
}

.perk p {
  margin: 3px 0 0;
  color: var(--text-muted);
  font-size: .875rem;
  text-wrap: pretty;
}

/* Gloulgou : la récompense « bois de l'eau », en bleu eau */
.perk--gloulgou {
  border-color: rgb(56 189 248 / .45);
  background: linear-gradient(135deg, rgb(56 189 248 / .14), rgb(56 189 248 / .03) 70%), var(--surface);
}

.perk--gloulgou .perk__icon {
  background: rgb(56 189 248 / .16);
  color: #5ccfff;
}

.panel-cta {
  --cta: var(--gold);
  --cta-rgb: 255 214 10;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 54px;
  margin-top: 20px;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  background: var(--cta);
  box-shadow: 0 14px 30px -14px rgb(var(--cta-rgb) / .9);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  transition: transform .25s var(--ease-out), filter .25s;
}

.panel-cta:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
}

.panel-cta svg {
  flex: none;
  width: 20px;
  height: 20px;
}

.panel-cta--discord {
  --cta: var(--discord);
  --cta-rgb: 88 101 242;
}

.panel-cta--twitch {
  --cta: var(--twitch);
  --cta-rgb: 145 70 255;
}

.panel-cta--amazon {
  --cta: #ff9900;
  --cta-rgb: 255 153 0;

  min-height: 48px;
  margin-top: 12px;
  color: #14110c;
}

.prime-upsell {
  margin-top: 14px;
  padding: 16px 18px;
  border: 1px dashed rgb(255 153 0 / .45);
  border-radius: var(--radius-md);
  background: rgb(255 153 0 / .05);
}

.prime-upsell p {
  margin: 0;
  color: var(--text-muted);
  font-size: .9375rem;
  text-wrap: pretty;
}

.prime-upsell .disclosure,
.panel-note {
  color: var(--text-dim);
  font-size: .75rem;
}

.prime-upsell .disclosure {
  margin-top: 10px;
}

.panel-note {
  margin: 14px 0 0;
  text-align: center;
}

/* ---------- Pied de page ---------- */

.footer {
  margin-top: 36px;
  color: var(--text-dim);
  font-size: .8125rem;
  text-align: center;
}

.footer p {
  margin: 0;
}

.footer .footer__credit {
  margin-top: 6px;
}

.footer__credit a {
  color: var(--text-muted);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgb(255 214 10 / .5);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color .2s, text-decoration-color .2s;
}

.footer__credit a:hover {
  color: var(--gold);
  text-decoration-color: var(--gold);
}

/* ---------- Animations d'entrée ---------- */

.reveal {
  /* « backwards » : l'état initial ne bloque pas les transforms ensuite (survol, inclinaison) */
  animation: rise .8s var(--ease-out) backwards;
  animation-delay: calc(var(--i, 0) * 55ms + 60ms);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}

@keyframes ring-pulse {
  0% {
    box-shadow: 0 0 0 0 rgb(255 59 59 / .55);
  }
  70%,
  100% {
    box-shadow: 0 0 0 14px rgb(255 59 59 / 0);
  }
}

@keyframes dot-pulse {
  0% {
    box-shadow: 0 0 0 0 rgb(255 59 59 / .6);
  }
  80%,
  100% {
    box-shadow: 0 0 0 8px rgb(255 59 59 / 0);
  }
}

@keyframes blink {
  50% {
    opacity: .35;
  }
}

/* ==========================================================================
   Lecteur live flottant
   ========================================================================== */

.dock {
  --dock-gap: 20px;

  position: fixed;
  z-index: 50;
  width: clamp(400px, 30vw, 560px);
  max-width: calc(100vw - 2 * var(--dock-gap));
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  background: rgb(20 17 13 / .92);
  box-shadow:
    0 30px 70px -20px rgb(0 0 0 / .85),
    0 0 0 1px rgb(255 59 59 / .12),
    0 0 60px -24px rgb(255 59 59 / .5);
  opacity: 0;
  transform: translateY(16px) scale(.98);
  transition: opacity .35s var(--ease-out), transform .45s var(--ease-out);
}

.dock.is-open {
  opacity: 1;
  transform: none;
}

.dock.is-dragging {
  transition: none;
  cursor: grabbing;
  user-select: none;
}

.dock[data-corner="br"] { right: var(--dock-gap); bottom: calc(var(--dock-gap) + env(safe-area-inset-bottom)); }
.dock[data-corner="bl"] { left: var(--dock-gap); bottom: calc(var(--dock-gap) + env(safe-area-inset-bottom)); }
.dock[data-corner="tr"] { right: var(--dock-gap); top: calc(var(--dock-gap) + env(safe-area-inset-top)); }
.dock[data-corner="tl"] { left: var(--dock-gap); top: calc(var(--dock-gap) + env(safe-area-inset-top)); }

.dock[data-state="collapsed"] {
  width: min(360px, 100vw - 2 * var(--dock-gap));
  border-radius: 16px;
}

.dock__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 8px 8px 12px;
  touch-action: none;
}

.dock__badge {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 7px;
  padding: 6px 9px 5px 8px;
  border-radius: 7px;
  background: rgb(255 59 59 / .16);
  color: #ff6b6b;
  font: 700 .6875rem/1 var(--font-display);
  letter-spacing: .1em;
  text-transform: uppercase;
}

.dock__badge .live-dot {
  width: 8px;
  height: 8px;
}

.dock__meta {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  min-width: 0;
  margin: 0;
  padding: 3px 6px;
  border: 0;
  border-radius: 8px;
  background: none;
  text-align: left;
  cursor: pointer;
}

.dock__title,
.dock__sub {
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.dock__title {
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.25;
}

.dock__sub {
  color: var(--text-dim);
  font-size: .75rem;
  line-height: 1.3;
}

.dock__sub:empty {
  display: none;
}

.dock__actions {
  display: flex;
  flex: none;
  gap: 2px;
}

.dock__btn {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: background-color .2s, color .2s;
}

.dock__btn:hover {
  background: rgb(255 255 255 / .08);
  color: var(--text);
}

.dock__btn svg {
  width: 18px;
  height: 18px;
}

.dock__btn--toggle svg {
  transition: transform .3s var(--ease-out);
}

.dock[data-state="collapsed"] .dock__btn--toggle svg {
  transform: rotate(180deg);
}

/* Twitch : lecteur ≥ 400×300 px pour l'autoplay. Hauteur en 16:9 via cqw
   (aspect-ratio + min-height élargirait le lecteur au-delà de la carte). */
.dock {
  container-type: inline-size;
}

.dock__player {
  position: relative;
  height: 300px;
  height: max(300px, 56.25cqw);
  background: #000;
}

.dock[data-state="collapsed"] .dock__player,
.dock[data-state="collapsed"] .dock__actions a {
  display: none;
}

.dock__host {
  position: absolute;
  inset: 0;
}

.dock__host iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* l'iframe avalerait les événements du pointeur pendant le déplacement */
.dock.is-pressing .dock__host,
.dock.is-dragging .dock__host {
  pointer-events: none;
}

.dock__notice {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 14px;
  padding: 24px;
  background: radial-gradient(circle at 50% 30%, rgb(145 70 255 / .3), transparent 62%), #0a0908;
  color: var(--text-muted);
  font-size: .875rem;
  text-align: center;
}

.dock__notice a {
  justify-self: center;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--twitch);
  color: #fff;
  font-weight: 600;
}

@media (min-width: 480px) {
  .dock__bar {
    cursor: grab;
  }
}

/* Sonde invisible utilisée seulement si l'API de statut ne répond pas */
.twitch-probe {
  position: fixed;
  top: 0;
  left: -10000px;
  width: 400px;
  height: 300px;
  opacity: 0;
  pointer-events: none;
}

/* ==========================================================================
   Fenêtres : planning de la semaine, Sub gratuit, Sub Prime
   (feuille en bas sur téléphone, carte au centre sur grand écran)
   ========================================================================== */

html:has(.planning[open], .popup[open]) {
  overflow: hidden;
}

.planning,
.popup {
  width: 100%;
  max-width: 100%;
  max-height: 88dvh;
  margin: auto auto 0;
  padding: 0;
  border: 1px solid var(--border-strong);
  border-bottom: 0;
  border-radius: 24px 24px 0 0;
  background: #15120e;
  box-shadow: 0 -20px 60px -20px rgb(0 0 0 / .8);
  color: var(--text);
}

.planning[open],
.popup[open] {
  display: flex;
  flex-direction: column;
  animation: sheet-up .35s var(--ease-out);
}

.planning::backdrop,
.popup::backdrop {
  background: rgb(13 11 9 / .6);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.planning__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 20px 14px;
}

.planning__title {
  margin: 0;
  font: 700 1.125rem/1.25 var(--font-display);
}

.planning__week {
  margin: 4px 0 0;
  color: var(--text-dim);
  font-size: .875rem;
}

.planning__close,
.popup__close {
  display: grid;
  flex: none;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: rgb(255 255 255 / .06);
  color: var(--text-muted);
  cursor: pointer;
  transition: background-color .2s, color .2s;
}

.planning__close:hover,
.popup__close:hover {
  background: rgb(255 255 255 / .12);
  color: var(--text);
}

.planning__close svg,
.popup__close svg {
  width: 18px;
  height: 18px;
}

.planning__body,
.popup__body {
  flex: 1;
  min-height: 0;
  padding: 0 20px 12px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.planning__next {
  margin-bottom: 14px;
  padding: 14px 16px;
  border: 1px solid rgb(145 70 255 / .4);
  border-radius: 16px;
  background: linear-gradient(135deg, rgb(145 70 255 / .25), rgb(145 70 255 / .06));
}

.planning__next.is-live {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-color: rgb(255 59 59 / .5);
  background: linear-gradient(120deg, rgb(255 59 59 / .22), rgb(255 59 59 / .06));
}

.planning__next p {
  margin: 0;
}

.planning__next-label {
  color: #c4a1ff;
  font: 700 .6875rem/1.2 var(--font-display);
  letter-spacing: .1em;
  text-transform: uppercase;
}

.is-live .planning__next-label {
  color: #ff7a7a;
}

.planning__next-when {
  margin-top: 6px !important;
  font-weight: 600;
}

.planning__next-when::first-letter {
  text-transform: uppercase;
}

.planning__next-rel {
  color: var(--text-muted);
  font-weight: 500;
}

.planning__next-title {
  margin-top: 2px !important;
  color: var(--text-muted);
  font-size: .875rem;
  overflow-wrap: anywhere;
}

.planning__watch {
  flex: none;
  padding: 9px 14px;
  border: 0;
  border-radius: 999px;
  background: var(--live);
  color: #fff;
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
}

.plan-days {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.plan-day {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}

.plan-day.is-today {
  border-color: rgb(255 214 10 / .5);
  background: rgb(255 214 10 / .06);
}

.plan-day.is-past {
  opacity: .5;
}

.plan-day__date {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.15;
}

.plan-day__dow {
  color: var(--text-dim);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.plan-day__num {
  font: 700 1.125rem/1.2 var(--font-display);
}

.is-today .plan-day__dow,
.is-today .plan-day__num {
  color: var(--gold);
}

.plan-day__events {
  display: grid;
  justify-items: start;
  gap: 8px;
  min-width: 0;
  padding-top: 2px;
}

.plan-day__rest {
  padding-top: 5px;
  color: var(--text-dim);
  font-size: .875rem;
}

.plan-ev {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.plan-ev.is-past {
  opacity: .6;
}

.plan-ev__time {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .875rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.plan-ev__title {
  font-size: .9375rem;
  overflow-wrap: anywhere;
}

.plan-ev__cat {
  color: var(--text-dim);
  font-size: .8125rem;
}

.plan-badge {
  padding: 4px 7px 3px;
  border-radius: 6px;
  font: 700 .625rem/1 var(--font-display);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.plan-badge--today {
  background: var(--gold);
  color: #14110c;
}

.plan-badge--live {
  background: var(--live);
  color: #fff;
}

.planning__status {
  margin: 14px 0 0;
  color: var(--text-muted);
  font-size: .875rem;
  text-align: center;
  text-wrap: balance;
}

.planning__status:empty {
  display: none;
}

.planning__foot {
  display: grid;
  gap: 10px;
  padding: 12px 20px calc(16px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
}

.planning__tz {
  margin: 0;
  color: var(--text-dim);
  font-size: .75rem;
}

.planning__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.planning__links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-size: .8125rem;
  font-weight: 600;
  transition: border-color .2s, background-color .2s;
}

.planning__links a:hover {
  border-color: rgb(255 214 10 / .55);
  background: rgb(255 255 255 / .05);
}

.planning__links svg {
  width: 16px;
  height: 16px;
  color: #a970ff;
}

.planning__links a + a svg {
  color: #8c95ff;
}

/* Fenêtres cachées Sub gratuit / Sub Prime : ouvertes seulement par lien direct (#freesub, /prime…) */
.popup {
  --accent: var(--gold);
  --accent-rgb: 255 214 10;

  background:
    radial-gradient(120% 40% at 50% 0%, rgb(var(--accent-rgb) / .13), transparent 70%),
    #15120e;
}

.popup--prime {
  --accent: #b48cff;
  --accent-rgb: 145 70 255;
}

.popup--veteran {
  --accent: #ff8a5c;
  --accent-rgb: 255 107 53;
}

.popup__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 16px 14px 20px;
}

.popup__label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 7px 12px 7px 10px;
  border: 1px solid rgb(var(--accent-rgb) / .35);
  border-radius: 999px;
  background: rgb(var(--accent-rgb) / .1);
  color: var(--accent);
  font: 700 .6875rem/1 var(--font-display);
  letter-spacing: .12em;
  text-transform: uppercase;
}

.popup__label svg {
  width: 14px;
  height: 14px;
}

.popup__body {
  padding-bottom: calc(20px + env(safe-area-inset-bottom));
}

/* « Voir tous mes liens » : ferme la fenêtre et laisse la page de liens */
.popup__back {
  display: block;
  width: 100%;
  margin-top: 14px;
  padding: 12px 16px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--text-muted);
  font-size: .9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .2s, background-color .2s, color .2s;
}

.popup__back:hover {
  border-color: rgb(var(--accent-rgb) / .55);
  background: rgb(255 255 255 / .05);
  color: var(--text);
}


@media (min-width: 640px) {
  .planning,
  .popup {
    width: min(540px, 100vw - 48px);
    max-height: min(760px, 90dvh);
    margin: auto;
    border-bottom: 1px solid var(--border-strong);
    border-radius: 24px;
  }

  .planning[open],
  .popup[open] {
    animation-name: pop-in;
  }
}

@keyframes sheet-up {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
}

@keyframes pop-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(.97);
  }
}

/* ==========================================================================
   Changement de langue : flou de toute la page + petite animation
   ========================================================================== */

.translate-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgb(13 11 9 / .3);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
  backdrop-filter: blur(16px) saturate(1.15);
  opacity: 0;
  transition: opacity .4s var(--ease-out);
}

.translate-overlay.is-visible {
  opacity: 1;
}

.translate-card {
  display: grid;
  justify-items: center;
  gap: 4px;
  min-width: 240px;
  max-width: calc(100vw - 48px);
  padding: 28px 32px 24px;
  border: 1px solid var(--border-strong);
  border-radius: 24px;
  background: rgb(20 17 13 / .78);
  box-shadow:
    0 30px 80px -24px rgb(0 0 0 / .8),
    0 0 70px -30px rgb(255 214 10 / .45);
  text-align: center;
  transform: translateY(10px) scale(.95);
  transition: transform .5s var(--ease-out);
}

.translate-overlay.is-visible .translate-card {
  transform: none;
}

.translate-spinner {
  position: relative;
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  margin-bottom: 14px;
}

.translate-spinner__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(rgb(255 214 10 / 0) 0%, rgb(255 214 10 / .15) 35%, var(--gold) 75%, var(--orange) 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 calc(100% - 5px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 calc(100% - 5px));
  animation: spin .9s linear infinite;
}

.translate-spinner__orbit {
  position: absolute;
  inset: 13px;
  border: 2px dashed rgb(255 255 255 / .2);
  border-radius: 50%;
  animation: spin 3s linear infinite reverse;
}

.translate-spinner__orbit::after {
  /* petit satellite qui tourne en sens inverse */
  content: "";
  position: absolute;
  top: -5px;
  left: 50%;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  border-radius: 50%;
  background: var(--twitch);
  box-shadow: 0 0 12px rgb(145 70 255 / .9);
}

.translate-spinner__label {
  font: 800 .9375rem/1 var(--font-display);
  letter-spacing: .04em;
  animation: label-pulse 1.3s ease-in-out infinite;
}

.translate-title {
  margin: 0;
  font: 700 1.0625rem/1.3 var(--font-display);
}

.translate-sub {
  margin: 0;
  color: var(--text-muted);
  font-size: .875rem;
}

.translate-sub::after {
  content: "";
  display: inline-block;
  width: 1.2em;
  text-align: left;
  animation: dots 1.2s steps(1) infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes label-pulse {
  50% {
    opacity: .55;
    transform: scale(.94);
  }
}

@keyframes dots {
  0% { content: ""; }
  25% { content: "."; }
  50% { content: ".."; }
  75% { content: "..."; }
}

/* ---------- Toast ---------- */

.toast {
  position: fixed;
  top: calc(16px + env(safe-area-inset-top));
  left: 50%;
  z-index: 60;
  width: max-content;
  max-width: calc(100vw - 32px);
  padding: 10px 18px;
  border-radius: 18px;
  background: var(--text);
  box-shadow: 0 12px 30px -10px rgb(0 0 0 / .6);
  color: #14110c;
  font-size: .875rem;
  font-weight: 600;
  opacity: 0;
  transform: translate(-50%, -12px);
  transition: opacity .3s, transform .35s var(--ease-out);
  pointer-events: none;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

/* Petits téléphones : lecteur en bas, pleine largeur */
@media (max-width: 479px) {
  .dock,
  .dock[data-corner] {
    --dock-gap: 10px;
    top: auto;
    right: var(--dock-gap);
    bottom: calc(var(--dock-gap) + env(safe-area-inset-bottom));
    left: var(--dock-gap);
    width: auto;
    max-width: none;
  }

  .dock[data-state="collapsed"] {
    left: auto;
    width: min(340px, 100vw - 2 * var(--dock-gap));
  }

  .dock__player {
    height: calc((100vw - 22px) * .5625);
    height: 56.25cqw;
  }

  .live-banner__cta {
    padding: 8px 11px;
  }
}

@media (max-width: 359px) {
  .link__desc,
  .live-banner__cta {
    font-size: .8125rem;
  }
}

/* Desktop : photo à gauche, liens à droite */
@media (min-width: 960px) {
  .page {
    display: grid;
    grid-template-columns: minmax(320px, 440px) minmax(0, 1fr);
    gap: 20px 56px;
    align-items: start;
    max-width: calc(1040px + 64px);
    padding: 56px 32px;
  }

  .topbar {
    grid-column: 1 / -1;
    margin-bottom: 0;
  }

  .photo-card {
    position: sticky;
    top: 56px;
    aspect-ratio: 3 / 4;
    max-height: calc(100vh - 112px);
    transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
    transition: transform .5s var(--ease-out);
  }

  .photo-card img {
    object-position: 50% 25%;
  }

  .content {
    padding-top: 6px;
  }

  .profile {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 24px;
    align-items: center;
    text-align: left;
  }

  .avatar {
    width: 116px;
    height: 116px;
    margin-top: 0;
  }

  .identity,
  .is-live .identity {
    margin-top: 0;
  }

  .tags,
  .bio,
  .live-banner {
    grid-column: 1 / -1;
  }

  .handle-row,
  .tags {
    justify-content: flex-start;
  }

  .tags {
    margin-top: 24px;
  }

  .bio {
    max-width: 54ch;
    font-size: 1.0625rem;
  }

  .name {
    font-size: clamp(2.25rem, 3.4vw, 2.875rem);
  }

  .footer {
    text-align: left;
  }
}

/* ---------- Accessibilité : mouvements réduits ---------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .blob {
    animation: none;
  }
}
