/* Layout : dossier du FBI la nuit - bandeau logo, presentation, galerie, page Telecharger/Soutenir. Look sombre unique, comme le menu du jeu. */
:root {
  color-scheme: dark;
  --night: #0a1222;
  --panel: #111d33;
  --steel: #22365a;
  --line: #2c4470;
  --gold: #f0b13d;
  --paper: #e9edf4;
  --muted: #9aa8c0;
  --stamp: #d8473b;
  --display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", Consolas, monospace;
}
body { background: var(--night); color: var(--paper); font-family: var(--body); font-size: 17px; line-height: 1.6; }
.wrap { max-width: 1080px; margin: 0 auto; padding-inline: 20px; padding-block: 0 48px; }
a { color: var(--gold); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* Barre du haut */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 14px; border-bottom: 1px solid var(--line); }
.brand { font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: .04em; color: var(--paper); text-decoration: none; }
.brand span { color: var(--gold); }
.nav { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.nav a, .lang button { font-family: var(--mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); text-decoration: none; padding: 6px 10px; border: 1px solid transparent; background: none; cursor: pointer; }
.nav a[aria-current="page"] { color: var(--paper); border-color: var(--line); }
.lang { display: flex; border: 1px solid var(--line); margin-left: 8px; }
.lang button[aria-pressed="true"] { background: var(--steel); color: var(--paper); }

/* Accueil */
.hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 36px; align-items: center; padding-block: 40px 28px; }
.hero .logo { width: 100%; display: block; }
.file { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--stamp); border: 1.5px solid var(--stamp); display: inline-block; padding: 3px 8px; transform: rotate(-2deg); margin-bottom: 14px; }
h1 { font-family: var(--display); font-weight: 800; font-size: clamp(44px, 7vw, 76px); line-height: .92; margin: 0 0 12px; text-transform: uppercase; text-wrap: balance; }
h1 em { font-style: normal; color: var(--gold); display: block; font-size: .55em; letter-spacing: .06em; margin-top: 8px; }
.gift { font-family: var(--mono); font-size: 14px; color: var(--gold); margin: 0 0 18px; }
.lede { max-width: 58ch; color: var(--paper); margin: 0 0 22px; }
.cta { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: .05em; text-transform: uppercase; background: var(--gold); color: var(--night); padding: 12px 22px; text-decoration: none; border: 0; cursor: pointer; }
.cta.secondary { background: none; color: var(--paper); border: 1px solid var(--line); font-size: 18px; }
.ctas { display: flex; gap: 12px; flex-wrap: wrap; }

.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-block: 8px 44px; }
.facts div { background: var(--panel); padding: 16px 18px; min-width: 0; }
.facts b { display: block; font-family: var(--display); font-size: 26px; font-weight: 800; color: var(--gold); line-height: 1.1; }
.facts span { color: var(--muted); font-size: 15px; }

h2 { font-family: var(--display); font-weight: 800; font-size: 34px; text-transform: uppercase; letter-spacing: .03em; margin: 0 0 6px; }
.sub { color: var(--muted); margin: 0 0 20px; }
/* Galerie : chaque capture entouree d'une fausse pellicule (perforations en haut et en bas), clin d'oeil au site de 2000 */
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.gallery figure { margin: 0; min-width: 0; background-color: #020802; padding: 22px 8px 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='14'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%238c8c8c'/%3E%3Cstop offset='1' stop-color='%23d6d6d6'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect x='5' y='2' width='12' height='10' rx='2' fill='url(%23g)'/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='14'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%238c8c8c'/%3E%3Cstop offset='1' stop-color='%23d6d6d6'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect x='5' y='2' width='12' height='10' rx='2' fill='url(%23g)'/%3E%3C/svg%3E"); background-repeat: repeat-x, repeat-x; background-position: left 4px, left bottom 4px; background-size: 22px 14px, 22px 14px; }
.gallery img { display: block; width: 100%; aspect-ratio: 16 / 11; object-fit: cover; cursor: zoom-in; }
.gallery figcaption { font-family: var(--mono); font-size: 12px; color: #d8d2bd; padding: 6px 2px 24px; letter-spacing: .04em; }
.gallery figure:first-child { grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; }
.gallery figure:first-child img { flex: 1; min-height: 0; aspect-ratio: auto; }

[hidden] { display: none !important; }

/* Visionneuse */
.viewer { position: fixed; inset: 0; background: rgba(5, 9, 18, .94); display: flex; align-items: center; justify-content: center; padding: 24px; z-index: 10; }
.viewer img { max-width: 100%; max-height: 88vh; border: 1px solid var(--line); }

/* Page Telecharger */
.dl { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; padding-block: 40px 20px; }
.card { background: var(--panel); border: 1px solid var(--line); padding: 24px; min-width: 0; }
.card h2 { font-size: 28px; }
.files { display: grid; gap: 10px; margin-block: 16px; }
.file-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; border: 1px solid var(--line); padding: 12px 14px; font-family: var(--mono); font-size: 14px; flex-wrap: wrap; }
.file-row small { color: var(--muted); }
.note { font-size: 15px; color: var(--muted); }
.steps { margin: 12px 0 0; padding-left: 22px; }
.steps li { margin-bottom: 6px; }
.req { font-family: var(--mono); font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); margin-top: 18px; padding-top: 12px; }
.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-block: 16px; }
.tier { border: 1px solid var(--line); background: var(--night); color: var(--paper); padding: 14px 10px; text-align: center; cursor: pointer; font-family: var(--body); }
.tier b { display: block; font-family: var(--display); font-size: 30px; font-weight: 800; color: var(--gold); }
.tier span { font-size: 14px; color: var(--muted); }
.tier[aria-pressed="true"] { border-color: var(--gold); background: var(--steel); }
.free { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.free input { width: 110px; background: var(--night); color: var(--paper); border: 1px solid var(--line); padding: 10px; font-size: 16px; }
.mock { font-family: var(--mono); font-size: 12px; color: var(--stamp); margin-top: 10px; min-height: 1.2em; }
footer { border-top: 1px solid var(--line); margin-top: 40px; padding-top: 18px; color: var(--muted); font-size: 14px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer .mono { font-family: var(--mono); font-size: 12px; }

@media (max-width: 820px) {
  .hero, .dl { grid-template-columns: minmax(0, 1fr); }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 460px) { .tiers { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* L'histoire du jeu */
.story { margin-top: 56px; max-width: 72ch; }
.story p { margin: 0 0 14px; }

/* L'histoire du jeu, avec le bloc de don a droite */
.story-row { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 36px; align-items: start; margin-top: 56px; }
.story-row .story { margin-top: 0; max-width: none; }
@media (max-width: 820px) { .story-row { grid-template-columns: minmax(0, 1fr); } }
.story-row .free { gap: 8px; }
.story-row .free input { width: 80px; }
.story-row .tier { padding: 12px 6px; }
