/* Layout idea: a news desk. Unlock tracker up top, news column with a follow/ads rail, clips grid below. */
:root {
  color-scheme: dark;
  --bg: #0B0B12;
  --panel: #14141F;
  --line: #262636;
  --text: #ECECF4;
  --muted: #A3A3B8;
  --accent: #FF4D6D;
  --live: #3DDC97;
  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: 16px; line-height: 1.55; }
a { color: var(--text); }
a:hover { color: var(--accent); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--font-display); text-wrap: balance; margin: 0; line-height: 1.15; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

header.site { border-bottom: 1px solid var(--line); position: sticky; top: 0; background: rgba(11, 11, 18, 0.94); z-index: 5; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 12px 0; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -0.5px; }
.brand span { color: var(--accent); }
nav.main { display: flex; gap: 22px; flex-wrap: wrap; }
nav.main a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: 15px; padding: 10px 0; }
nav.main a:hover { color: var(--text); }

.hero { padding: 40px 0 28px; display: flex; flex-direction: column; gap: 22px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--live); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--live); }
.hero h1 { font-size: clamp(32px, 5.4vw, 56px); letter-spacing: -1.5px; max-width: 18ch; }
.hero p.lede { margin: 0; color: var(--muted); max-width: 62ch; font-size: 17px; }

.tracker { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; min-width: 560px; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 15px; }
th { color: var(--muted); font-weight: 500; font-size: 13px; text-transform: uppercase; letter-spacing: 0.6px; }
tr:last-child td { border-bottom: 0; }
.status { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.status.live { background: rgba(61, 220, 151, 0.14); color: var(--live); }
.status.wait { background: rgba(255, 77, 109, 0.14); color: #FF8097; }
.note { color: var(--muted); font-size: 13px; margin: 0; }

.ad { border: 1px dashed var(--line); border-radius: 10px; color: var(--muted); font-size: 12px; letter-spacing: 1px; text-transform: uppercase; display: flex; align-items: center; justify-content: center; text-align: center; padding: 10px; }
.ad.leader { min-height: 90px; margin: 8px 0 32px; }
.ad.box { min-height: 250px; }
.ad[hidden] { display: none; }

.columns { display: flex; gap: 36px; flex-wrap: wrap; align-items: flex-start; padding-bottom: 48px; }
.news { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.rail { flex: 1 1 280px; display: flex; flex-direction: column; gap: 22px; }
.section-title { font-size: 24px; letter-spacing: -0.5px; padding-bottom: 12px; border-bottom: 2px solid var(--accent); display: inline-block; }
article.item { display: flex; flex-direction: column; gap: 8px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
article.item h3 { font-size: 21px; }
article.item p { margin: 0; color: #CFCFDD; max-width: 65ch; }
.meta { font-size: 13px; color: var(--muted); }
.meta a { color: var(--muted); }

.card { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.card h3 { font-size: 17px; }
.follow { display: flex; flex-direction: column; gap: 8px; }
.follow a { display: flex; justify-content: space-between; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; font-weight: 500; }
.follow a:hover { border-color: var(--accent); }
.follow small { color: var(--muted); font-weight: 400; }

.clips { padding: 8px 0 56px; display: flex; flex-direction: column; gap: 22px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.clip { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.clip h3 { font-size: 18px; }
.clip .credit { font-size: 13px; color: var(--muted); margin: 0; }
.clip .links { display: flex; gap: 14px; flex-wrap: wrap; margin-top: auto; }
.clip .links a { font-size: 14px; font-weight: 600; color: var(--accent); text-decoration: none; padding: 8px 0; }
.clip .links a:hover { text-decoration: underline; }

.band { padding: 8px 0 48px; display: flex; flex-direction: column; gap: 22px; }
.band > p.lede { margin: 0; color: var(--muted); max-width: 65ch; }
.tips { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.tip { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.tip svg { width: 34px; height: 34px; stroke: var(--accent); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tip h3 { font-size: 18px; }
.tip p { margin: 0; color: #CFCFDD; font-size: 15px; }
.statusbox { border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 10px; background: var(--panel); padding: 18px 20px; display: flex; flex-direction: column; gap: 8px; }
.statusbox strong { font-family: var(--font-display); font-size: 19px; }
.statusbox p { margin: 0; color: #CFCFDD; max-width: 70ch; font-size: 15px; }
.toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 4px; gap: 4px; align-self: flex-start; }
.toggle button { min-height: 40px; padding: 0 18px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font: 600 14px var(--font-body); cursor: pointer; }
.toggle button[aria-pressed="true"] { background: var(--accent); color: #14060A; }
.keys { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.key { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; height: 32px; padding: 0 8px; border-radius: 50%; border: 1.5px solid #4A4A60; background: #1C1C2A; font: 700 14px var(--font-display); color: var(--text); }
.key.pill { border-radius: 8px; }
.key.dpad { border-radius: 6px; }
.key.c-cross, .key.c-x { color: #7DB3FF; } .key.c-circle, .key.c-b { color: #FF7A7A; }
.key.c-square { color: #F2A3E0; } .key.c-triangle { color: #5FE0B0; }
.key.c-a { color: #6FE08A; } .key.c-y { color: #FFD35C; }

footer { border-top: 1px solid var(--line); padding: 28px 0 44px; color: var(--muted); font-size: 13px; }
footer p { margin: 0 0 8px; max-width: 80ch; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* --- pages multiples --- */
nav.main a[aria-current="page"] { color: var(--text); border-bottom: 2px solid var(--accent); }
.pagehead { padding: 40px 0 20px; display: flex; flex-direction: column; gap: 14px; }
.pagehead h1 { font-size: clamp(30px, 4.6vw, 46px); letter-spacing: -1px; }
.pagehead .lede { margin: 0; color: var(--muted); max-width: 62ch; font-size: 17px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.tile { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); padding: 18px; display: flex; flex-direction: column; gap: 6px; text-decoration: none; }
.tile:hover { border-color: var(--accent); color: var(--text); }
.tile svg { width: 30px; height: 30px; stroke: var(--accent); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tile strong { font-family: var(--font-display); font-size: 18px; }
.tile span { color: var(--muted); font-size: 14px; }
.tag { display: inline-block; padding: 2px 8px; border-radius: 4px; background: rgba(255, 77, 109, 0.14); color: #FF8097; font-weight: 600; font-size: 11px; letter-spacing: 0.8px; margin-right: 6px; }
.more { color: var(--accent); font-weight: 600; text-decoration: none; }
.more:hover { text-decoration: underline; }
.prose p, .prose li { color: #CFCFDD; max-width: 65ch; }
.prose p { margin: 0; }
.prose ul { margin: 0; padding-left: 20px; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px 24px; }
.prose th[scope="row"] { width: 34%; text-transform: none; letter-spacing: 0; font-size: 15px; }
.prose .section-title { margin-top: 14px; align-self: flex-start; }
.faq { display: flex; flex-direction: column; gap: 10px; max-width: 760px; }
.faq details { border: 1px solid var(--line); border-radius: 10px; background: var(--panel); padding: 0 18px; }
.faq summary { cursor: pointer; font-family: var(--font-display); font-weight: 700; font-size: 17px; padding: 16px 0; min-height: 44px; }
.faq details p { margin: 0 0 16px; color: #CFCFDD; max-width: 65ch; }
.band .section-title { align-self: flex-start; }


/* --- sélecteur de langue --- */
.flags { display: flex; gap: 6px; align-items: center; }
.flag { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 40px; border-radius: 8px; border: 1px solid transparent; }
.flag svg { width: 28px; height: 19px; border-radius: 3px; display: block; opacity: 0.6; }
.flag:hover svg { opacity: 1; }
.flag[aria-current="true"] { border-color: var(--accent); }
.flag[aria-current="true"] svg { opacity: 1; }

/* --- présentation portail --- */
nav.main { gap: 6px; }
nav.main a { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 999px; font-size: 14px; }
nav.main a svg { width: 16px; height: 16px; stroke: var(--accent); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
nav.main a[aria-current="page"] { background: rgba(255, 77, 109, 0.14); border-bottom: 0; color: var(--text); }

.hero2 { position: relative; overflow: hidden; background: linear-gradient(180deg, #1B1024 0%, #2A1226 55%, var(--bg) 100%); border-bottom: 1px solid var(--line); }
.hero2 .hero-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-in { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; padding: 72px 20px 64px; }
.hero2.small .hero-in { padding: 52px 20px 44px; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.16); background: rgba(11, 11, 18, 0.6); font-size: 12px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; }
.mega { font-size: clamp(44px, 9vw, 104px); letter-spacing: -3px; text-transform: uppercase; line-height: 0.95; }
.mega.mid { font-size: clamp(34px, 6vw, 62px); letter-spacing: -1.5px; text-transform: none; }
.mega span { background: linear-gradient(90deg, #FFB020, #FF4D6D); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-in .lede { margin: 0; color: #D8D4E4; max-width: 56ch; font-size: 17px; }
.chips { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.chips span { padding: 9px 18px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.16); font-weight: 600; font-size: 14px; }

.band { padding-top: 40px; }
.bar-title { font-size: 22px; letter-spacing: -0.3px; padding-left: 12px; border-left: 4px solid var(--accent); align-self: flex-start; }
.prose .bar-title { margin-top: 14px; }
.row-title { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

.tiles { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.tile { min-height: 150px; justify-content: flex-end; position: relative; overflow: hidden; border-color: rgba(255, 255, 255, 0.08); }
.tile .chip { width: 42px; height: 42px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: rgba(255, 77, 109, 0.22); border: 1px solid rgba(255, 77, 109, 0.5); margin-bottom: 4px; }
.tile .chip svg { width: 22px; height: 22px; stroke: #FFD9E0; }
.tile span { color: #CFCADB; }
.c1 { background: linear-gradient(135deg, #3A1430 0%, #1A1226 70%); }
.c2 { background: linear-gradient(135deg, #3B2412 0%, #1D141C 70%); }
.c3 { background: linear-gradient(135deg, #14303A 0%, #121826 70%); }
.c4 { background: linear-gradient(135deg, #2C1C46 0%, #15121F 70%); }
.c5 { background: linear-gradient(135deg, #3A1820 0%, #1A1218 70%); }
.c6 { background: linear-gradient(135deg, #1E2A44 0%, #12141F 70%); }

.pill { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; background: rgba(11, 11, 18, 0.7); border: 1px solid rgba(255, 255, 255, 0.18); font-size: 11px; font-weight: 700; letter-spacing: 0.8px; align-self: flex-start; }
.pill.hot { background: var(--accent); border-color: var(--accent); color: #14060A; }
.newsgrid { display: flex; gap: 18px; flex-wrap: wrap; align-items: stretch; }
.feature { flex: 999 1 480px; min-width: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--panel); display: flex; flex-direction: column; }
.cover { min-height: 250px; padding: 18px; display: flex; flex-wrap: wrap; align-content: flex-start; gap: 8px; position: relative; }
.cover strong { flex-basis: 100%; margin-top: auto; align-self: flex-end; font-family: var(--font-display); font-size: clamp(26px, 4vw, 40px); line-height: 1.05; letter-spacing: -1px; text-transform: uppercase; color: #FFE7A8; text-wrap: balance; }
.feature-body { padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.feature-body h3 { font-size: 21px; }
.feature-body p { margin: 0; color: #CFCFDD; }
.minis { flex: 1 1 320px; display: flex; flex-direction: column; gap: 14px; }
.mini { display: flex; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--panel); text-decoration: none; flex: 1; min-height: 104px; }
.mini:hover { border-color: var(--accent); color: var(--text); }
.thumb { flex: 0 0 92px; display: flex; align-items: center; justify-content: center; font: 700 40px var(--font-display); color: rgba(255, 231, 168, 0.85); }
.mini-body { padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; justify-content: center; }
.mini-body strong { font-family: var(--font-display); font-size: 15px; line-height: 1.25; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.search { width: min(560px, 100%); min-height: 48px; padding: 0 18px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.18); background: rgba(11, 11, 18, 0.7); color: var(--text); font: 500 16px var(--font-body); }
.search::placeholder { color: var(--muted); }
.search:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.fpill { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.18); background: rgba(11, 11, 18, 0.6); color: var(--text); font: 600 14px var(--font-body); cursor: pointer; }
.fpill[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #14060A; }
.suggest { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); padding: 16px 20px; }
.suggest div { display: flex; flex-direction: column; gap: 2px; }
.suggest strong { font-family: var(--font-display); }
.suggest span { color: var(--muted); font-size: 14px; }
.btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 10px; background: var(--accent); color: #14060A; font-weight: 700; text-decoration: none; }
.btn:hover { color: #14060A; filter: brightness(1.08); }
.count { margin: 0; color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.codes { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.codes:empty { display: none; }
.code { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.code h3 { font-size: 17px; }

/* --- images optionnelles : dépose les fichiers dans le dossier img/, sans toucher au code --- */
/* Si un fichier manque, le dégradé d'origine reste affiché. */
.tile.c1 { background: linear-gradient(180deg, rgba(11,11,18,0.15), rgba(11,11,18,0.88)), url("../img/tile-news.jpg") center/cover, linear-gradient(135deg, #3A1430 0%, #1A1226 70%); }
.tile.c2 { background: linear-gradient(180deg, rgba(11,11,18,0.15), rgba(11,11,18,0.88)), url("../img/tile-guide.jpg") center/cover, linear-gradient(135deg, #3B2412 0%, #1D141C 70%); }
.tile.c3 { background: linear-gradient(180deg, rgba(11,11,18,0.15), rgba(11,11,18,0.88)), url("../img/tile-cheats.jpg") center/cover, linear-gradient(135deg, #14303A 0%, #121826 70%); }
.tile.c4 { background: linear-gradient(180deg, rgba(11,11,18,0.15), rgba(11,11,18,0.88)), url("../img/tile-tips.jpg") center/cover, linear-gradient(135deg, #2C1C46 0%, #15121F 70%); }
.tile.c5 { background: linear-gradient(180deg, rgba(11,11,18,0.15), rgba(11,11,18,0.88)), url("../img/tile-clips.jpg") center/cover, linear-gradient(135deg, #3A1820 0%, #1A1218 70%); }
.tile.c6 { background: linear-gradient(180deg, rgba(11,11,18,0.15), rgba(11,11,18,0.88)), url("../img/tile-faq.jpg") center/cover, linear-gradient(135deg, #1E2A44 0%, #12141F 70%); }
.tile { min-height: 190px; }
.cover.c1 { background: linear-gradient(180deg, rgba(11,11,18,0.1), rgba(11,11,18,0.8)), url("../img/cover.jpg") center/cover, linear-gradient(135deg, #3A1430 0%, #1A1226 70%); }
.hero2.has-img { background: linear-gradient(180deg, rgba(11,11,18,0.35), rgba(11,11,18,0.92)), url("../img/hero.jpg") center/cover; }
.hero2.has-img .hero-art { display: none; }

/* --- base de données --- */
.tile.c7 { background: linear-gradient(180deg, rgba(11,11,18,0.15), rgba(11,11,18,0.88)), url("../img/tile-database.jpg") center/cover, linear-gradient(135deg, #2A2414 0%, #16141C 70%); }
.dbhub .tile .pill { margin-top: 6px; }
.dbgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.dbcard { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.dbcard .chip { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: rgba(255, 77, 109, 0.16); border: 1px solid rgba(255, 77, 109, 0.4); }
.dbcard .chip svg { width: 21px; height: 21px; stroke: #FFD9E0; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dbcard h3 { font-size: 18px; }
.dbcard p { margin: 0; color: #CFCFDD; font-size: 15px; }

/* --- miniatures des clips --- */
.clip-grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.clip { padding: 0; overflow: hidden; }
.clip h3, .clip .credit, .clip .links { padding: 0 16px; }
.clip h3 { padding-top: 14px; font-size: 17px; }
.clip .links { padding-bottom: 14px; }
.clip .shot { display: block; position: relative; aspect-ratio: 9 / 14; background: #000; overflow: hidden; }
.clip .shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.playbtn { position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%; background: rgba(11, 11, 18, 0.72); border: 2px solid #FFFFFF; }
.playbtn::after { content: ""; position: absolute; left: 22px; top: 16px; border-style: solid; border-width: 11px 0 11px 18px; border-color: transparent transparent transparent #FFFFFF; }
.clip .shot:hover .playbtn { background: var(--accent); border-color: var(--accent); }

.chips a { padding: 10px 20px; border-radius: 999px; background: #FFFFFF; color: #14141F; font-weight: 700; font-size: 14px; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.chips a + a { background: rgba(255, 255, 255, 0.12); color: var(--text); border: 1px solid rgba(255, 255, 255, 0.22); }
.chips a:hover { background: var(--accent); color: #14060A; border-color: var(--accent); }
