/* Loadout Legends — vitrine statique. Dépend de /assets/tokens.css (chargé avant). */

html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; max-width: 100%; }
body { font-size: 16px; line-height: 1.6; }
img, svg { max-width: 100%; height: auto; display: block; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.12; text-wrap: balance; }
h1 { font-size: clamp(2rem, 6vw, 3.6rem); font-weight: 700; letter-spacing: -.025em; }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
ul, ol { padding-left: 1.2em; }
li { margin-bottom: .35em; }
strong { color: var(--ll-text); font-weight: 600; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--ll-volt); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ll-volt); color: var(--ll-bg); padding: 10px 14px; font-family: var(--ll-font-display); font-weight: 600; border-radius: 8px; }
.skip-link:focus { top: 12px; }
.container { width: 100%; max-width: var(--ll-container); margin: 0 auto; padding: 0 20px; }
.lead { font-size: 1.1rem; color: var(--ll-muted); max-width: 62ch; }
.muted { color: var(--ll-muted); }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; height: 64px; background: rgba(10,14,20,.85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--ll-border); }
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ll-text); font-family: var(--ll-font-display); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: 15px; }
.brand:hover { text-decoration: none; }
.brand svg { width: 30px; height: 30px; flex: none; }
.nav-toggle { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; padding: 10px; background: transparent; border: 1px solid var(--ll-border); border-radius: 10px; color: var(--ll-text); }
.nav-toggle span { display: block; height: 2px; background: currentColor; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.site-nav { position: fixed; top: 64px; left: 0; right: 0; max-height: calc(100vh - 64px); overflow-y: auto; background: var(--ll-surface); border-bottom: 1px solid var(--ll-border); padding: 12px 20px 20px; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: transform .18s, opacity .18s, visibility .18s; }
.site-nav.is-open { transform: none; opacity: 1; visibility: visible; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.site-nav li { margin: 0; }
.site-nav a { display: block; padding: 12px 8px; color: var(--ll-text); font-family: var(--ll-font-display); font-weight: 600; font-size: 15px; border-radius: 8px; text-decoration: none; }
.site-nav a:hover { color: var(--ll-volt); }
.site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--ll-volt); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.nav-actions { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--ll-border); display: flex; flex-direction: column; gap: 8px; }
.nav-actions .ll-btn { width: 100%; }
@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-nav { position: static; max-height: none; overflow: visible; background: transparent; border: 0; padding: 0; transform: none; opacity: 1; visibility: visible; display: flex; align-items: center; gap: 22px; }
  .site-nav ul { flex-direction: row; gap: 4px; }
  .site-nav a { padding: 8px 10px; font-size: 14px; }
  .nav-actions { margin: 0; padding: 0; border: 0; flex-direction: row; }
  .nav-actions .ll-btn { width: auto; padding: 10px 16px; font-size: 14px; }
}

/* Sections */
.section { padding: 64px 0; }
.section + .section { border-top: 1px solid var(--ll-border); }
.section-head { max-width: 62ch; margin-bottom: 36px; }
.section-head .ll-eyebrow { display: block; margin-bottom: 10px; color: var(--ll-volt); }
@media (min-width: 900px) { .section { padding: 96px 0; } }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 64px 0 56px; background: radial-gradient(60% 50% at 85% 5%, rgba(61,169,255,.14), transparent 60%), radial-gradient(50% 40% at 5% 95%, rgba(200,255,61,.10), transparent 60%), var(--ll-bg); }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .35; background-image: linear-gradient(var(--ll-border) 1px, transparent 1px), linear-gradient(90deg, var(--ll-border) 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(70% 70% at 50% 40%, #000 30%, transparent 100%); -webkit-mask-image: radial-gradient(70% 70% at 50% 40%, #000 30%, transparent 100%); }
.hero .container { position: relative; z-index: 1; display: grid; gap: 40px; align-items: center; }
.hero-copy .ll-eyebrow { color: var(--ll-volt); margin-bottom: 14px; display: inline-flex; align-items: center; gap: 10px; }
.hero-copy .ll-eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--ll-volt); }
.hero-copy h1 em { font-style: normal; color: var(--ll-volt); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 18px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--ll-muted); font-size: .9rem; margin: 0; padding: 0; list-style: none; }
.hero-meta li { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.hero-meta li::before { content: ""; width: 6px; height: 6px; background: var(--ll-ion); transform: rotate(45deg); flex: none; }
.hero-visual figcaption { color: var(--ll-muted); font-size: .85rem; margin-top: 10px; text-align: center; }
.page-hero { position: relative; padding: 56px 0 44px; border-bottom: 1px solid var(--ll-border); background: radial-gradient(60% 60% at 90% 0%, rgba(200,255,61,.08), transparent 60%), var(--ll-bg); }
.page-hero h1 { max-width: 22ch; }
.page-hero .ll-eyebrow { color: var(--ll-volt); display: block; margin-bottom: 12px; }
@media (min-width: 900px) { .hero { padding: 96px 0 88px; } .hero .container { grid-template-columns: 1.05fr .95fr; } .page-hero { padding: 88px 0 64px; } }

/* Board SVG */
.board { width: 100%; max-width: 560px; margin: 0 auto; font-family: var(--ll-font-display); }
.board .zone { fill: var(--ll-surface); stroke: var(--ll-border); stroke-width: 1.5; }
.board .zone-obj { fill: rgba(200,255,61,.09); stroke: var(--ll-volt); }
.board .label { fill: var(--ll-text); font-weight: 700; font-size: 16px; letter-spacing: .06em; }
.board .weight { fill: var(--ll-volt); font-weight: 700; font-size: 13px; }
.board .weight-1 { fill: var(--ll-ion); }
.board .hint { fill: var(--ll-muted); font-family: var(--ll-font-text); font-size: 10.5px; }
.board .pawn { fill: var(--ll-volt); }
.board .pawn-ion { fill: var(--ll-ion); }
.board .link { stroke: var(--ll-border); stroke-width: 1.5; stroke-dasharray: 4 5; }

/* Grids */
.grid { display: grid; gap: 20px; }
.grid-2, .grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr 1fr; }
@media (min-width: 700px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.pillar { padding: 26px 24px; background: linear-gradient(180deg, var(--ll-surface), var(--ll-surface-2)); border: 1px solid var(--ll-border); clip-path: var(--ll-clip-card); transition: transform .15s; }
.pillar:hover { transform: translateY(-2px); }
.pillar-num { font-family: var(--ll-font-display); color: var(--ll-volt); font-size: .78rem; letter-spacing: .2em; margin-bottom: 14px; }
.pillar p { color: var(--ll-muted); margin: 0; }
.pillar a { display: inline-block; margin-top: 12px; font-weight: 600; }
.feature { padding: 22px; background: var(--ll-surface); border: 1px solid var(--ll-border); border-radius: var(--ll-radius-lg); }
.feature h3 { margin-bottom: .4em; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.feature h3 .tag { margin-left: auto; }
.feature p { color: var(--ll-muted); }
.feature p:last-child, .feature ul:last-child { margin-bottom: 0; }
.feature li { color: var(--ll-muted); }
.feature.locked { opacity: .72; border-style: dashed; }

/* Tags */
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-family: var(--ll-font-display); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; border: 1px solid var(--ll-border); color: var(--ll-muted); white-space: nowrap; }
.tag-live { color: var(--ll-win); border-color: rgba(79,209,163,.45); }
.tag-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ll-win); }
.tag-soon { border-style: dashed; }

/* Cartes joueur */
.card-grid { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .card-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } .card-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.pcard { --rarity: var(--ll-rarity-common); position: relative; display: flex; flex-direction: column; min-width: 0; background: var(--rarity); padding: 2px; clip-path: var(--ll-clip-card); transition: transform .2s ease; }
.pcard.rarity-ICON { background: var(--rarity-bg); }
.pcard:hover { transform: translateY(-4px); }
.pcard-inner { display: flex; flex-direction: column; flex: 1; min-width: 0; background: var(--ll-surface-2); clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px)); }
.pcard-top { position: relative; aspect-ratio: 4 / 4.4; overflow: hidden; background: var(--ll-surface); }
.pcard-top img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; filter: saturate(.85) contrast(1.05); }
.pcard-top::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, var(--ll-surface-2) 100%); }
.pcard-rating { position: absolute; top: 8px; left: 8px; z-index: 1; font-family: var(--ll-font-display); font-weight: 700; font-size: 1.3rem; line-height: 1; color: var(--ll-bg); background: var(--rarity); padding: 6px 8px 5px; clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 0 100%); }
.pcard.rarity-ICON .pcard-rating { background: #FFB43D; }
.pcard-role { position: absolute; top: 8px; right: 8px; z-index: 1; font-family: var(--ll-font-display); font-weight: 600; font-size: .68rem; letter-spacing: .12em; color: var(--ll-text); background: rgba(10,14,20,.8); border: 1px solid var(--ll-border); padding: 4px 7px; }
.pcard-body { padding: 10px 10px 12px; }
.pcard-name { font-family: var(--ll-font-display); font-weight: 700; font-size: .98rem; line-height: 1.2; margin: 0; overflow-wrap: anywhere; }
.pcard-org { color: var(--ll-muted); font-size: .78rem; margin: 3px 0 8px; }
.pcard-rarity { display: block; font-family: var(--ll-font-display); font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: var(--rarity); border-top: 1px solid var(--ll-border); padding-top: 8px; }
.pcard.rarity-ICON .pcard-rarity { color: #FFB43D; }

/* Rarity ladder, steps, stats, table, callout */
.rarity-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.rarity-row { --rarity: var(--ll-rarity-common); display: grid; grid-template-columns: 14px 1fr; gap: 14px; padding: 16px 18px; background: var(--ll-surface); border: 1px solid var(--ll-border); margin: 0; }
.rarity-row .swatch { background: var(--rarity-bg, var(--rarity)); }
.rarity-row h3 { margin: 0 0 4px; color: var(--rarity); font-size: 1rem; letter-spacing: .1em; text-transform: uppercase; }
.rarity-row.rarity-ICON h3 { color: #FFB43D; }
.rarity-row p { margin: 0; color: var(--ll-muted); font-size: 15px; }
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; gap: 18px; }
.step { position: relative; counter-increment: step; padding: 24px 24px 24px 74px; background: var(--ll-surface); border: 1px solid var(--ll-border); clip-path: var(--ll-clip-card); margin: 0; }
.step::before { content: counter(step, decimal-leading-zero); position: absolute; left: 22px; top: 22px; font-family: var(--ll-font-display); font-weight: 700; font-size: 22px; color: var(--ll-volt); }
.step p:last-child, .step ul:last-child { margin-bottom: 0; }
.step li, .step p { color: var(--ll-muted); }
.stat-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.stat-list li { display: grid; grid-template-columns: 84px 1fr; gap: 14px; padding: 14px 16px; background: var(--ll-surface); border: 1px solid var(--ll-border); margin: 0; }
.stat-list .k { font-family: var(--ll-font-display); font-weight: 700; color: var(--ll-volt); }
.stat-list .v { color: var(--ll-muted); }
.split { display: grid; gap: 32px; align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 56px; } }
.table-wrap { overflow-x: auto; border: 1px solid var(--ll-border); }
table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 520px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--ll-border); vertical-align: top; }
th { font-family: var(--ll-font-display); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ll-muted); background: var(--ll-surface); }
tbody tr:last-child td { border-bottom: 0; }
.callout { padding: 20px 22px; border-left: 3px solid var(--ll-volt); background: var(--ll-surface); }
.callout p:last-child { margin: 0; }

/* CTA + footer */
.cta-band { padding: 64px 0; text-align: center; background: linear-gradient(180deg, var(--ll-surface), var(--ll-bg)); border-top: 1px solid var(--ll-border); }
.cta-band .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 26px; }
.site-footer { padding: 40px 0 32px; border-top: 1px solid var(--ll-border); color: var(--ll-muted); font-size: 14px; }
.site-footer .container { display: grid; gap: 22px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer li { margin: 0; }
.site-footer a { color: var(--ll-muted); }
.site-footer a:hover { color: var(--ll-text); }
@media (min-width: 900px) { .site-footer .container { grid-template-columns: 1fr auto; align-items: center; } .site-footer .legal { grid-column: 1 / -1; } }
