/* LNR Games — l'affiche aux couleurs de la marque.
   Or #E0B838, noir et crème lumineuse sont repris du logo (le T-Rex low-poly
   de la chaîne). Titres condensés en capitales, aplats francs, bordures
   nettes, grain léger. Le mode sombre passe le papier au noir du logo.

   Contraste : l'or plein ne passe pas comme texte sur le papier (1,7:1) — il
   sert d'aplat, et le texte d'accent utilise --gold-ink, un or brûlé qui passe
   AA. Les liens, eux, restent en encre et se signalent par un soulignement or. */

:root {
  color-scheme: light dark;

  /* papier */
  --cream: #faf6e9;
  --paper: var(--cream);
  --surface: #fffdf5;
  --sand: #f3ead2;
  --rule: #ddd0ae;

  /* encres */
  --ink: #17150f;
  --ink-soft: #55503f;
  --ink-deep: #0f0e0a;

  /* marque */
  --gold: #e0b838;        /* aplats, bandes, très gros titres */
  --gold-ink: #7f5f0d;    /* texte et petites capitales sur papier */
  --gold-deep: #b8901f;
  --glow: #f8e0a0;        /* la lueur du lettrage LNR */

  --on-accent: #17150f;   /* ce qui s'écrit sur un aplat d'or */

  /* noir et or de la marque : constants dans les deux thèmes, pour ce qui doit
     rester aux couleurs du logo (souche des tickets, filigrane). */
  --brand-black: #17150f;

  --edge: 2px;
  --wrap: 1060px;
  --shadow-color: var(--ink);
  --shadow-block: 10px 10px 0 var(--shadow-color);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #12110c;
    --surface: #1c1a13;
    --sand: #232017;
    --rule: #3b3628;
    --ink: #f6efd9;
    --ink-soft: #bdb59c;
    --ink-deep: #fffdf5;
    --gold-ink: #e8c455;
    --on-accent: #17150f;
    --shadow-color: #000;
    --shadow-block: 10px 10px 0 var(--shadow-color);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Archivo, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Grain : une seule couche fixe au-dessus de tout, transparente aux clics.
   Sans elle, les aplats larges font trop « aplat numérique ». */
.grain {
  position: fixed; inset: 0; z-index: 100; pointer-events: none;
  opacity: .32; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .grain { mix-blend-mode: screen; opacity: .12; }
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

a {
  color: var(--ink);
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
a:hover { color: var(--gold-ink); }

img { max-width: 100%; height: auto; display: block; }

/* ---------- typographie ---------- */

h1, h2, h3, .display {
  font-family: Anton, Archivo, Impact, sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .01em;
  line-height: 1.04;
  margin: 0 0 18px;
}
/* Anton fait descendre virgules et parenthèses bien sous la ligne de base :
   dans un titre sur plusieurs lignes, elles viennent toucher la ligne suivante.
   D'où l'interligne desserré ici — et pas de ponctuation basse en fin de ligne. */
h1 { font-size: clamp(42px, 8.5vw, 88px); line-height: 1.12; }
h2 { font-size: clamp(28px, 4.6vw, 44px); }
h3 { font-size: clamp(20px, 2.4vw, 25px); line-height: 1.05; }
p { margin: 0 0 18px; }

.kicker {
  font-family: Archivo, sans-serif;
  font-weight: 700; font-size: 12px;
  text-transform: uppercase; letter-spacing: .22em;
  color: var(--gold-ink);
  margin: 0 0 16px;
  display: flex; align-items: center; gap: 12px;
}
.kicker::after { content: ""; flex: 1; height: 1px; background: var(--rule); }

.lede { font-size: clamp(18px, 2.1vw, 22px); line-height: 1.5; max-width: 54ch; margin: 0 0 28px; }
.section-intro { max-width: 58ch; color: var(--ink-soft); margin: 0 0 32px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--gold); color: var(--on-accent);
  padding: 12px 18px; font-weight: 700;
}
.skip:focus { left: 0; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* ---------- en-tête ---------- */

.site-header {
  border-bottom: var(--edge) solid var(--ink);
  background: var(--paper);
  position: sticky; top: 0; z-index: 50;
}
.header-inner {
  display: flex; align-items: stretch; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; padding: 0;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  color: inherit; text-decoration: none;
  padding: 14px 20px 14px 0;
  font-family: Anton, sans-serif; text-transform: uppercase;
  letter-spacing: .06em; font-size: 19px;
}
.brand-mark { flex: none; }
.site-header nav { display: flex; align-items: center; flex-wrap: wrap; }
.site-header nav a {
  display: flex; align-items: center;
  color: var(--ink); text-decoration: none;
  font-weight: 600; font-size: 13px;
  text-transform: uppercase; letter-spacing: .13em;
  padding: 14px 16px;
  border-left: 1px solid var(--rule);
}
.site-header nav a:hover { background: var(--sand); }
.site-header nav a[aria-current="page"] { color: var(--gold-ink); }
.site-header nav .lang {
  background: var(--ink); color: var(--paper);
  border-left: var(--edge) solid var(--ink);
}
.site-header nav .lang:hover { background: var(--gold); color: var(--on-accent); }

/* ---------- sections et filets ---------- */

section { padding: 72px 0; border-bottom: 1px solid var(--rule); }
section:last-of-type { border-bottom: 0; }
section.flush { padding: 0; border-bottom: 0; }

/* Bande pleine, comme le bandeau d'une affiche. */
.band { background: var(--ink); color: var(--sand); border-bottom: 0; }
.band a { color: var(--gold); }
.band .section-intro { color: #cdc4aa; }
.band-gold { background: var(--gold); color: var(--on-accent); }
.band-gold a { color: var(--on-accent); }
.band-gold .section-intro { color: #4a3c11; }

/* ---------- le cartouche de marque ---------- */

.emblem {
  margin: 0;
  border: var(--edge) solid var(--ink);
  box-shadow: var(--shadow-block);
  background: var(--gold);
}
.emblem img { width: 100%; height: auto; display: block; }
.emblem figcaption {
  border-top: var(--edge) solid var(--ink);
  padding: 12px 18px;
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .18em;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  background: var(--surface); color: var(--ink);
}

.hero { padding: 72px 0 84px; }
.hero-grid {
  display: grid; gap: 52px;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  align-items: center;
}
/* Le cartouche est carré : au-delà de cette taille il écrase le titre. */
.hero-grid .emblem { max-width: 420px; justify-self: end; width: 100%; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-grid .emblem { justify-self: start; max-width: 340px; }
  .hero { padding: 48px 0 60px; }
}

/* ---------- boutons ---------- */

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--gold); color: var(--on-accent);
  border: var(--edge) solid var(--ink);
  font-family: Archivo, sans-serif; font-weight: 700; font-size: 14px;
  text-transform: uppercase; letter-spacing: .1em;
  text-decoration: none; padding: 14px 22px;
  box-shadow: 5px 5px 0 var(--shadow-color);
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translate(2px, 2px); box-shadow: 3px 3px 0 var(--shadow-color); text-decoration: none; }
.btn:active { transform: translate(5px, 5px); box-shadow: 0 0 0 var(--shadow-color); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--sand); }
.btn[aria-disabled="true"] { opacity: .55; box-shadow: none; pointer-events: none; }
.band .btn, .band-gold .btn { border-color: var(--sand); box-shadow: 5px 5px 0 rgba(0,0,0,.35); }
.band .btn.ghost { color: var(--sand); }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn:hover { transform: none; } }

/* ---------- tickets (liste des applications) ---------- */

.tickets { display: grid; gap: 28px; }
.ticket {
  display: grid; gap: 0;
  grid-template-columns: 148px minmax(0, 1fr);
  border: var(--edge) solid var(--ink);
  background: var(--surface);
  color: inherit; text-decoration: none;
  box-shadow: 8px 8px 0 var(--shadow-color);
  transition: transform .14s ease, box-shadow .14s ease;
}
.ticket:hover { text-decoration: none; transform: translate(3px, 3px); box-shadow: 5px 5px 0 var(--shadow-color); }
.ticket-stub {
  background: var(--brand-black);
  border-right: var(--edge) dashed var(--ink);
  display: grid; place-items: center; padding: 22px;
}
.ticket-stub img { width: 84px; height: 84px; border: var(--edge) solid var(--ink); }
.ticket-stub .num {
  font-family: Anton, sans-serif; font-size: 40px; color: var(--sand); line-height: 1;
}
.ticket-body { padding: 26px 28px; }
.ticket-body h3 { margin-bottom: 10px; }
.ticket-body p { color: var(--ink-soft); margin: 0 0 16px; }
.ticket-go {
  font-family: Archivo, sans-serif; font-weight: 700; font-size: 13px;
  text-transform: uppercase; letter-spacing: .14em; color: var(--gold-ink);
}
.ticket.soon { box-shadow: none; border-style: dashed; background: transparent; }
.ticket.soon .ticket-stub { background: transparent; border-right-color: var(--rule); }
.ticket.soon .ticket-stub .num { color: var(--rule); }
@media (max-width: 620px) {
  .ticket { grid-template-columns: 1fr; }
  .ticket-stub { border-right: 0; border-bottom: var(--edge) dashed var(--ink); padding: 18px; }
  .ticket-body { padding: 22px 20px; }
}
@media (prefers-reduced-motion: reduce) { .ticket { transition: none; } .ticket:hover { transform: none; } }

/* ---------- étiquettes ---------- */

.tags { display: flex; gap: 10px; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.tag {
  font-family: Archivo, sans-serif; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .14em;
  border: 1.5px solid currentColor; padding: 5px 11px; color: var(--ink-soft);
}
.tag.hot { color: var(--gold-ink); }

/* ---------- liste numérotée des fonctionnalités ---------- */

.numbered { display: grid; gap: 0; border-top: 1px solid var(--rule); }
.numbered > div {
  display: grid; gap: 8px 28px;
  grid-template-columns: 72px minmax(0, 1fr);
  padding: 26px 0; border-bottom: 1px solid var(--rule);
}
.numbered .n {
  font-family: Anton, sans-serif; font-size: 34px; line-height: 1;
  color: var(--gold-deep); grid-row: span 2;
}
.numbered h3 { margin: 0; }
.numbered p { margin: 0; color: var(--ink-soft); grid-column: 2; }
@media (max-width: 560px) {
  .numbered > div { grid-template-columns: 48px minmax(0, 1fr); gap: 6px 16px; }
  .numbered .n { font-size: 26px; }
}

/* ---------- page produit ---------- */

/* L'icône se pose au-dessus du titre plutôt qu'à côté : en colonne, le hero
   décrochait de la marge gauche que tiennent toutes les autres sections. */
.product-hero > div { max-width: 820px; }
/* L'icône est une plaque, comme le cartouche de l'accueil : même bordure,
   même ombre, pas d'arrondi. */
.product-hero img.app-icon {
  width: 104px; height: 104px; margin: 0 0 26px;
  border: var(--edge) solid var(--ink);
  box-shadow: 6px 6px 0 var(--shadow-color);
}
@media (max-width: 620px) {
  .product-hero img.app-icon { width: 84px; height: 84px; margin-bottom: 20px; }
}

/* ---------- captures ---------- */

.shots { display: flex; gap: 22px; overflow-x: auto; padding: 8px 20px 26px; scroll-snap-type: x mandatory; }
.shots img {
  width: 236px; flex: none; scroll-snap-align: center;
  border: var(--edge) solid var(--ink); box-shadow: 8px 8px 0 var(--shadow-color);
}
.shots-wrap { max-width: var(--wrap); margin: 0 auto; }

/* ---------- encart ---------- */

.note {
  border: var(--edge) solid var(--ink);
  border-left-width: 10px; border-left-color: var(--gold);
  background: var(--surface); padding: 22px 24px;
}
.note p:last-child { margin: 0; }

/* ---------- pages légales ---------- */

.legal { max-width: 720px; }
/* Un titre d'affiche au-dessus de dix pages de clauses écrase la page :
   la même typo, deux crans plus bas. */
.legal h1 { font-size: clamp(34px, 5.4vw, 58px); margin-bottom: 12px; }
.legal h2 { font-size: clamp(22px, 3vw, 30px); margin: 52px 0 14px; }
.legal h3 {
  font-family: Archivo, sans-serif; font-weight: 700; text-transform: none;
  letter-spacing: 0; font-size: 18px; line-height: 1.4; margin: 28px 0 8px;
}
.legal p, .legal li { color: var(--ink-soft); }
.legal ul, .legal ol { padding-left: 22px; margin: 0 0 18px; }
.legal li { margin-bottom: 9px; }
.legal table { width: 100%; border-collapse: collapse; margin: 0 0 24px; font-size: 15px; }
.legal th, .legal td { text-align: left; padding: 12px 14px; border: 1px solid var(--rule); vertical-align: top; }
.legal th {
  background: var(--sand); color: var(--ink);
  font-size: 12px; text-transform: uppercase; letter-spacing: .12em;
}
.legal td { color: var(--ink-soft); }
.legal .updated {
  font-family: Archivo, sans-serif; font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .14em; color: var(--gold-ink);
  margin: 0 0 36px;
}
.toc { border: var(--edge) solid var(--ink); background: var(--surface); padding: 22px 26px; margin: 0 0 44px; }
.toc p {
  font-family: Archivo, sans-serif; font-weight: 700; font-size: 12px;
  text-transform: uppercase; letter-spacing: .16em; margin: 0 0 12px; color: var(--ink);
}
.toc ol { margin: 0; columns: 2; column-gap: 32px; }
.toc li { margin-bottom: 6px; break-inside: avoid; }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--gold-ink); text-decoration: underline; }
@media (max-width: 600px) { .toc ol { columns: 1; } }

/* ---------- pied de page ---------- */

.site-footer { background: var(--ink); color: var(--sand); border-top: var(--edge) solid var(--ink); }
.footer-inner { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr) auto; padding: 48px 20px 40px; align-items: start; }
.footer-brand { font-family: Anton, sans-serif; font-size: 30px; text-transform: uppercase; letter-spacing: .04em; margin: 0 0 6px; }
.footer-tagline { color: #c3baa1; font-size: 15px; margin: 0; max-width: 34ch; }
.site-footer nav { display: grid; gap: 10px; justify-items: end; }
.site-footer nav a {
  color: var(--sand); text-decoration: none;
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .14em;
}
.site-footer nav a:hover { color: var(--gold); }
.footer-note {
  grid-column: 1 / -1; border-top: 1px solid #3b3628; padding-top: 20px;
  font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: #9c9480; margin: 0;
}
@media (max-width: 620px) {
  .footer-inner { grid-template-columns: 1fr; }
  .site-footer nav { justify-items: start; }
}

/* ---------- variantes sur bande pleine ---------- */
/* Les blocs ci-dessus sont dessinés pour du papier ; sur une bande d'encre il
   faut reprendre les filets et les gris, sinon ils disparaissent. */

.band h1, .band h2, .band h3,
.band-gold h1, .band-gold h2, .band-gold h3 { color: inherit; }
.band p, .band li, .band-gold p, .band-gold li { color: inherit; }

.band .numbered, .band .numbered > div { border-color: #3b3628; }
.band .numbered .n { color: var(--gold); }
.band .numbered p { color: #cdc4aa; }

.band-gold .numbered, .band-gold .numbered > div { border-color: rgba(255, 249, 239, .35); }
.band-gold .numbered .n { color: var(--on-accent); opacity: .65; }
.band-gold .numbered p { color: #4a3c11; }

.band .tag, .band-gold .tag { color: inherit; opacity: .85; }
.band .note, .band-gold .note { background: rgba(255, 255, 255, .06); border-color: currentColor; }

/* ---------- la marque ---------- */

.brand-mark { width: 34px; height: auto; flex: none; }

/* Sur un aplat d'or, un soulignement or ne se voit plus. */
.band-gold a { text-decoration-color: currentColor; }
.band a { text-decoration-color: var(--gold); }
.band a:hover, .band-gold a:hover { color: inherit; opacity: .8; }

/* Le T-Rex veille sur le pied de page, assez pâle pour ne pas gêner la lecture. */
.site-footer { position: relative; overflow: hidden; }
.site-footer::after {
  content: "";
  /* Décalé dans le coin pour rester derrière le vide, pas derrière les liens. */
  position: absolute; right: -78px; bottom: -64px; width: 300px; height: 338px;
  background: url("/assets/img/trex.webp") no-repeat right bottom / contain;
  opacity: .15; pointer-events: none;
}
@media (max-width: 720px) { .site-footer::after { width: 190px; height: 214px; opacity: .12; } }
/* Un ::after positionné se peint après les enfants non positionnés : sans ce
   z-index, le filigrane voile les liens au lieu de passer derrière eux. */
.footer-inner { position: relative; z-index: 1; }

