/* FC Manager — site de téléchargement. Même DA que le jeu et l'ancien launcher : bleu façon menus FIFA / EA FC,
   titres Barlow Condensed, boutons blancs, tuiles d'images. Une seule feuille : page d'accueil + page crédits. */
:root {
  --bg: #1b4d8f; --navy: #0f2b5c;
  --text: #fff; --mut: rgba(236, 243, 255, .84); --dim: rgba(220, 230, 248, .66);
  --line: rgba(255, 255, 255, .2); --line2: rgba(255, 255, 255, .34);
  --panel: rgba(255, 255, 255, .12); --panel2: rgba(255, 255, 255, .18);
  --light: #eef3fa; --light-mut: #46587a; --light-line: rgba(15, 43, 92, .14);
  --fb: 'Inter Tight', Inter, system-ui, sans-serif;
  --fh: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --wrap: 1180px;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.55 var(--fb); -webkit-font-smoothing: antialiased; overflow-x: hidden; text-shadow: 0 1px 2px rgba(0, 14, 44, .25); }
body::before { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(160deg, rgba(60, 140, 222, .45) 0%, rgba(24, 74, 146, .55) 50%, rgba(10, 34, 78, .72) 100%), #1d4f93 url(../img/bg-blur.webp) center / cover no-repeat; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
code { font: 500 .92em/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: rgba(0, 12, 40, .3); padding: 2px 6px; border-radius: 3px; white-space: nowrap; }
::selection { background: #fff; color: var(--navy); }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left)); }
.wrap.narrow { max-width: 820px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; padding: 8px 12px; background: #fff; color: var(--navy); text-shadow: none; }
.skip:focus { left: 8px; }

/* ---------- boutons : blancs façon FIFA, agrandissement au survol ---------- */
.btn { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 46px; padding: 9px 22px; border-radius: 3px; border: 1px solid var(--line2);
  background: rgba(255, 255, 255, .14); color: #fff; font: 700 15px/1 var(--fh); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; text-shadow: none; cursor: pointer; white-space: nowrap;
  transition: transform .2s var(--ease), background .15s, color .15s, box-shadow .2s; }
.btn:hover { transform: scale(1.04); background: rgba(255, 255, 255, .24); }
.btn:active { transform: scale(.99); }
.btn:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.btn.pri { background: #fff; border-color: #fff; color: var(--navy); box-shadow: 0 12px 30px -12px rgba(0, 10, 40, .6); }
.btn.pri:hover { background: #fff; box-shadow: 0 0 0 4px rgba(255, 255, 255, .25), 0 16px 34px -12px rgba(0, 10, 40, .7); }
.btn.lg { min-height: 62px; padding: 11px 34px; font-size: 19px; }
.btn.sm { min-height: 36px; padding: 0 16px; font-size: 13px; }
.btn .meta { font: 500 12px/1 var(--fb); letter-spacing: .02em; text-transform: none; opacity: .72; }
.btn .meta:empty { display: none; }

/* ---------- navigation ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; border-bottom: 1px solid transparent; padding-top: env(safe-area-inset-top); transition: background .3s, border-color .3s; }
.nav.on { background: rgba(10, 40, 92, .78); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); border-color: rgba(255, 255, 255, .16); }
.nav-in { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 800 21px/1 var(--fh); letter-spacing: .04em; white-space: nowrap; }
.brand b { color: #8fc1ff; font-weight: 800; }
.nav-links { display: flex; gap: 24px; margin-left: auto; }
.nav-links a { text-decoration: none; font: 600 14px/1 var(--fh); letter-spacing: .14em; text-transform: uppercase; color: var(--mut); white-space: nowrap; transition: color .2s, transform .18s var(--ease); }
.nav-links a:hover, .nav-links a.on { color: #fff; transform: scale(1.06); }
@media (max-width: 900px) { .nav-links { display: none; } .nav .btn { margin-left: auto; } }

/* ---------- téléchargement (hero) ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; transform: scale(1.03); }
.hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 24, 56, .55) 0%, rgba(8, 24, 56, .22) 38%, rgba(16, 48, 100, .62) 74%, var(--bg) 100%); }
.hero-in { display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: 92px; padding-bottom: 60px; }
.kick-hero { margin-bottom: 16px; }
.logo-type { margin: 0; font: 800 clamp(64px, 10.5vw, 132px)/.86 var(--fh); letter-spacing: .005em; text-transform: uppercase; text-shadow: 0 6px 30px rgba(0, 20, 60, .45); }
.logo-type b { font-weight: 800; text-shadow: 0 0 30px rgba(120, 190, 255, .6); }
.hero-sub { margin: 16px auto 26px; max-width: 34em; font: 500 clamp(16px, 1.6vw, 20px)/1.4 var(--fb); color: rgba(255, 255, 255, .94); }
.dl { display: flex; flex-direction: column; align-items: center; gap: 12px; width: 100%; }
.dl-alt { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.hero-note { margin: 14px 0 0; font-size: 13px; color: rgba(255, 255, 255, .9); }
.hero-note + .hero-note { margin-top: 8px; }
.hero-note a { text-decoration: underline; text-underline-offset: 3px; }
.hero-note .meta { margin-left: 6px; color: var(--dim); }
.hero-note .meta:empty { display: none; }
.badge { display: inline-block; margin: 22px 0 0; padding: 9px 14px; border: 1px solid rgba(255, 255, 255, .4); border-radius: 3px; background: rgba(10, 40, 92, .45); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-size: 13.5px; line-height: 1.45; max-width: 46em; }
.badge b { margin-right: 4px; font: 700 13px/1 var(--fh); letter-spacing: .12em; text-transform: uppercase; }
.hero-meta { margin: 12px 0 0; font-size: 13px; color: var(--dim); }
.hero-meta b { color: #fff; font-weight: 600; }
@media (max-width: 560px) {
  .hero-in { padding-top: 84px; padding-bottom: 52px; }
  .logo-type { font-size: clamp(56px, 17vw, 76px); }
  .dl-main, .dl-alt { width: 100%; max-width: 360px; }
  .dl-main .btn, .dl-alt .btn { width: 100%; }
  .dl-alt { flex-direction: column; align-items: stretch; }
}

/* ---------- sections ---------- */
.sec { padding: clamp(64px, 9vw, 112px) 0; scroll-margin-top: 48px; }
.sec:not(.light) + .sec:not(.light) { padding-top: 0; }
.sec.light { background: var(--light); color: var(--navy); text-shadow: none; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5); }
.kick { display: inline-block; margin: 0 0 18px; padding: 6px 10px 5px; background: #fff; color: var(--navy); font: 800 12px/1 var(--fb); letter-spacing: .18em; text-transform: uppercase; text-shadow: none; }
.big { margin: 0; font: 800 clamp(44px, 7vw, 96px)/.9 var(--fh); text-transform: uppercase; letter-spacing: 0; }
.lead { margin: 22px 0 0; max-width: 40em; font-size: clamp(16px, 1.4vw, 19px); line-height: 1.5; color: var(--mut); }
.light .kick { background: var(--navy); color: #fff; }
.light .lead { color: var(--light-mut); }
.light ::selection { background: var(--navy); color: #fff; }

/* tuiles d'images */
.tiles { display: grid; gap: 18px; margin-top: clamp(32px, 4vw, 48px); }
.tiles-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tile { margin: 0; border-radius: 6px; overflow: hidden; background: var(--navy); border: 1px solid rgba(255, 255, 255, .22); box-shadow: 0 24px 50px -24px rgba(0, 10, 40, .8); transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; }
.tile:hover { transform: scale(1.02); border-color: rgba(255, 255, 255, .6); box-shadow: 0 30px 60px -24px rgba(0, 10, 40, .9); }
.tile img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
#tv .tile img { aspect-ratio: 16 / 9; }
.tile figcaption { padding: 14px 16px 16px; }
.tile figcaption b { display: block; font: 800 22px/1 var(--fh); text-transform: uppercase; letter-spacing: .02em; }
.tile figcaption span { display: block; margin-top: 5px; font-size: 14px; line-height: 1.4; color: var(--mut); }
.light .tile { background: #fff; border-color: var(--light-line); box-shadow: 0 18px 40px -24px rgba(15, 43, 92, .45); }
.light .tile:hover { border-color: rgba(15, 43, 92, .4); }
.light .tile figcaption b { color: var(--navy); }
.light .tile figcaption span { color: var(--light-mut); }
@media (max-width: 960px) { .tiles-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .tiles-3 { grid-template-columns: 1fr; } }

/* installation */
.steps { list-style: none; margin: clamp(32px, 4vw, 48px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.steps li { padding: 22px 22px 24px; border-radius: 4px; background: var(--panel); border: 1px solid var(--line); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.steps .num { display: inline-grid; place-items: center; width: 34px; height: 34px; margin-bottom: 14px; border-radius: 50%; background: #fff; color: var(--navy); font: 800 17px/1 var(--fh); text-shadow: none; }
.steps b { display: block; font: 800 24px/1 var(--fh); text-transform: uppercase; letter-spacing: .02em; }
.steps p { margin: 8px 0 0; font-size: 14.5px; line-height: 1.5; color: var(--mut); }
.steps-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
/* onglets Windows / macOS / Linux : l'onglet du système détecté est ouvert par launcher.js (Windows sans script) */
.os-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: clamp(28px, 4vw, 40px); }
.os-tab { min-height: 42px; padding: 0 22px; border-radius: 3px; border: 1px solid var(--line2); background: rgba(255, 255, 255, .1); color: #fff;
  font: 700 15px/1 var(--fh); letter-spacing: .12em; text-transform: uppercase; cursor: pointer; transition: background .15s, color .15s, transform .18s var(--ease); }
.os-tab:hover { background: rgba(255, 255, 255, .22); transform: scale(1.03); }
.os-tab.on { background: #fff; border-color: #fff; color: var(--navy); text-shadow: none; }
.inst .steps { margin-top: 16px; }
.inst-note { margin: 16px 0 0; max-width: 60em; font-size: 14px; line-height: 1.5; color: var(--mut); }
/* commande à copier (Terminal) */
.cmd { display: flex; align-items: stretch; gap: 8px; margin-top: 12px; }
.cmd code { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; padding: 8px 10px; border-radius: 3px; font-size: 13px; line-height: 1.4; white-space: pre-wrap; overflow-wrap: anywhere; background: rgba(0, 12, 40, .45); border: 1px solid rgba(255, 255, 255, .14); }
.copy { flex: 0 0 auto; min-width: 74px; padding: 0 12px; border-radius: 3px; border: 1px solid var(--line2); background: rgba(255, 255, 255, .14); color: #fff; font: 700 12px/1 var(--fh); letter-spacing: .12em; text-transform: uppercase; text-shadow: none; cursor: pointer; transition: background .15s, color .15s; }
.copy:hover { background: rgba(255, 255, 255, .26); }
.copy.ok { background: #fff; border-color: #fff; color: var(--navy); }
@media (max-width: 1100px) { .steps-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 820px) { .steps, .steps-4 { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .os-tabs { gap: 6px; } .os-tab { flex: 1 1 0; padding: 0 10px; } }
.sums { margin-top: 20px; font-size: 13px; color: var(--dim); }
.sums summary { cursor: pointer; }
.sums dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 12px 0 0; }
.sums dt { font-weight: 600; color: var(--mut); }
.sums dd { margin: 0; font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow-wrap: anywhere; }
@media (max-width: 560px) { .sums dl { grid-template-columns: 1fr; gap: 2px 0; } .sums dd { margin-bottom: 8px; } }

/* configuration requise */
.req { list-style: none; margin: clamp(32px, 4vw, 48px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.req li { padding: 20px 22px; border-radius: 4px; background: var(--panel); border: 1px solid var(--line); }
.req b { display: block; font: 800 20px/1 var(--fh); text-transform: uppercase; letter-spacing: .04em; }
.req span { display: block; margin-top: 8px; font-size: 14.5px; line-height: 1.45; color: var(--mut); }

/* questions */
.faq { max-width: 820px; margin: clamp(28px, 4vw, 40px) 0 0; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 36px 18px 0; position: relative; font-weight: 500; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; border-right: 1.5px solid var(--mut); border-bottom: 1.5px solid var(--mut); transform: translateY(-70%) rotate(45deg); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { margin: -4px 0 20px; max-width: 44em; font-size: 15px; color: var(--mut); }
.faq details a { color: #fff; }

/* pied de page */
.foot { border-top: 1px solid rgba(255, 255, 255, .14); background: rgba(6, 26, 62, .55); padding: 32px 0 calc(32px + env(safe-area-inset-bottom)); }
.foot-in { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.foot .brand { font-size: 17px; }
.foot p { flex: 1 1 380px; margin: 0; font-size: 12px; line-height: 1.6; color: var(--dim); }
.foot nav { display: flex; gap: 20px; }
.foot nav a { font-size: 13px; color: var(--mut); text-decoration: none; }
.foot nav a:hover { color: #fff; }

/* ---------- page crédits ---------- */
.credits-page .cp-head { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.cp-title { margin: 40px 0 0; font: 800 clamp(48px, 8vw, 96px)/.9 var(--fh); text-transform: uppercase; }
.cp-lead { max-width: 46em; margin: 22px 0 0; font-size: 15px; color: var(--mut); }
.cp-lead a { color: #fff; }
.cp-sub { margin: 34px 0 12px; font: 800 26px/1 var(--fh); text-transform: uppercase; letter-spacing: .02em; }
.cp-search { width: 100%; max-width: 420px; height: 44px; margin: 28px 0 8px; padding: 0 14px; border-radius: 4px; border: 1px solid var(--line2); background: var(--panel); color: #fff; font: inherit; }
.cp-search::placeholder { color: var(--dim); }
.cp-list { list-style: none; margin: 0 0 60px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 0 28px; }
.cp-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.cp-list li[hidden] { display: none; }
.cp-list .n { font-weight: 600; }
.cp-list .c { grid-column: 1; color: var(--mut); }
.cp-list .cr { grid-column: 1; font-size: 12px; color: var(--dim); overflow-wrap: anywhere; }
.cp-list a { grid-row: 1; grid-column: 2; font-size: 12px; color: var(--dim); }
.cp-list .cr a { grid-row: auto; grid-column: auto; }
.credits-page .foot p { flex-basis: 100%; }
