/* TaigaUHC — feuille de style (mise en page inspirée de cheatbreaker.net, accent unique vert sapin) */

@font-face { font-family: "Satoshi"; src: url("/assets/fonts/satoshi-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("/assets/fonts/satoshi-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("/assets/fonts/satoshi-700.woff2") format("woff2"); font-weight: 600 900; font-display: swap; }

:root {
  --bg: #0f1311;
  --card-1: #1a1f1c;
  --card-2: #252b27;
  --card-sec: 21, 26, 23;             /* calque sur les cartes image */
  --g50: #f4f6f4;
  --g100: #e4e9e5;
  --g200: #ccd3ce;
  --g300: #a5afa8;
  --g400: #7b867f;
  --g500: #5c6760;
  --line: rgba(204, 211, 206, .1);
  --line-2: rgba(244, 246, 244, .2);

  --a50: #e9f8ee;                      /* accent vert */
  --a100: #c9eed5;
  --a200: #9fe0b4;
  --a300: #6fd08f;
  --a400: #45b86d;
  --a500: #2f9a55;
  --a700: #1d5e36;
  --a900: #0a2614;
  --a-rgb: 47, 154, 85;


  --nav-h: 96px;
  --radius: 12px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg); color: #fff;
  font-family: "Satoshi", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased;
}
main { flex: 1; display: flex; flex-direction: column; }
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--a300); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ico--fill { fill: currentColor; stroke: none; }
.pixel { image-rendering: pixelated; }

.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.page { width: 100%; max-width: 1280px; margin: 0 auto; padding: 32px 24px 64px; min-height: calc(100vh - 460px); }

/* ---------------------------------------------------------------- Surfaces */
.card {
  position: relative; border-radius: var(--radius);
  background: linear-gradient(var(--card-1), var(--card-2));
  outline: 2px solid var(--line); outline-offset: -2px;
}
.tile {
  display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: var(--radius);
  background: linear-gradient(var(--card-1), var(--card-2)); outline: 2px solid var(--line); outline-offset: -2px; color: var(--g100);
}
.polka {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .1;
  background-image: radial-gradient(var(--a200) 1px, transparent 1px); background-size: 16px 16px;
  -webkit-mask-image: linear-gradient(#000 40%, transparent 100%); mask-image: linear-gradient(#000 40%, transparent 100%);
}

/* ---------------------------------------------------------------- Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex: none; white-space: nowrap;
  height: 40px; padding: 0 16px; border-radius: var(--radius); font-weight: 600; color: var(--g200);
  background: linear-gradient(var(--card-1), var(--card-2)); outline: 2px solid var(--line); outline-offset: -2px;
  transition: filter .15s, transform .15s, color .15s;
}
.btn:hover { filter: brightness(1.15); color: var(--g50); }
.btn:active { transform: scale(.98); }
.btn--sm { height: 36px; padding: 0 14px; font-size: 15px; }
.btn--lg { height: 48px; padding: 0 24px; font-size: 18px; }
.btn--primary { background: linear-gradient(var(--a300), var(--a500)); color: var(--a900); outline-color: rgba(255,255,255,.12); }
.btn--primary:hover { color: var(--a900); filter: brightness(1.08); }
.btn--discord { background: linear-gradient(#7984f5, #5865f2); color: #fff; outline-color: rgba(255,255,255,.12); }
.btn--discord:hover { color: #fff; }
.btn--danger { color: #f3a6a6; }
.btn .ico { width: 20px; height: 20px; }

/* Bouton IP (remplace « Download for Windows ») */
.ipbtn { padding: 0 6px 0 24px; gap: 12px; }
.ipbtn__copy {
  display: inline-grid; place-items: center; width: 34px; height: 38px; margin-left: 4px; border-radius: 9px;
  outline: 2px solid rgba(10, 38, 20, .18); outline-offset: -1px;
}
.ipbtn__copy .ico { width: 16px; height: 16px; }

/* ---------------------------------------------------------------- Navbar */
.nav-space { min-height: var(--nav-h); }
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; background: linear-gradient(to top, transparent, rgba(15, 19, 17, .55)); }
.nav.is-scrolled { background: rgba(15, 19, 17, .82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); }
.nav__inner { max-width: 1280px; height: var(--nav-h); margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 8px; font-size: 18px; transition: opacity .15s; }
.brand:hover { opacity: .75; }
.brand img { width: 40px; height: 40px; image-rendering: pixelated; }
.nav__right { display: flex; align-items: center; gap: 12px; }
.nav__links { display: flex; align-items: center; }
.nav__links a { margin: 0 12px; font-weight: 500; opacity: .75; transition: opacity .15s, color .15s; }
.nav__links a:hover { opacity: 1; }
.nav__links a[aria-current="page"] { opacity: 1; color: var(--a300); }
.search {
  display: flex; align-items: center; gap: 8px; height: 40px; width: 233px; padding: 0 12px; border-radius: var(--radius);
  background: linear-gradient(var(--card-1), var(--card-2)); outline: 2px solid var(--line); outline-offset: -2px; color: var(--g200);
}
.search:focus-within { outline-color: rgba(111, 208, 143, .45); }
.search input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; font-weight: 500; color: var(--g200); }
.search input::placeholder { color: rgba(204, 211, 206, .5); }
.search input::-webkit-search-cancel-button { display: none; }
.search--block { width: 100%; height: 48px; }
.nav__user { padding: 0 14px 0 6px; }
.nav__user img { width: 28px; height: 28px; border-radius: 8px; }
.nav__compact { display: none; }
.icon-btn { width: 40px; padding: 0; }

.mobile-menu { position: fixed; top: var(--nav-h); left: 12px; right: 12px; z-index: 49; padding: 12px; display: grid; gap: 4px;
  background: rgba(26, 31, 28, .97); backdrop-filter: blur(12px); border-radius: 16px; outline: 2px solid var(--line); outline-offset: -2px; }
.mobile-menu a { padding: 12px 14px; border-radius: 10px; font-weight: 500; color: var(--g200); }
.mobile-menu a:hover, .mobile-menu a[aria-current="page"] { background: rgba(255,255,255,.05); color: #fff; }
.mobile-menu .search { margin-bottom: 6px; }

/* ---------------------------------------------------------------- En-têtes */
.page-title h1 { display: flex; align-items: center; gap: 10px; font-size: 36px; line-height: 42px; font-weight: 700; letter-spacing: -.01em; }
.page-title h1 .ico { width: 36px; height: 36px; }
.page-title p { margin-top: 4px; color: var(--g200); font-size: 18px; font-weight: 500; }
.sec-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.sec-head__l { display: flex; align-items: center; gap: 12px; min-width: 0; }
.sec-head h2 { font-size: 20px; line-height: 28px; font-weight: 700; }
.sec-head p { color: var(--g300); font-size: 18px; line-height: 28px; font-weight: 500; }

/* ---------------------------------------------------------------- Accueil */
.hero { position: relative; isolation: isolate; display: flex; flex-direction: column; align-items: center; gap: 12px; padding-top: 80px;
  background: linear-gradient(to top, transparent 0%, rgba(var(--a-rgb), .24) 50%, transparent 80%); margin-top: calc(var(--nav-h) * -1); padding-top: calc(var(--nav-h) + 80px); }
.hero .polka { height: 900px; }
.hero__logo { width: 64px; height: 64px; }
.hero h1 {
  max-width: 1024px; padding: 0 16px; text-align: center; font-size: 60px; line-height: 60px; font-weight: 700; letter-spacing: -.02em;
  background: linear-gradient(to top, var(--a100), var(--a50)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__cta { margin-top: 24px; }
.hero__meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 6px; padding: 0 16px; color: var(--g50); font-weight: 500; }
.hero__meta > span { opacity: .5; }
.hero__meta .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--g400); margin-right: 6px; vertical-align: 1px; }
.hero__meta .dot.is-on { background: var(--a300); box-shadow: 0 0 0 3px rgba(111, 208, 143, .2); }
.hero__shot { width: 100%; max-width: 1280px; margin-top: 48px; padding: 0 64px; }
.hero__shot img { width: 100%; height: auto; border-radius: var(--radius); box-shadow: 0 20px 25px -5px rgba(0,0,0,.25), 0 8px 10px -6px rgba(0,0,0,.25); aspect-ratio: 16 / 9; }

.home { display: flex; flex-direction: column; gap: 104px; padding-top: 80px; padding-bottom: 24px; }
.home > section { display: flex; flex-direction: column; gap: 24px; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.feature { height: 208px; padding: 24px; display: flex; flex-direction: column; }
.feature .ico { width: 32px; height: 32px; color: var(--g300); margin-bottom: 4px; }
.feature h3 { color: var(--g100); font-size: 20px; line-height: 28px; font-weight: 700; }
.feature p { margin-top: 4px; color: var(--g300); font-size: 18px; line-height: 28px; font-weight: 500; }

/* ---------------------------------------------------------------- Cartes image (Docs) */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.icard { display: block; position: relative; border-radius: var(--radius); outline: 2px solid var(--line-2); outline-offset: -2px; }
.icard__in { position: relative; height: 240px; overflow: hidden; border-radius: var(--radius); }
.icard--lg .icard__in { height: 320px; }
.icard__img { image-rendering: pixelated; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 80%; transition: transform .5s ease-out; }
.icard:hover .icard__img { transform: scale(1.05); }
.icard__shade { position: absolute; inset: 0; z-index: 1; background: linear-gradient(rgba(var(--card-sec), .8), rgba(var(--card-sec), .5)); }
.icard__body { position: absolute; inset: 0; z-index: 2; padding: 24px; display: flex; flex-direction: column; justify-content: flex-end; }
.icard h2 { font-size: 20px; line-height: 28px; font-weight: 700; }
.icard--lg h2 { font-size: 24px; line-height: 32px; }
.icard p { color: var(--g200); font-size: 18px; line-height: 28px; font-weight: 500; }
.pill {
  display: inline-flex; align-items: center; gap: 6px; width: fit-content; padding: 4px 8px; border-radius: var(--radius);
  color: var(--g50); font-size: 14px; line-height: 20px; font-weight: 500; outline: 2px solid var(--line); outline-offset: -2px;
  background: rgba(15, 19, 17, .35); backdrop-filter: blur(6px);
}
.pill .ico { width: 16px; height: 16px; }
.pill img { width: 16px; height: 16px; border-radius: 4px; outline: 2px solid rgba(244,246,244,.1); outline-offset: -1px; }
.icard__date { position: absolute; top: 24px; right: 24px; }
.icard__author { margin-top: 12px; }
.tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 12px; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 999px; font-size: 14px; line-height: 20px; font-weight: 700;
  outline: 2px solid var(--line-2); outline-offset: -2px; }
.tag .ico { width: 14px; height: 14px; }

/* Article */
.article-head { position: relative; height: 288px; overflow: hidden; border-radius: 16px; outline: 2px solid var(--line-2); outline-offset: -2px; }
.article-head .icard__img { transform: none !important; }
.article-head h1 { font-size: 24px; line-height: 32px; font-weight: 700; }
.article-head p { color: var(--g200); font-size: 18px; line-height: 28px; font-weight: 500; }
.article { display: flex; align-items: flex-start; gap: 32px; padding: 48px 0 0; }
.article__body { flex: 1; min-width: 0; max-width: 880px; }
.article__aside { width: 320px; flex: none; display: grid; gap: 12px; position: sticky; top: calc(var(--nav-h) + 8px); }
.author { display: flex; align-items: center; gap: 12px; height: 112px; overflow: hidden; }
.author img { width: 96px; height: 112px; margin-left: 8px; object-fit: contain; object-position: bottom; }
.author h2 { font-size: 20px; line-height: 28px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.author small { display: block; color: var(--g300); font-size: 14px; font-weight: 500; }
.meta-card { padding: 24px; display: flex; align-items: center; gap: 8px; font-weight: 500; }
.meta-card .ico { width: 24px; height: 24px; }
.back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 20px; color: var(--g300); font-weight: 500; }
.back:hover { color: var(--g100); }
.back .ico { width: 16px; height: 16px; transform: rotate(180deg); }

/* Texte riche */
.prose { color: var(--g300); font-weight: 500; line-height: 26px; }
.prose > * + * { margin-top: 16px; }
.prose h2 { color: #fff; font-size: 20px; line-height: 28px; font-weight: 700; letter-spacing: -.01em; margin-top: 28px; }
.prose h3 { color: #fff; font-size: 18px; line-height: 28px; font-weight: 700; margin-top: 20px; }
.prose > h2:first-child, .prose > h3:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 24px; }
.prose li { margin-bottom: 8px; }
.prose li:last-child { margin-bottom: 0; }
.prose strong { color: var(--g200); font-weight: 700; }
.prose a { color: var(--a300); }
.prose a:hover { color: var(--a100); }
.prose code { padding: 2px 6px; border-radius: 6px; background: rgba(255,255,255,.06); color: var(--g100); font-size: .92em; font-family: ui-monospace, "Cascadia Code", Consolas, monospace; }

/* ---------------------------------------------------------------- Onglets (bloc) */
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; max-width: 100%; border-radius: var(--radius); background: var(--card-1); outline: 2px solid var(--line); outline-offset: -2px; }
.seg button, .seg a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 24px; border-radius: 8px; color: var(--g300); font-weight: 500; transition: color .15s; }
.seg button:hover, .seg a:hover { color: var(--g100); }
.seg [aria-selected="true"] { color: var(--g50); background: linear-gradient(rgba(37, 43, 39, .5), var(--card-2)); }
.seg .ico { width: 16px; height: 16px; }
.seg--center { align-self: center; }
.seg--sticky { position: sticky; top: calc(var(--nav-h) - 8px); z-index: 10; display: flex; padding: 6px; background: rgba(26, 31, 28, .8); backdrop-filter: blur(12px); }
.seg--accent button { font-weight: 600; }
.seg--accent [aria-selected="true"] { color: var(--a900); background: linear-gradient(var(--a300), var(--a500)); }

/* ---------------------------------------------------------------- Changelog / Règlement */
.stack { display: flex; flex-direction: column; gap: 24px; }
.entries { display: flex; flex-direction: column; gap: 12px; }
.entry { padding: 24px; }
.entry__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 16px; }
.entry__ver { font-size: 18px; line-height: 28px; font-weight: 600; transition: color .15s; }
a.entry__ver:hover { color: var(--a300); }
.entry__right { display: flex; align-items: center; gap: 12px; }
.entry__right time { color: var(--g300); font-size: 14px; font-weight: 500; }
.entry__link { color: var(--g400); }
.entry__link:hover { color: var(--g100); }
.entry__link .ico { width: 14px; height: 14px; }
.empty { padding: 48px 24px; text-align: center; color: var(--g300); font-weight: 500; }
.empty .tile { margin: 0 auto 14px; }
.empty h2 { color: #fff; font-size: 20px; font-weight: 700; margin-bottom: 4px; }

/* ---------------------------------------------------------------- Staff */
.members { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.member { display: flex; align-items: center; gap: 12px; height: 128px; overflow: hidden; transition: filter .15s; }
a.member:hover { filter: brightness(1.12); }
.member__bar { position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--grade); }
.member img { width: 128px; height: 128px; margin: 12px 0 0 8px; object-fit: contain; object-position: top; flex: none; }
.member img.is-avatar { width: 80px; height: 80px; margin: 0 24px; border-radius: 16px; }
.member__info { min-width: 0; padding-right: 12px; display: grid; gap: 4px; }
.member h2 { font-size: 20px; line-height: 28px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.grade {
  display: inline-flex; align-items: center; gap: 6px; width: fit-content; padding: 4px 8px; border-radius: 8px;
  font-size: 14px; line-height: 20px; font-weight: 700; color: rgba(15, 19, 17, .85);
  background: linear-gradient(var(--grade-a), var(--grade-b)); outline: 2px solid rgba(255,255,255,.12); outline-offset: -2px;
}
.grade .ico { width: 18px; height: 18px; }
.grade--admin { --grade-a: #ef5350; --grade-b: #b71c1c; }
.grade--staff { --grade-a: var(--a300); --grade-b: var(--a500); }
.grade--joueur { --grade-a: var(--g100); --grade-b: var(--g300); }

/* ---------------------------------------------------------------- Profil */
.pcard { overflow: hidden; isolation: isolate; }
.pcard .polka { z-index: 0; -webkit-mask-image: linear-gradient(#000, transparent 80%); mask-image: linear-gradient(#000, transparent 80%); }
.pcard__glow { position: absolute; inset: 0 0 auto; height: 256px; z-index: 0; pointer-events: none; opacity: .35; background: radial-gradient(at 50% 0%, var(--a500), transparent 70%); }
.pcard__top { position: relative; z-index: 1; display: flex; align-items: flex-end; gap: 32px; padding: 40px 40px 32px; }
.pcard__skin { width: 192px; height: 224px; flex: none; display: flex; align-items: flex-end; justify-content: center; }
.pcard__skin img { width: 100%; height: 100%; object-fit: contain; object-position: bottom; filter: drop-shadow(0 12px 18px rgba(0,0,0,.4)); }
.pcard__skin img.is-avatar { width: 160px; height: 160px; border-radius: 28px; object-fit: cover; margin-bottom: 20px; }
.pcard__info { flex: 1; min-width: 0; display: grid; gap: 12px; }
.pcard__name { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.pcard__name h1 { font-size: 36px; line-height: 40px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; }
.uuid { display: inline-flex; align-items: center; gap: 6px; width: fit-content; color: var(--g400); font-size: 12px; transition: color .15s; }
.uuid:hover { color: var(--g200); }
.uuid .ico { width: 14px; height: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px; border-radius: 999px; background: rgba(37, 43, 39, .6); color: var(--g300); font-size: 14px; }
a.chip:hover { color: var(--g100); }
.chip .ico { width: 14px; height: 14px; }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--g500); }
.chip .dot.is-on { background: var(--a300); }
.pstats { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(92, 103, 96, .6); background: rgba(21, 26, 23, .4); }
.pstat { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 16px; }
.pstat + .pstat { border-left: 1px solid rgba(92, 103, 96, .4); }
.pstat span:first-child { display: inline-flex; align-items: center; gap: 6px; color: var(--g400); font-size: 12px; font-weight: 600; }
.pstat span:first-child .ico { width: 14px; height: 14px; }
.pstat strong { font-size: 20px; line-height: 28px; font-weight: 700; }
.boxes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; align-items: start; }
.box { padding: 24px; }
.box__head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.box__head h2 { font-size: 20px; line-height: 28px; font-weight: 700; }
.box__head p { color: var(--g300); font-weight: 500; }
.box .prose { font-size: 16px; }

/* Compte */
.code { display: inline-flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: var(--radius); background: rgba(0,0,0,.25); outline: 2px dashed rgba(111, 208, 143, .35); outline-offset: -2px;
  font: 700 26px/1 ui-monospace, "Cascadia Code", Consolas, monospace; letter-spacing: .18em; color: var(--a100); }
.steps { display: grid; gap: 10px; margin: 18px 0; padding: 0; list-style: none; counter-reset: s; }
.steps li { display: flex; gap: 12px; align-items: flex-start; color: var(--g300); font-weight: 500; }
.steps li::before { counter-increment: s; content: counter(s); flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--card-2); color: var(--g100); font-size: 14px; font-weight: 700; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.muted { color: var(--g300); font-weight: 500; }
.small { font-size: 14px; }

/* Connexion */
.auth { max-width: 460px; margin: 24px auto 0; padding: 40px 32px; text-align: center; overflow: hidden; isolation: isolate; }
.auth__logo { width: 64px; height: 64px; margin: 0 auto 16px; }
.auth h1 { font-size: 28px; line-height: 36px; font-weight: 700; }
.auth p { margin-top: 6px; }
.auth .btn { width: 100%; margin-top: 28px; }
.auth ul { margin: 24px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; text-align: left; }
.auth li { display: flex; gap: 10px; color: var(--g300); font-weight: 500; }
.auth li .ico { color: var(--a300); margin-top: 2px; }
.alert { margin-top: 20px; padding: 12px 14px; border-radius: 10px; background: rgba(239, 83, 80, .1); outline: 1px solid rgba(239, 83, 80, .3); color: #f6b4b2; font-weight: 500; text-align: left; }

/* ---------------------------------------------------------------- Pied de page (calqué sur cheatbreaker.net) */
.foot { margin-top: 48px; padding-top: 64px; background: linear-gradient(to top, rgba(var(--a-rgb), .2) 0%, var(--bg) 75%); }
.cta {
  position: relative; z-index: 1; overflow: hidden; border-radius: 16px; padding: 40px 48px;
  background: linear-gradient(to bottom right, #5cc47f, #1d5e36); outline: 2px solid rgba(201, 238, 213, .3); outline-offset: -2px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.cta__arcs { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.cta__l { display: flex; align-items: center; gap: 20px; }
.ring { display: grid; place-items: center; flex: none; width: 64px; height: 64px; border-radius: 50%; border: 3px solid #072212; }
.ring img { width: 36px; height: 36px; image-rendering: pixelated; }
.cta__t { max-width: 576px; color: #072212; font-size: 20px; line-height: 28px; font-weight: 700; }
.cta__f { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 8px; }
.cta__f span { display: inline-flex; align-items: center; gap: 4px; color: #072212; font-size: 14px; font-weight: 700; }
.cta__f .ico { width: 20px; height: 20px; }
.cta .btn { background: #072212; color: var(--a100); outline: 2px solid rgba(255,255,255,.1); outline-offset: -1px; }
.cta .btn:hover { color: #fff; }
.footer { max-width: 1280px; margin: 0 auto; padding: 48px 48px 72px; display: flex; align-items: flex-start; gap: 64px; }
.footer__brand { display: flex; flex-direction: column; gap: 24px; width: 380px; flex: none; }
.footer__brand > div { display: flex; align-items: center; gap: 12px; }
.footer__brand .ring { width: 48px; height: 48px; border: 2px solid var(--g100); }
.footer__brand .ring img { width: 26px; height: 26px; }
.footer__brand p { color: var(--g100); font-size: 18px; line-height: 28px; font-weight: 500; max-width: 320px; }
.socials { display: flex; align-items: center; gap: 16px; }
.socials a { color: var(--g300); transition: color .15s; }
.socials a:hover { color: var(--g100); }
.socials .ico { width: 24px; height: 24px; }
.footer__cols { display: grid; grid-template-columns: repeat(3, 136px); gap: 32px 64px; }
.footer__col { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.footer__col h2 { display: flex; align-items: center; gap: 8px; color: var(--g100); font-size: 20px; line-height: 28px; font-weight: 700; white-space: nowrap; }
.footer__col a { color: var(--g300); font-weight: 500; transition: color .15s; }
.footer__col a:hover { color: var(--g200); }

/* ---------------------------------------------------------------- Divers */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 100; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  display: flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: var(--radius); background: var(--card-2); color: var(--g50);
  font-weight: 600; outline: 2px solid var(--line); outline-offset: -2px; box-shadow: 0 10px 30px rgba(0,0,0,.4); transition: opacity .2s, transform .2s; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.toast .ico { color: var(--a300); }
.skel { display: inline-block; border-radius: 8px; background: linear-gradient(90deg, rgba(255,255,255,.05), rgba(255,255,255,.1), rgba(255,255,255,.05)); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------------------------------------------------------------- Animations (façon cheatbreaker.net) */
@keyframes fadeUp { from { opacity: 0; translate: 0 18px; } to { opacity: 1; translate: 0 0; } }
@keyframes zoomIn { from { opacity: 0; translate: 0 32px; scale: .97; } to { opacity: 1; translate: 0 0; scale: 1; } }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
@keyframes drift { to { background-position: 16px 16px; } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(111, 208, 143, .55); } 100% { box-shadow: 0 0 0 9px rgba(111, 208, 143, 0); } }
@keyframes shine { from { translate: -120% 0; } to { translate: 260% 0; } }
@keyframes sweep { 0%, 70% { translate: -130% 0; } 100% { translate: 360% 0; } }
@keyframes drop { from { opacity: 0; translate: 0 -8px; } to { opacity: 1; translate: 0 0; } }
@keyframes pop { 0% { opacity: 0; scale: .9; } 60% { opacity: 1; scale: 1.03; } 100% { scale: 1; } }

/* Entrée de page */
.nav { animation: drop .5s ease-out both; }
.hero__logo { animation: fadeUp .6s ease-out both, float 4s ease-in-out .8s infinite; }
.hero h1 { animation: fadeUp .7s ease-out .08s both; }
.hero__cta { animation: fadeUp .7s ease-out .16s both; }
.hero__meta { animation: fadeUp .7s ease-out .24s both; }
.hero__shot { animation: zoomIn .9s cubic-bezier(.2, .7, .2, 1) .32s both; }
.polka { animation: drift 6s linear infinite; }
.auth__logo { animation: float 4s ease-in-out infinite; }
.dot.is-on { animation: ping 1.8s ease-out infinite; }

/* Apparition au défilement (classes posées par main.js) */
.anim .rv { opacity: 0; translate: 0 22px;
  transition-property: opacity, translate, transform, filter, outline-color, box-shadow;
  transition-duration: .7s, .7s, .25s, .2s, .2s, .25s;
  transition-timing-function: ease-out, cubic-bezier(.2, .7, .2, 1), ease-out, ease, ease, ease;
  transition-delay: var(--rd, 0s), var(--rd, 0s), 0s, 0s, 0s, 0s; }
.anim .rv.in { opacity: 1; translate: 0 0; }

/* Survols */
.card, .icard, .member { transition: transform .25s ease-out, filter .2s, outline-color .2s, box-shadow .25s; }
.feature:hover, .icard:hover, a.member:hover { transform: translateY(-4px); box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .6); }
.feature:hover, .entry:hover, .box:hover, a.member:hover { outline-color: rgba(var(--a-rgb), .35); }
.icard:hover { outline-color: rgba(var(--a-rgb), .5); }
.feature .ico { transition: color .25s, transform .3s cubic-bezier(.3, 1.6, .5, 1); }
.feature:hover .ico { color: var(--a300); transform: scale(1.12) rotate(-6deg); }
.tile .ico { transition: transform .3s cubic-bezier(.3, 1.6, .5, 1); }
.sec-head:hover .tile .ico, .page-title:hover h1 .ico { transform: scale(1.12) rotate(-6deg); }
.page-title h1 .ico { transition: transform .3s cubic-bezier(.3, 1.6, .5, 1); }
.icard h2 { transition: color .2s; }
.icard:hover h2 { color: var(--a100); }
.member img { transition: transform .3s ease-out; }
a.member:hover img { transform: translateY(-4px) scale(1.04); }

.btn { position: relative; overflow: hidden; }
.btn--primary::after, .cta .btn::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 40%; pointer-events: none; translate: -120% 0;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent);
}
.btn--primary:hover::after, .cta .btn:hover::after { animation: shine .7s ease-out; }
.ipbtn::after { animation: sweep 4.5s ease-in-out 1.5s infinite; }
.ipbtn:hover { transform: translateY(-2px); }
.ipbtn__copy .ico { transition: transform .25s; }
.ipbtn:hover .ipbtn__copy .ico { transform: scale(1.15); }

.nav__links a { position: relative; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px; background: var(--a300);
  scale: 0 1; transition: scale .25s ease-out; }
.nav__links a:hover::after, .nav__links a[aria-current="page"]::after { scale: 1 1; }
.brand img { transition: transform .35s cubic-bezier(.3, 1.6, .5, 1); }
.brand:hover img { transform: rotate(-8deg) scale(1.08); }
.mobile-menu:not([hidden]) { animation: drop .2s ease-out; }

.cta::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; z-index: -1; width: 30%; pointer-events: none; translate: -130% 0;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .16), transparent); animation: sweep 7s ease-in-out infinite; }
.ring { transition: transform .4s cubic-bezier(.3, 1.6, .5, 1); }
.cta:hover .ring { transform: rotate(-10deg) scale(1.06); }
.socials a { display: inline-block; transition: color .15s, transform .25s cubic-bezier(.3, 1.6, .5, 1); }
.socials a:hover { transform: translateY(-3px) scale(1.1); }
.footer__col a { transition: color .15s, padding .2s; }
.footer__col a:hover { padding-left: 4px; }

.seg button, .seg a { transition: color .15s, background .25s; }
.tab-in > * { animation: fadeUp .45s ease-out both; }
.code { animation: pop .45s ease-out both; }

@media (prefers-reduced-motion: reduce) { .hero__logo, .auth__logo, .polka, .dot.is-on, .ipbtn::after, .cta::after { animation-iteration-count: 1 !important; } .hero__logo { animation: fadeUp .6s ease-out both !important; } }

/* ---------------------------------------------------------------- Responsive */
@media (max-width: 1279px) {
  .nav__links, .nav__right > .search, .nav__full, .nav__panel { display: none; }
  .nav__compact { display: inline-flex; }
  .footer { padding: 48px 24px 64px; flex-direction: column; align-items: center; text-align: center; gap: 40px; }
  .footer__brand { align-items: center; width: auto; }
  .footer__col { align-items: center; }
  .members { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1023px) {
  .features { grid-template-columns: 1fr; }
  .feature { height: auto; }
  .article { flex-direction: column; }
  .article__aside { width: 100%; position: static; grid-template-columns: 1fr 1fr; }
  .boxes { grid-template-columns: 1fr; }
  .cta { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 767px) {
  :root { --nav-h: 72px; }
  .nav__inner, .container, .page { padding-left: 16px; padding-right: 16px; }
  .hero h1 { font-size: 40px; line-height: 44px; }
  .hero__shot { padding: 0 16px; margin-top: 32px; }
  .home { gap: 72px; padding-top: 56px; }
  .grid-2, .members { grid-template-columns: 1fr; }
  .icard--lg .icard__in { height: 260px; }
  .article-head { height: 240px; }
  .article__aside { grid-template-columns: 1fr; }
  .page-title h1 { font-size: 30px; }
  .pcard__top { flex-direction: column; align-items: center; text-align: center; padding: 28px 20px 24px; gap: 16px; }
  .pcard__name, .chips { justify-content: center; }
  .uuid { margin: 0 auto; }
  .pcard__skin { width: 150px; height: 180px; }
  .pstats { grid-template-columns: 1fr 1fr; }
  .pstat:nth-child(3) { border-left: 0; }
  .pstat:nth-child(n+3) { border-top: 1px solid rgba(92, 103, 96, .4); }
  .seg { display: flex; overflow-x: auto; flex-wrap: nowrap; }
  .seg button, .seg a { flex: none; padding: 8px 16px; }
  .cta { padding: 28px 22px; }
  .cta__l { flex-direction: column; align-items: flex-start; }
  .cta .btn { width: 100%; }
  .footer__cols { grid-template-columns: 1fr 1fr; gap: 32px; }
  .sec-head { flex-wrap: wrap; }
  .auth { padding: 32px 20px; }
}

/* ---------------------------------------------------------------- Tickets (support + panel) */
.nav__dot { display: inline-block; width: 8px; height: 8px; margin-left: 6px; border-radius: 50%; background: var(--a300); box-shadow: 0 0 0 3px rgba(var(--a-rgb), .25); vertical-align: middle; animation: ping 1.6s ease-out infinite; }
.tk-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.tk-count { padding: 1px 8px; border-radius: 99px; background: rgba(255,255,255,.06); font-size: 13px; }
.tk-item { display: flex; align-items: center; gap: 16px; padding: 16px 20px; color: inherit; }
.tk-item__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tk-item__main b { color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-item__main span { color: var(--g400); font-size: 14px; }
.tk-status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; font-size: 13px; font-weight: 600; color: var(--g300); background: rgba(255,255,255,.05); white-space: nowrap; }
.tk-status .ico { width: 14px; height: 14px; }
.tk-status .nav__dot { margin: 0; }
.tk-status--new { color: var(--a200); background: rgba(var(--a-rgb), .15); }
.tk-status--wait { color: #e8c77a; background: rgba(232, 199, 122, .1); }
.tk-new { display: flex; flex-direction: column; gap: 20px; padding: 24px; }
.tk-field { display: flex; flex-direction: column; gap: 8px; }
.tk-field > span { color: var(--g200); font-weight: 600; font-size: 15px; }
.tk-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.tk-cat { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; text-align: left; border-radius: 10px; background: var(--card-2); outline: 2px solid var(--line); outline-offset: -2px; color: var(--g300); transition: outline-color .15s, background .15s; }
.tk-cat b { color: #fff; }
.tk-cat small { font-size: 13px; line-height: 1.35; }
.tk-cat:hover { outline-color: var(--line-2); }
.tk-cat[aria-pressed="true"] { outline-color: var(--a400); background: rgba(var(--a-rgb), .12); }
.tk-input { width: 100%; padding: 12px 14px; border: 0; border-radius: 10px; background: var(--bg); color: var(--g50); font: inherit; outline: 2px solid var(--line); outline-offset: -2px; resize: vertical; }
.tk-input:focus { outline-color: var(--a500); }
.tk-composer { display: flex; flex-direction: column; gap: 10px; border-radius: 12px; transition: box-shadow .15s; }
.tk-composer.is-drag { box-shadow: 0 0 0 2px var(--a400); }
.tk-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.tk-bar [type="submit"] { margin-left: auto; }
.tk-attach { cursor: pointer; }
.tk-hint { color: var(--g400); font-size: 13px; }
.tk-check { display: inline-flex; align-items: center; gap: 6px; color: #e8c77a; font-size: 14px; cursor: pointer; }
.tk-err { color: #f08a8a; font-weight: 500; font-size: 14px; }
.tk-pending { display: flex; flex-wrap: wrap; gap: 8px; }
.tk-chip { position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 6px 8px 6px 10px; border-radius: 8px; background: var(--card-2); font-size: 14px; }
.tk-chip .ico { width: 16px; height: 16px; color: var(--a300); }
.tk-chip__name { max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--g100); }
.tk-chip small { color: var(--g400); }
.tk-chip button { display: grid; place-items: center; color: var(--g400); }
.tk-chip button:hover { color: #fff; }
.tk-chip__bar { position: absolute; left: 0; bottom: 0; height: 2px; background: var(--a400); transition: width .2s; }
.tk-chip.is-bad { outline: 1px solid rgba(240, 138, 138, .5); }
.tk-chip.is-bad small { color: #f08a8a; }
.tk-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; }
.tk-head h1 { color: #fff; font-size: 22px; font-weight: 700; }
.tk-thread { display: flex; flex-direction: column; gap: 12px; margin: 16px 0; }
.tk-msg { max-width: min(680px, 88%); padding: 14px 16px; border-radius: 14px; background: var(--card-1); outline: 2px solid var(--line); outline-offset: -2px; animation: fadeUp .35s ease-out both; }
.tk-msg--mine { align-self: flex-end; background: var(--card-2); }
.tk-msg--staff { outline-color: rgba(var(--a-rgb), .35); }
.tk-msg--note { background: rgba(232, 199, 122, .07); outline: 2px dashed rgba(232, 199, 122, .35); }
.tk-msg header { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 6px; }
.tk-msg header b { color: #fff; }
.tk-msg time { margin-left: auto; color: var(--g400); font-size: 13px; }
.tk-badge { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 99px; background: rgba(var(--a-rgb), .18); color: var(--a200); font-size: 12px; font-weight: 600; }
.tk-badge .ico { width: 12px; height: 12px; }
.tk-badge--note { background: rgba(232, 199, 122, .15); color: #e8c77a; }
.tk-text { color: var(--g100); line-height: 1.55; overflow-wrap: anywhere; }
.tk-text a { color: var(--a300); text-decoration: underline; }
.tk-files { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.tk-file { display: block; max-width: 100%; border-radius: 10px; overflow: hidden; background: #000; }
.tk-file img { display: block; max-width: 280px; max-height: 220px; object-fit: cover; transition: transform .25s; }
.tk-file:hover img { transform: scale(1.03); }
video.tk-file { width: 420px; max-height: 320px; }
.tk-closed { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.tk-closed .ico { width: 16px; height: 16px; }
.tk-replybox { padding: 16px; }
@media (max-width: 640px) { .tk-msg { max-width: 100%; } .tk-item { flex-wrap: wrap; } .tk-file img { max-width: 100%; } video.tk-file { width: 100%; } }
