/* =====================================================================
   ZIGGLE — Charte « Banane »
   Une seule feuille de style pour tout le site (vitrine + Ziggle League).
   ===================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* Couleurs de la marque */
  --banana: #ffd43b;        /* jaune banane : couleur principale */
  --banana-deep: #f5b301;   /* banane bien mûre : survol, accents */
  --peel: #fff7dc;          /* crème « peau de banane » : fonds clairs */
  --peel-2: #fcecb4;
  --ink: #1f1a10;           /* noir-brun « queue de banane » : texte, bordures */
  --ink-soft: #5b5139;
  --dusk: #261b45;          /* violet crépuscule des illustrations : fonds sombres */
  --dusk-2: #3a2a66;
  --dusk-ink: #efe8ff;
  --sunset: #ff8a3d;        /* orange coucher de soleil : petites touches */
  --creeper: #4cc552;       /* vert « en ligne » */
  --danger: #ff5a4e;

  /* Typo */
  --f-title: 'Bricolage Grotesque', 'Arial Black', system-ui, sans-serif;
  --f-body: 'DM Sans', system-ui, sans-serif;
  --f-pixel: 'Silkscreen', ui-monospace, monospace;

  /* Blocs */
  --line: 3px solid var(--ink);
  --shadow: 6px 6px 0 var(--ink);
  --shadow-sm: 4px 4px 0 var(--ink);
  --radius: 6px;
  --wrap: min(100% - 40px, 1200px);
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--peel);
  color: var(--ink);
  font: 17px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--f-title); font-weight: 800; line-height: .95; letter-spacing: -.03em; margin: 0; }
p { margin: 0 0 1em; }
::selection { background: var(--banana); color: var(--ink); }
:focus-visible { outline: 3px solid var(--sunset); outline-offset: 3px; }
.wrap { width: var(--wrap); margin-inline: auto; }
.skip-link { position: fixed; left: 12px; top: -80px; z-index: 100; padding: 10px 16px; background: var(--banana); border: var(--line); font-weight: 700; }
.skip-link:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- 3. Composants ---------- */
.pixel { font-family: var(--f-pixel); font-size: 13px; letter-spacing: .04em; text-transform: uppercase; line-height: 1.4; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  background: var(--banana); color: var(--ink);
  border: var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm);
  font: 800 17px var(--f-title); text-decoration: none; cursor: pointer;
  transition: transform .12s, box-shadow .12s, background .12s;
}
.btn:hover { background: var(--banana-deep); transform: translate(-2px, -2px); box-shadow: var(--shadow); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn--dark { background: var(--ink); color: var(--banana); }
.btn--dark:hover { background: var(--dusk); }
.btn--ghost { background: transparent; box-shadow: none; }
.btn--ghost:hover { background: var(--peel-2); }
.btn--small { padding: 9px 14px; font-size: 15px; }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; }

.card {
  background: #fff; border: var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 26px;
}
.card--banana { background: var(--banana); }
.card--dusk { background: var(--dusk); color: var(--dusk-ink); }

.tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; background: var(--ink); color: var(--banana);
  border-radius: 999px; font-family: var(--f-pixel); font-size: 12px; text-transform: uppercase;
}
.tag .shades { filter: invert(1); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #999; flex-shrink: 0; }
.dot.is-online { background: var(--creeper); box-shadow: 0 0 0 4px #4cc55240; animation: pulse 1.8s infinite; }
.dot.is-offline { background: var(--danger); }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px #4cc55200; } }

/* Lunettes pixel ⌐■-■ : signature visuelle */
.shades { display: inline-block; width: 1.6em; height: .5em; vertical-align: middle;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 5' shape-rendering='crispEdges'%3E%3Cpath fill='%231f1a10' d='M0 0h16v1H0zM1 1h6v3H2V3H1zM9 1h6v2h-1v1H9z'/%3E%3Cpath fill='%23fff' d='M2 1h1v1H2zM10 1h1v1h-1z'/%3E%3C/svg%3E") center/contain no-repeat;
  image-rendering: pixelated; }

/* Titres de section */
.section { padding: 110px 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 18px 40px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(42px, 7vw, 84px); }
.section-head p { max-width: 440px; margin: 0; color: var(--ink-soft); }
.kicker { display: block; margin-bottom: 14px; color: var(--ink-soft); }
.hl { background: linear-gradient(transparent 58%, var(--banana) 58%); padding: 0 .08em; }
.on-dark .hl { background: none; color: var(--banana); }

/* ---------- 4. En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--peel); border-bottom: var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 22px; height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; font: 800 26px var(--f-title); letter-spacing: -.04em; text-decoration: none; }
.brand-mark { width: 40px; height: 40px; }
.brand b { color: var(--banana-deep); }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { padding: 8px 12px; border-radius: var(--radius); font-weight: 700; text-decoration: none; }
.nav a:hover { background: var(--banana); }
.menu-toggle { display: none; margin-left: auto; width: 46px; height: 46px; border: var(--line); border-radius: var(--radius); background: var(--banana); cursor: pointer; }
.menu-toggle span { display: block; width: 20px; height: 3px; margin: 4px auto; background: var(--ink); transition: transform .2s; }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* ---------- 5. Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(ellipse at 80% 0%, #ff8a3d55, transparent 55%), linear-gradient(180deg, var(--dusk), #1a1233);
  color: var(--dusk-ink); border-bottom: var(--line);
}
.hero .wrap { display: grid; grid-template-columns: 1.02fr 1fr; gap: 56px; align-items: center; padding: 70px 0 90px; }
.hero h1 { font-size: clamp(54px, 8.4vw, 116px); color: #fff; }
.hero h1 span { color: var(--banana); }
.hero h1 em { font-style: normal; display: inline-block; background: var(--banana); color: var(--ink); padding: 0 .12em; transform: rotate(-2deg); border: var(--line); box-shadow: var(--shadow); margin-top: .12em; }
.hero-lead { font-size: 20px; max-width: 520px; margin: 30px 0 32px; color: #d9d0f3; }
.hero-lead strong { color: #fff; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.hero .tag { background: #ffffff14; color: var(--banana); border: 2px solid #ffffff22; margin-bottom: 26px; }
.status-chip {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 16px;
  border: 2px solid #ffffff33; border-radius: var(--radius); color: #fff; text-decoration: none; font-weight: 700;
}
.status-chip:hover { border-color: var(--banana); }
.hero-art { position: relative; }
.hero-art img { width: 100%; height: auto; border: var(--line); border-color: #000; border-radius: var(--radius); box-shadow: 10px 10px 0 var(--banana); transform: rotate(1.5deg); }
.sticker {
  position: absolute; display: grid; place-items: center; text-align: center;
  background: var(--banana); color: var(--ink); border: var(--line); box-shadow: var(--shadow-sm);
  font: 800 18px/1 var(--f-title); text-transform: uppercase;
}
.hero-art .sticker { left: -26px; bottom: -30px; width: 118px; height: 118px; border-radius: 50%; transform: rotate(-12deg); }

/* ---------- 6. Bandeau défilant ---------- */
.ticker { background: var(--banana); border-bottom: var(--line); overflow: hidden; white-space: nowrap; }
.ticker-track { display: inline-flex; gap: 34px; padding: 15px 0; animation: ticker 32s linear infinite; font: 800 22px var(--f-title); text-transform: uppercase; }
.ticker-track i { font-style: normal; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- 7. En direct ---------- */
.live-grid { display: grid; grid-template-columns: 380px 1fr; gap: 28px; }
.live-counter { display: flex; flex-direction: column; gap: 14px; }
.live-state { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.live-big { font: 800 clamp(80px, 12vw, 130px)/.9 var(--f-title); letter-spacing: -.05em; }
.live-big small { font-size: .4em; color: var(--ink-soft); }
.meter { height: 18px; background: var(--peel); border: var(--line); border-radius: 99px; overflow: hidden; }
.meter span { display: block; height: 100%; width: 0; background: var(--banana); border-right: var(--line); transition: width .6s; }
.live-caption { margin: 0; color: var(--ink-soft); }
.roster-head { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 2px dashed #1f1a1033; }
.live-player-list { display: flex; flex-wrap: wrap; gap: 12px; padding: 20px 0 6px; min-height: 120px; align-content: flex-start; }
.live-empty { margin: auto; color: var(--ink-soft); text-align: center; }
.live-player {
  position: relative; display: flex; align-items: center; gap: 12px;
  padding: 8px 18px 8px 8px; background: var(--peel); border: var(--line); border-radius: var(--radius);
  font: 800 16px var(--f-title); transition: transform .12s, box-shadow .12s;
}
.live-player[data-ziggle-player] { cursor: pointer; }
.live-player[data-ziggle-player]:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-sm); background: var(--banana); }
.ziggle-head-scene { width: 46px; height: 46px; display: grid; place-items: center; background: var(--peel-2); border-radius: 4px; }
.ziggle-player-head { width: 42px; height: 42px; image-rendering: pixelated; }
.ziggle-player-avatar-fallback { font-size: 26px; }
.ziggle-player-status { position: absolute; top: -6px; right: -6px; width: 14px; height: 14px; border: 2px solid var(--ink); border-radius: 50%; background: var(--creeper); }
.roster-note { margin: 10px 0 0; color: var(--ink-soft); font-size: 14px; }

/* ---------- 8. Le délire (3 cartes) ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.feature h3 { font-size: 34px; margin: 18px 0 12px; }
.feature p { margin: 0; color: var(--ink-soft); }
.feature .emoji { font-size: 40px; line-height: 1; }
.feature:nth-child(2) { transform: rotate(-1.5deg); }
.feature.card--banana p { color: var(--ink); }

/* ---------- 9. Carte BlueMap ---------- */
.map-shell { background: var(--ink); border: var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.map-bar { display: flex; align-items: center; gap: 14px; padding: 10px 14px; color: var(--banana); }
.map-bar a { margin-left: auto; color: var(--banana); }
.map-dots { display: flex; gap: 6px; }
.map-dots i { width: 12px; height: 12px; border-radius: 50%; background: var(--banana); }
.map-dots i:nth-child(2) { background: var(--sunset); }
.map-dots i:nth-child(3) { background: var(--creeper); }
.map-frame { position: relative; aspect-ratio: 16 / 8; min-height: 360px; background: linear-gradient(180deg, var(--dusk), #120c26); }
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-placeholder { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px; color: var(--dusk-ink);
  background: url(/assets/gallery-sunset.webp) center/cover; }
.map-placeholder::before { content: ''; position: absolute; inset: 0; background: #1a1233bb; }
.map-placeholder > div { position: relative; }
.map-placeholder h3 { font-size: clamp(32px, 5vw, 56px); color: #fff; margin-bottom: 12px; }

/* ---------- 10. Ziggle League ---------- */
.league { background: var(--dusk); color: var(--dusk-ink); border-block: var(--line); position: relative; overflow: hidden; }
.league::after { content: '🏆'; position: absolute; right: -40px; bottom: -70px; font-size: 360px; opacity: .08; transform: rotate(-14deg); pointer-events: none; }
.league .wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: 50px; align-items: center; }
.league h2 { font-size: clamp(48px, 7vw, 92px); color: #fff; }
.league h2 em { font-style: normal; color: var(--banana); }
.league p { color: #d9d0f3; font-size: 19px; max-width: 540px; margin: 24px 0 30px; }
.league-stickers { display: grid; gap: 18px; justify-items: center; }
.league-stickers .sticker { position: static; padding: 18px 24px; border-radius: var(--radius); font-size: 24px; }
.league-stickers .sticker:nth-child(1) { transform: rotate(-4deg); }
.league-stickers .sticker:nth-child(2) { transform: rotate(3deg); background: var(--sunset); }
.league-stickers .sticker:nth-child(3) { transform: rotate(-2deg); background: #fff; }
.league .lock { color: #bfb3e6; font-size: 15px; margin-left: 6px; }

/* ---------- 11. Album ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.shot { padding: 10px 10px 16px; background: #fff; border: var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); cursor: zoom-in; text-align: left; transition: transform .15s; }
.shot:nth-child(odd) { transform: rotate(-1.6deg); }
.shot:nth-child(even) { transform: rotate(1.4deg) translateY(14px); }
.shot:hover { transform: rotate(0) translateY(-4px) scale(1.02); z-index: 2; }
.shot img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; border: 2px solid var(--ink); }
.shot strong { display: block; margin-top: 12px; font: 800 17px/1.15 var(--f-title); }
.shot small { color: var(--ink-soft); }
.lightbox { padding: 0; border: var(--line); border-radius: var(--radius); background: var(--peel); max-width: min(1000px, 94vw); box-shadow: 10px 10px 0 var(--banana); }
.lightbox::backdrop { background: #1a1233d9; }
.lightbox img { width: 100%; height: auto; }
.lightbox p { margin: 0; padding: 14px 18px; font: 800 20px var(--f-title); }
.lightbox-close { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; font-size: 26px; border: var(--line); border-radius: var(--radius); background: var(--banana); cursor: pointer; }

/* ---------- 12. Règles + FAQ ---------- */
.rules { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: start; }
.polaroid { position: relative; padding: 12px 12px 54px; background: #fff; border: var(--line); box-shadow: var(--shadow); transform: rotate(-3deg); max-width: 440px; }
.polaroid img { border: 2px solid var(--ink); }
.polaroid figcaption { position: absolute; left: 0; right: 0; bottom: 12px; text-align: center; }
.polaroid::before { content: ''; position: absolute; top: -16px; left: 50%; width: 110px; height: 32px; translate: -50% 0; rotate: 3deg; background: #ffd43bcc; border: 2px solid #1f1a1033; }
.rule-list { list-style: none; padding: 0; margin: 28px 0 32px; display: grid; gap: 12px; counter-reset: rule; }
.rule-list li { display: flex; align-items: center; gap: 16px; padding: 16px 18px; background: #fff; border: var(--line); border-radius: var(--radius); font-weight: 700; font-size: 19px; counter-increment: rule; }
.rule-list li::before { content: counter(rule, decimal-leading-zero); font: 400 14px var(--f-pixel); padding: 6px 8px; background: var(--banana); border: 2px solid var(--ink); }
.faq { margin-top: 70px; display: grid; gap: 12px; }
.faq details { background: #fff; border: var(--line); border-radius: var(--radius); }
.faq details[open] { box-shadow: var(--shadow-sm); background: var(--peel); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; padding: 18px 20px; font: 800 20px var(--f-title); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 28px; line-height: .8; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 20px 18px; margin: 0; color: var(--ink-soft); }

/* ---------- 13. Rejoindre + pied de page ---------- */
.join { background: var(--banana); border-top: var(--line); text-align: center; padding: 100px 0; position: relative; overflow: hidden; }
.join h2 { font-size: clamp(54px, 9vw, 120px); }
.join p { font-size: 20px; margin: 22px auto 34px; max-width: 520px; }
.join .btn { font-size: 26px; padding: 18px 30px; }
.join .bg-banana { position: absolute; font-size: 200px; opacity: .14; pointer-events: none; }
.footer { background: var(--ink); color: var(--peel-2); padding: 34px 0; }
.footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 30px; align-items: center; }
.footer a { color: var(--banana); }

/* ---------- 14. Toast, mode banane, fiche joueur ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 90; translate: -50% 160%; padding: 14px 20px; background: var(--ink); color: var(--banana); border: var(--line); border-color: var(--banana); border-radius: var(--radius); font-weight: 700; transition: translate .25s; }
.toast.visible { translate: -50% 0; }
.floating-banana { position: fixed; top: -60px; left: var(--x); z-index: 80; font-size: 42px; pointer-events: none; animation: fall var(--duration) ease-in forwards; }
@keyframes fall { to { transform: translateY(115vh) rotate(var(--spin)); } }
body.banana-mode { --peel: #ffe680; --peel-2: #ffd43b; }

.zg-profile { padding: 0; width: min(880px, calc(100vw - 24px)); max-height: 92vh; overflow: auto; background: var(--peel); color: var(--ink); border: var(--line); border-radius: var(--radius); box-shadow: 10px 10px 0 var(--banana); }
.zg-profile::backdrop { background: #1a1233d9; }
.zg-profile-head { display: flex; justify-content: space-between; gap: 16px; padding: 22px 24px; background: var(--dusk); color: var(--dusk-ink); }
.zg-profile-tag { font: 12px var(--f-pixel); color: var(--banana); text-transform: uppercase; }
.zg-profile-name { font-size: clamp(36px, 6vw, 60px); color: #fff; margin: 8px 0 4px; word-break: break-word; }
.zg-profile-small { margin: 0; font-size: 14px; color: #bfb3e6; }
.zg-profile-close { width: 44px; height: 44px; flex-shrink: 0; font-size: 26px; border: var(--line); border-radius: var(--radius); background: var(--banana); color: var(--ink); cursor: pointer; }
.zg-profile-body { display: grid; grid-template-columns: 260px 1fr; gap: 24px; padding: 24px; }
.zg-model { min-height: 380px; display: grid; place-items: center; background: radial-gradient(ellipse at 50% 30%, var(--dusk-2), var(--dusk)); border: var(--line); border-radius: var(--radius); overflow: hidden; }
.zg-model canvas { cursor: grab; touch-action: none; }
.zg-model-fallback { height: 340px; width: auto; image-rendering: pixelated; }
.zg-model-wait { color: var(--dusk-ink); text-align: center; padding: 20px; }
.zg-stats-title { font-size: 26px; margin-bottom: 16px; }
.zg-stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.zg-stat { padding: 14px; background: #fff; border: var(--line); border-radius: var(--radius); }
.zg-stat strong { display: block; font: 800 28px var(--f-title); }
.zg-stat span { font-size: 14px; color: var(--ink-soft); }
.zg-stats-note { margin: 14px 0 0; font-size: 14px; color: var(--ink-soft); }
.zg-profile-footer { padding: 14px 24px; border-top: 2px dashed #1f1a1033; font-size: 14px; color: var(--ink-soft); }

/* ---------- 15. Apparition au scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s, transform .6s; }
.reveal.in-view { opacity: 1; transform: none; }

/* ---------- 16. Ziggle League (page /lol/) ---------- */
.lol-page { background: linear-gradient(180deg, var(--dusk), #160f2c 70%); color: var(--dusk-ink); min-height: 100vh; }
.lol-page .site-header { background: var(--dusk); border-color: #000; color: #fff; }
.lol-page .brand b { color: var(--banana); }
.lol-user { margin-left: auto; display: flex; align-items: center; gap: 12px; font-weight: 700; }
.lol-user img { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--banana); }
.lol-user a { color: var(--banana); font-size: 14px; }
.lol-hero { padding: 64px 0 34px; }
.lol-hero h1 { font-size: clamp(52px, 9vw, 110px); color: #fff; }
.lol-hero h1 em { font-style: normal; color: var(--banana); }
.lol-hero p { max-width: 600px; color: #d9d0f3; font-size: 19px; margin-top: 22px; }
.tabs { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 18px; }
.tab { padding: 10px 16px; background: transparent; color: var(--dusk-ink); border: 2px solid #ffffff33; border-radius: var(--radius); cursor: pointer; font-weight: 700; }
.tab[aria-pressed="true"] { background: var(--banana); color: var(--ink); border-color: var(--ink); box-shadow: var(--shadow-sm); }
.lol-status { color: #bfb3e6; margin-bottom: 18px; }
.ranking { display: grid; gap: 14px; padding-bottom: 80px; }
.rank-row { background: var(--peel); color: var(--ink); border: var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.rank-row:first-child { background: var(--banana); box-shadow: 8px 8px 0 var(--sunset); }
.rank-row summary { display: grid; grid-template-columns: 64px 1fr auto; gap: 16px; align-items: center; padding: 16px 20px; list-style: none; cursor: pointer; }
.rank-row summary::-webkit-details-marker { display: none; }
.rank-place { font: 800 32px var(--f-title); text-align: center; }
.rank-name { font: 800 22px var(--f-title); }
.rank-sub { font-size: 14px; color: var(--ink-soft); }
.rank-tier { text-align: right; font: 800 18px var(--f-title); }
.rank-lp { text-align: right; font-size: 14px; color: var(--ink-soft); }
.rank-accounts { display: grid; gap: 8px; padding: 0 20px 18px; }
.rank-account { display: flex; justify-content: space-between; gap: 14px; padding: 10px 14px; background: #fff; border: 2px solid var(--ink); border-radius: var(--radius); }
.empty { padding: 28px; border: 2px dashed #ffffff44; border-radius: var(--radius); color: #bfb3e6; }
.lol-legal { color: #8e83b5; font-size: 13px; padding-bottom: 40px; }

/* Bandeau « en game » + cartes de la semaine */
.lol-highlights { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-bottom: 26px; }
.hl-card { padding: 18px 20px; background: var(--dusk-2); border: var(--line); border-color: #000; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.hl-card h2 { font-size: 22px; color: var(--banana); margin-bottom: 10px; }
.hl-card p { margin: 0; color: var(--dusk-ink); }
.hl-card strong { color: #fff; }
.hl-card--live { background: #4a1630; }
.hl-card--live h2 { color: #ff8fa3; }
.hl-live-list { display: grid; gap: 8px; }
.hl-live-item { display: flex; align-items: center; gap: 10px; }
.live-pulse { width: 10px; height: 10px; border-radius: 50%; background: #ff4d6d; box-shadow: 0 0 0 0 #ff4d6d99; animation: live 1.6s infinite; flex-shrink: 0; }
@keyframes live { 70% { box-shadow: 0 0 0 8px #ff4d6d00; } }

/* Icônes champion, badges, courbes */
.champ { width: 48px; height: 48px; border: 2px solid var(--ink); border-radius: 8px; background: var(--peel-2); image-rendering: auto; flex-shrink: 0; }
.champ--sm { width: 30px; height: 30px; border-radius: 6px; }
.rank-who { display: flex; align-items: center; gap: 14px; min-width: 0; }
.badges { display: inline-flex; flex-wrap: wrap; gap: 6px; margin-left: 8px; vertical-align: middle; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border: 2px solid var(--ink); border-radius: 99px; background: #fff; font: 700 12px var(--f-body); white-space: nowrap; }
.badge--hot { background: var(--sunset); }
.badge--live { background: #ff4d6d; color: #fff; }
.badge--up { background: var(--creeper); }
.badge--down { background: #ffb3ad; }
.acc-main { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 18px; }
.acc-champs { display: flex; gap: 6px; }
.acc-extra { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 10px; padding-top: 10px; border-top: 2px dashed #1f1a1022; font-size: 14px; color: var(--ink-soft); }
.spark { width: 220px; height: 52px; }
.spark polyline { fill: none; stroke: var(--dusk-2); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.spark circle { fill: var(--sunset); stroke: var(--ink); stroke-width: 1.5; }
.rank-account { display: block; }

/* ---------- 17. Responsive ---------- */
@media (max-width: 980px) {
  .nav { position: fixed; inset: 70px 0 auto; flex-direction: column; padding: 14px 20px 22px; background: var(--peel); border-bottom: var(--line); transform: translateY(-140%); transition: transform .25s; }
  .nav.is-open { transform: none; }
  .nav a { padding: 14px 10px; font-size: 20px; border-bottom: 2px dashed #1f1a1022; }
  .menu-toggle { display: block; }
  .site-header .btn { display: none; }
  .hero .wrap, .league .wrap, .rules, .live-grid { grid-template-columns: 1fr; }
  .hero .wrap { padding: 48px 0 70px; gap: 50px; }
  .features { grid-template-columns: 1fr; }
  .feature:nth-child(2) { transform: none; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 80px 0; }
  .zg-profile-body { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .gallery { grid-template-columns: 1fr; }
  .shot:nth-child(even) { transform: rotate(1.4deg); }
  .hero-art .sticker { left: auto; right: -8px; bottom: -36px; width: 96px; height: 96px; font-size: 15px; }
  .map-frame { aspect-ratio: 3 / 4; }
  .rank-row summary { grid-template-columns: 40px 1fr; }
  .rank-row summary > :last-child { grid-column: 2; }
  .rank-tier, .rank-lp { text-align: left; }
  .zg-stats-grid { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- 18. Ziggle League phase 2 : onglets, trophées, feed, duos ---------- */
.main-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 24px; padding-bottom: 18px; border-bottom: 2px dashed #ffffff22; }
.main-tabs .tab { font: 800 18px var(--f-title); padding: 12px 18px; }
.panel[hidden] { display: none; }
.panel-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; color: #bfb3e6; }
.panel-head .tabs { margin: 0; }

.trophy-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; padding-bottom: 60px; }
.trophy { padding: 20px; background: var(--peel); color: var(--ink); border: var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.trophy:nth-child(3n+1) { transform: rotate(-.6deg); }
.trophy:nth-child(3n+2) { transform: rotate(.5deg); }
.trophy-emoji { font-size: 38px; line-height: 1; }
.trophy h3 { font-size: 24px; margin: 10px 0 2px; }
.trophy-hint { font-size: 13px; color: var(--ink-soft); margin-bottom: 14px; }
.podium { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.podium li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 10px; background: #fff; border: 2px solid var(--ink); border-radius: var(--radius); font-weight: 700; }
.podium li:first-child { background: var(--banana); font-size: 18px; }
.podium .val { font-weight: 500; color: var(--ink-soft); white-space: nowrap; }
.podium-empty { color: var(--ink-soft); font-size: 14px; font-style: italic; }
.podium .val img { width: 20px; height: 20px; vertical-align: -5px; border-radius: 4px; }
.shame-intro { margin: -6px 0 18px; color: var(--ink-soft); font-size: 14px; }
.trophy--shame { background: #f3e9ec; }
.trophy--shame .podium li:first-child { background: #f6b3b8; }

.feed { display: grid; gap: 12px; padding-bottom: 60px; }
.feed-item { display: grid; grid-template-columns: 8px 1fr auto; gap: 0 16px; background: var(--peel); color: var(--ink); border: var(--line); border-radius: var(--radius); overflow: hidden; }
.feed-item::before { content: ''; background: var(--danger); }
.feed-item.is-win::before { background: var(--creeper); }
.feed-players { display: grid; gap: 8px; padding: 12px 0; }
.feed-player { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.feed-player strong { font: 800 18px var(--f-title); }
.feed-kda { font: 800 17px var(--f-title); }
.feed-meta { font-size: 13px; color: var(--ink-soft); }
.feed-side { display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 4px; padding: 12px 16px 12px 0; text-align: right; }
.feed-result { font: 800 18px var(--f-title); }
.is-win .feed-result { color: #23852a; }
.is-loss .feed-result { color: #c4372d; }
.badge--multi { background: var(--banana); }
.badge--duo { background: var(--dusk-2); color: #fff; }

.duo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; padding-bottom: 60px; }
.duo { padding: 18px 20px; background: var(--peel); color: var(--ink); border: var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.duo-title { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.duo-title strong { font: 800 21px var(--f-title); }
.duo-flag { font-size: 13px; font-weight: 700; padding: 2px 8px; border: 2px solid var(--ink); border-radius: 99px; background: var(--banana); white-space: nowrap; }
.duo-flag--bad { background: #ffb3ad; }
.duo-bar { height: 12px; margin: 12px 0 8px; background: #ffb3ad; border: 2px solid var(--ink); border-radius: 99px; overflow: hidden; }
.duo-bar span { display: block; height: 100%; background: var(--creeper); }
.member-badges { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 20px 6px; }
.member-badges .badge { background: var(--banana); }
@media (max-width: 560px) {
  .feed-item { grid-template-columns: 6px 1fr; }
  .feed-side { grid-column: 2; flex-direction: row; justify-content: space-between; align-items: center; padding: 0 12px 12px 0; }
  .main-tabs .tab { font-size: 15px; padding: 10px 12px; }
}

/* ---------- 19. Ziggle League : face-à-face, défis ---------- */
.field { display: inline-flex; flex-direction: column; gap: 6px; font-size: 14px; color: #bfb3e6; }
.select { min-width: 170px; padding: 11px 12px; background: var(--peel); color: var(--ink); border: var(--line); border-radius: var(--radius); font: 700 16px var(--f-body); }

.h2h-pick { display: flex; flex-wrap: wrap; align-items: end; gap: 14px; margin-bottom: 20px; }
.h2h-vs { font: 800 30px var(--f-title); color: var(--banana); padding-bottom: 6px; }
.h2h { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--peel); color: var(--ink); border: var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 18px; }
.h2h th, .h2h td { padding: 11px 14px; border-bottom: 2px dashed #1f1a1018; text-align: center; }
.h2h th { background: var(--banana); font: 800 19px var(--f-title); }
.h2h td:nth-child(2) { color: var(--ink-soft); font-size: 14px; font-weight: 700; width: 34%; }
.h2h tr:last-child td { border-bottom: 0; }
.h2h .win { background: #4cc55233; font-weight: 800; }
.h2h .champs { display: inline-flex; gap: 4px; justify-content: center; }
.h2h-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; padding-bottom: 60px; }


.challenge-board { margin: 6px 0 60px; }
.challenge-board h2 { font-size: 30px; color: #fff; margin-bottom: 6px; }
.challenge-board > p { color: #bfb3e6; margin-bottom: 14px; }
.challenge-row { display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center; padding: 12px 16px; margin-bottom: 8px; background: var(--peel); color: var(--ink); border: var(--line); border-radius: var(--radius); }
.challenge-row b { font: 800 22px var(--f-title); text-align: center; }
.tft-who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.tft-avatar { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--ink); flex: none; }
.challenge-row.is-unranked { opacity: .6; }

/* ---------- 20. Page profil joueur ---------- */
.back-link { display: inline-block; margin: 26px 0 0; color: var(--banana); font-weight: 700; text-decoration: none; }
.profile-hero { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; padding: 26px 0 30px; }
.profile-hero .champ { width: 96px; height: 96px; border-width: 3px; border-radius: 14px; box-shadow: var(--shadow); }
.profile-hero h1 { font-size: clamp(42px, 7vw, 80px); color: #fff; }
.profile-sub { color: #d9d0f3; font-size: 18px; margin-top: 8px; }
.profile-sub strong { color: var(--banana); }
.section-title { font-size: 30px; color: #fff; margin: 40px 0 16px; }
.section-title small { font: 400 15px var(--f-body); color: #bfb3e6; margin-left: 8px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.stat { padding: 14px 16px; background: var(--peel); color: var(--ink); border: var(--line); border-radius: var(--radius); }
.stat strong { display: block; font: 800 30px var(--f-title); }
.stat span { font-size: 14px; color: var(--ink-soft); }
.chart-box { padding: 16px; background: var(--peel); border: var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.chart-box .tabs { margin: 0 0 10px; }
.chart-box .tab { color: var(--ink); border-color: #1f1a1033; }
.big-chart { width: 100%; height: auto; display: block; }
.big-chart .grid line { stroke: #1f1a1018; stroke-dasharray: 3 5; }
.big-chart .grid line.major { stroke: #1f1a1040; stroke-dasharray: none; }
.big-chart .grid text { fill: var(--ink-soft); font: 11px var(--f-body); }
.big-chart .grid text.major { fill: var(--ink); font-weight: 700; font-size: 12px; }
.big-chart .peel { fill: var(--banana); }
.big-chart .outline { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linejoin: round; }
.big-chart .ridge { fill: none; stroke: var(--banana-deep); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.big-chart .shine { fill: none; stroke: var(--peel); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; opacity: .85; }
.big-chart .tip { fill: #3b2a12; stroke: var(--ink); stroke-width: 1.5; }
.big-chart .stem { fill: #6b4a1c; stroke: var(--ink); stroke-width: 2.5; stroke-linejoin: round; }
.big-chart .shades-g rect { fill: var(--ink); shape-rendering: crispEdges; }
.big-chart .shades-g .glint { fill: #fff; }
.big-chart .spot { fill: var(--dusk-2); stroke: #fff; stroke-width: 2; cursor: help; }
.big-chart .spot:hover { fill: var(--sunset); }
.big-chart .spot--now { fill: var(--sunset); stroke: var(--ink); stroke-width: 2.5; }
.big-chart .now-label { font: 700 13px var(--f-body); fill: var(--ink); paint-order: stroke; stroke: var(--peel); stroke-width: 4px; stroke-linejoin: round; }
.big-chart .spot.is-active { fill: var(--sunset); stroke: var(--ink); }
.big-chart .guide { stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 3 3; opacity: .5; pointer-events: none; }
.big-chart { touch-action: pan-y; cursor: crosshair; }
.chart-wrap { position: relative; }
.chart-tip {
  position: absolute; z-index: 5; transform: translate(-50%, calc(-100% - 14px)); pointer-events: none;
  display: flex; flex-direction: column; gap: 1px; padding: 7px 11px; white-space: nowrap;
  background: var(--ink); color: var(--peel); border-radius: var(--radius); box-shadow: 3px 3px 0 var(--banana);
  font: 13px/1.35 var(--f-body);
}
.chart-tip.below { transform: translate(-50%, 14px); }
.chart-tip[hidden] { display: none; }
.chart-tip strong { color: var(--banana); font-size: 14px; }
.chart-tip .up { color: #7ee787; font-weight: 700; }
.chart-tip .down { color: #ff8f8f; font-weight: 700; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--peel); color: var(--ink); border: var(--line); border-radius: var(--radius); overflow: hidden; }
.table th, .table td { padding: 9px 12px; text-align: left; border-bottom: 2px dashed #1f1a1018; }
.table th { background: var(--banana); font: 800 15px var(--f-title); }
.table tr:last-child td { border-bottom: 0; }
.table .who { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.role-row { display: grid; grid-template-columns: 32px 1fr 40px; gap: 10px; align-items: center; margin-bottom: 8px; color: var(--dusk-ink); font-weight: 700; }
.role-row .duo-bar { margin: 0; background: #ffffff22; }
.record-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.record { display: flex; gap: 12px; align-items: center; padding: 14px; background: var(--peel); color: var(--ink); border: var(--line); border-radius: var(--radius); }
.record b { display: block; font: 800 20px var(--f-title); }
.record small { color: var(--ink-soft); }
.member-link { color: inherit; text-decoration: none; border-bottom: 2px dotted currentColor; }
.member-link:hover { color: var(--banana-deep); }
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; } }

/* ---------- 21. Générateur d'équipes (customs) ---------- */
.picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; margin-bottom: 18px; }
.pick { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--peel); color: var(--ink); border: var(--line); border-radius: var(--radius); cursor: pointer; }
.pick.is-on { background: var(--banana); box-shadow: var(--shadow-sm); }
.pick input { width: 20px; height: 20px; accent-color: var(--ink); }
.pick .rank-sub { margin-left: auto; text-align: right; }
.guest-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin-bottom: 18px; }
.guest-row input { padding: 11px 12px; border: var(--line); border-radius: var(--radius); font: 700 16px var(--f-body); background: var(--peel); }
.teams { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 18px 0 12px; }
.team { padding: 16px 18px; border: var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); color: var(--ink); }
.team--blue { background: #b9d4ff; }
.team--red { background: #ffc2bd; }
.team h3 { font-size: 24px; margin-bottom: 10px; }
.team li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 2px dashed #1f1a1022; font-weight: 700; }
.team ul { list-style: none; margin: 0; padding: 0; }
.team .total { margin-top: 10px; font-size: 14px; color: var(--ink-soft); }
@media (max-width: 640px) { .teams { grid-template-columns: 1fr; } }

/* ---------- 22. Avatars Discord + champion en médaillon ---------- */
.avatar { position: relative; flex-shrink: 0; width: 52px; height: 52px; }
.avatar-img { width: 100%; height: 100%; border-radius: 50%; border: 3px solid var(--ink); background: var(--peel-2); object-fit: cover; }
.champ--corner { position: absolute; right: -6px; bottom: -6px; width: 26px; height: 26px; border-radius: 7px; border: 2px solid var(--ink); background: var(--peel-2); box-shadow: 2px 2px 0 var(--ink); }
.avatar--big { width: 104px; height: 104px; }
.avatar--big .avatar-img { border-width: 4px; box-shadow: var(--shadow); }
.avatar--big .champ--corner { width: 44px; height: 44px; right: -8px; bottom: -8px; border-width: 3px; }
.rank-row:first-child .avatar-img { border-color: var(--ink); box-shadow: 0 0 0 3px var(--banana-deep); }

/* ---------- Banane IA : chatbox de Ziggle League ---------- */
.banane { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.banane-toggle {
  display: flex; align-items: center; gap: 10px; padding: 6px 16px 6px 6px; cursor: pointer;
  background: var(--banana); color: var(--ink); font-weight: 700;
  border: var(--line); border-radius: 999px; box-shadow: var(--shadow-sm); transition: transform .15s, box-shadow .15s;
}
.banane-toggle:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow); }
.banane-toggle img { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--ink); }
.banane.is-open .banane-toggle-label { display: none; }
.banane.is-open .banane-toggle { padding-right: 6px; }
.banane-panel {
  width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100vh - 120px));
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--dusk); color: var(--dusk-ink);
  border: var(--line); border-color: #000; border-radius: var(--radius); box-shadow: 6px 6px 0 var(--banana);
}
.banane-panel[hidden] { display: none; }
.banane-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--dusk-2); border-bottom: 3px solid #000; }
.banane-head img { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--banana); }
.banane-head > div { flex: 1; min-width: 0; line-height: 1.2; }
.banane-head strong { display: block; color: var(--banana); font-family: var(--f-title); font-size: 20px; }
.banane-sub { font-size: 12px; color: #bfb3e6; }
.banane-icon { width: 34px; height: 34px; border: 2px solid #000; border-radius: var(--radius); background: var(--dusk); color: var(--banana); cursor: pointer; font-size: 16px; }
.banane-icon:hover { background: var(--banana); color: var(--ink); }
.banane-log { flex: 1; overflow-y: auto; padding: 14px 12px; display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; }
.banane-msg { display: flex; align-items: flex-end; gap: 8px; max-width: 88%; }
.banane-msg img { width: 28px; height: 28px; border-radius: 50%; flex: none; }
.banane-msg p { margin: 0; padding: 8px 12px; font-size: 15px; line-height: 1.45; border: 2px solid #000; border-radius: 12px 12px 12px 2px; background: var(--dusk-2); white-space: pre-wrap; overflow-wrap: anywhere; }
.banane-msg--user { align-self: flex-end; }
.banane-msg--user p { background: var(--banana); color: var(--ink); border-radius: 12px 12px 2px 12px; }
.banane-msg.is-typing p { color: #bfb3e6; font-style: italic; animation: banane-blink 1.2s infinite; }
.banane-msg.is-error p { background: #4a1630; color: #ffd0d8; }
@keyframes banane-blink { 50% { opacity: .45; } }
.banane-chips { display: flex; flex-wrap: wrap; gap: 6px; padding-left: 36px; }
.banane-chip { padding: 5px 10px; font-size: 13px; border: 2px solid var(--banana); border-radius: 999px; background: transparent; color: var(--banana); cursor: pointer; }
.banane-chip:hover { background: var(--banana); color: var(--ink); }
.banane-form { display: flex; gap: 8px; padding: 10px 12px 4px; border-top: 3px solid #000; }
.banane-form input { flex: 1; min-width: 0; padding: 9px 12px; font: inherit; font-size: 15px; border: 2px solid #000; border-radius: var(--radius); background: var(--peel); color: var(--ink); }
.banane-form .btn:disabled { opacity: .6; cursor: wait; }
.banane-foot { margin: 0; padding: 4px 12px 10px; font-size: 10px; color: #bfb3e6; }
@media (max-width: 560px) {
  .banane { right: 16px; bottom: 16px; }
  .banane-toggle-label { display: none; }
  .banane-toggle { padding-right: 6px; }
}
@media (prefers-reduced-motion: reduce) { .banane-msg.is-typing p { animation: none; } }

/* ---------- Icônes de rôle (site/lol/role-icons.js, images dans /assets/roles/) ---------- */
.role-ico { display: inline-flex; vertical-align: middle; padding: 3px; background: var(--ink); border-radius: 50%; line-height: 0; }
.role-ico img { display: block; }
.rank-name .role-ico { margin: 0 4px 0 8px; vertical-align: -2px; }
.rank-sub .role-ico { vertical-align: -4px; padding: 2px; }
.profile-sub .role-ico { vertical-align: -5px; }

/* ---------- Emblèmes de rang (site/assets/ranks/*.svg, mini-crests officiels Riot) ---------- */
.rank-tier--crest { display: inline-flex; align-items: center; justify-content: flex-end; gap: 6px; width: 100%; }
.tier-crest { width: auto; display: block; filter: drop-shadow(0 1px 0 #1f1a1055); }
.tier-div { font: 800 20px var(--f-title); letter-spacing: .02em; }
