/* Le site de Panache : une affiche et un programme de cinématographe, 1900. Les couleurs et la typographie du jeu
   (src/ui/belle.css) : nuit d'encre, laiton, crème, rouge Empire et bleu République. */
@font-face {
  font-family: "Bodoni Moda";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(fonts/bodoni-moda-normal.woff2) format("woff2");
}
@font-face {
  font-family: "Bodoni Moda";
  font-style: italic;
  font-weight: 400 800;
  font-display: swap;
  src: url(fonts/bodoni-moda-italic.woff2) format("woff2");
}
/* (repli ajusté : le titre ne change pas de lignes quand la vraie police arrive) */
@font-face {
  font-family: "Bodoni repli";
  src: local("Didot"), local("Georgia");
  size-adjust: 104%;
  ascent-override: 92%;
}

:root {
  --ink: #070a10;
  --ink2: #0e131c;
  --night: #121a28;
  --brass: #c9a45a;
  --gold: #f2d48a;
  --gold-hi: #fff1c4;
  --cream: #f4e4bd;
  --text: #e8dcc0;
  --dim: #a89a7c;
  --line: #4a3a1c;
  --rep: #2f5fa8;
  --emp: #a3322c;
  --serif: "Bodoni Moda", "Bodoni repli", "Didot", "Bodoni 72", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* the old film over everything: grain and a slow flicker */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  background: url(../assets/ui/title/grain.webp) repeat;
  background-size: 256px;
  opacity: 0.07;
  mix-blend-mode: overlay;
  animation: grain 0.9s steps(4) infinite;
}
@keyframes grain {
  0% { background-position: 0 0; }
  25% { background-position: -60px 40px; }
  50% { background-position: 30px -70px; }
  75% { background-position: -40px -20px; }
}

/* ---------------------------------------------------------------- top bar --- */
.bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px;
  font: 600 13px/1 var(--sans);
  letter-spacing: 2px;
  text-transform: uppercase;
}
.bar a { color: var(--cream); text-decoration: none; opacity: 0.85; }
.bar a:hover { opacity: 1; color: var(--gold); }
.bar nav { display: flex; gap: 20px; }
.bar .mark { font: italic 700 20px/1 var(--serif); letter-spacing: 3px; text-transform: none; color: var(--gold); }

/* ---------------------------------------------------------------- the hero --- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}
.hero-fond {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 40%;
  filter: saturate(1.05);
}
.hero-garg {
  position: absolute;
  z-index: -2;
  right: 30%;
  bottom: 6%;
  width: min(22vw, 300px);
  opacity: 0.9;
  filter: brightness(0.75) sepia(0.2);
  animation: stride 7s ease-in-out infinite;
}
@keyframes stride {
  50% { transform: translate(-14px, -6px); }
}
.hero-zep {
  position: absolute;
  z-index: -2;
  top: 11%;
  left: 50%;
  width: min(20vw, 300px);
  opacity: 0.85;
  animation: drift 26s linear infinite alternate;
}
@keyframes drift {
  to { transform: translateX(-12vw); }
}
.hero-heros {
  position: absolute;
  z-index: -1;
  right: max(0px, calc(50% - 700px));
  bottom: 0;
  height: min(90svh, 860px);
  width: auto;
  -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent 99%);
  mask-image: linear-gradient(to bottom, #000 78%, transparent 99%);
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.6));
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(7, 10, 16, 0.92) 0%, rgba(7, 10, 16, 0.72) 38%, rgba(7, 10, 16, 0.05) 70%),
    linear-gradient(0deg, var(--ink) 0%, rgba(7, 10, 16, 0) 28%);
}
.hero > .wrap { width: 100%; }
.hero-txt { position: relative; max-width: 560px; padding: 110px 0 80px; }
.kicker {
  font: italic 500 17px/1.3 var(--serif);
  color: var(--dim);
  letter-spacing: 1px;
  margin: 0 0 10px;
}
h1 { margin: 0; font-weight: 400; }
.logo {
  display: block;
  font: italic 800 clamp(64px, 11vw, 132px)/0.95 var(--serif);
  letter-spacing: 0.02em;
  background: linear-gradient(180deg, var(--gold-hi) 0%, var(--gold) 38%, #a97b2a 62%, #f0cf7c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 3px 0 #3b2a0e) drop-shadow(0 10px 24px rgba(0, 0, 0, 0.6));
}
.h1-sub {
  display: block;
  margin-top: 14px;
  font: 600 14px/1.3 var(--sans);
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--cream);
}
.rule { display: block; width: 220px; color: var(--brass); margin: 22px 0; }
.lede { font: 400 21px/1.5 var(--serif); color: var(--cream); margin: 0 0 30px; }
.ctas { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 28px;
  border-radius: 6px;
  font: italic 700 21px/1 var(--serif);
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn-or {
  color: #2a1d06;
  background: linear-gradient(180deg, #ffe6a6, #e3b860 55%, #c08e3a);
  box-shadow: 0 0 0 1px #6b4c18, inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 10px 30px rgba(201, 164, 90, 0.25);
}
.btn-or:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px #6b4c18, inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 14px 36px rgba(201, 164, 90, 0.4); }
.btn-alt { color: var(--cream); border: 1px solid var(--brass); background: rgba(7, 10, 16, 0.5); }
.btn-alt:hover { color: var(--gold); transform: translateY(-2px); }
.btn-soon { opacity: 0.6; cursor: default; }
.btn-soon:hover { color: var(--cream); transform: none; }
.btn small { font: 600 11px/1 var(--sans); letter-spacing: 1.5px; text-transform: uppercase; opacity: 0.75; }
.facts { margin: 22px 0 0; font: 600 12px/1.4 var(--sans); letter-spacing: 2px; text-transform: uppercase; color: var(--dim); }

/* ------------------------------------------------------- an intertitle card --- */
.card {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  padding: 56px 48px;
  text-align: center;
  background: radial-gradient(ellipse at center, #141a26 0%, #07090e 80%);
  border: 1px solid var(--line);
  outline: 1px solid rgba(201, 164, 90, 0.35);
  outline-offset: -10px;
  color: var(--cream);
}
.card .orn { position: absolute; width: 64px; color: var(--brass); }
.card .orn.tl { top: 14px; left: 14px; }
.card .orn.tr { top: 14px; right: 14px; transform: scaleX(-1); }
.card .orn.bl { bottom: 14px; left: 14px; transform: scaleY(-1); }
.card .orn.br { bottom: 14px; right: 14px; transform: scale(-1, -1); }
.card p { font: italic 500 clamp(24px, 3.6vw, 38px)/1.3 var(--serif); margin: 0; }
.card .fleur { width: 150px; color: var(--brass); margin: 18px auto; }

/* ---------------------------------------------------------------- sections --- */
section { padding: 96px 0; position: relative; }
.sec-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.eyebrow { font: 700 12px/1 var(--sans); letter-spacing: 4px; text-transform: uppercase; color: var(--brass); margin: 0 0 14px; }
h2 { font: italic 700 clamp(34px, 5vw, 54px)/1.08 var(--serif); color: var(--gold); margin: 0 0 16px; }
h3 { font: italic 700 25px/1.2 var(--serif); color: var(--cream); margin: 0 0 8px; }
.sec-head p { color: var(--text); font-size: 18px; margin: 0; }

/* the battle: a screenshot in a brass frame, and three points */
.split { display: grid; grid-template-columns: 1.35fr 1fr; gap: 56px; align-items: center; }
.frame {
  position: relative;
  padding: 10px;
  background: linear-gradient(135deg, #e7c77e, #8a6526 40%, #d9b46a 60%, #6b4c18);
  border-radius: 14px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}
.frame img { border-radius: 6px; width: 100%; aspect-ratio: 1434 / 660; object-fit: cover; }
.points { list-style: none; padding: 0; margin: 0; display: grid; gap: 26px; }
.points li { display: grid; grid-template-columns: 46px 1fr; gap: 16px; }
.points .n { font: italic 800 40px/1 var(--serif); color: var(--brass); }
.points p { margin: 0; color: var(--text); }

/* the two nations */
.nations { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.nation {
  position: relative;
  padding: 36px 32px 32px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  align-items: center;
}
.nation.rep { background: linear-gradient(135deg, #12213f, #0a101c 70%); border-color: #2a4677; }
.nation.emp { background: linear-gradient(135deg, #3a1210, #120809 70%); border-color: #6b2622; }
.nation img { width: 120px; height: 120px; }
.nation .motto { font: italic 500 16px/1.4 var(--serif); color: var(--dim); margin: 0 0 8px; }
.nation p { margin: 0; }
.classique { text-align: center; margin: 26px auto 0; max-width: 640px; color: var(--dim); font-style: italic; font-family: var(--serif); font-size: 18px; }

/* the campaign: three acts like film posters */
.acts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.act {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--ink2);
}
.act img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; filter: sepia(0.25) contrast(1.05); transition: filter 0.4s, transform 0.6s; }
.act:hover img { filter: none; transform: scale(1.03); }
.act div { padding: 20px 22px 24px; }
.act .num { font: 700 11px/1 var(--sans); letter-spacing: 3px; text-transform: uppercase; color: var(--brass); }
.act h3 { margin-top: 8px; }
.act p { margin: 0; color: var(--text); font-size: 16px; }

/* the duel */
.duel { background: linear-gradient(180deg, var(--ink) 0%, var(--night) 50%, var(--ink) 100%); }
.duel .split { grid-template-columns: 1fr 1.25fr; }
.duel ul { padding-left: 20px; margin: 18px 0 0; }
.duel li { margin: 10px 0; }
.duel li b { color: var(--cream); }

/* and also */
.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.mode {
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #10151f, #0a0d14);
}
.mode .ic { font-size: 28px; line-height: 1; margin-bottom: 12px; display: block; }
.mode h3 { font-size: 22px; }
.mode p { margin: 0; font-size: 15.5px; color: var(--text); }

/* the gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery img { width: 100%; aspect-ratio: 1434 / 660; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }

/* the FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary {
  cursor: pointer;
  list-style: none;
  font: italic 700 22px/1.3 var(--serif);
  color: var(--cream);
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brass); font-style: normal; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 12px 0 0; }

/* the last call */
.finale {
  text-align: center;
  padding: 140px 0;
  background: linear-gradient(0deg, rgba(7, 10, 16, 0.55), rgba(7, 10, 16, 0.85)), var(--finale) center / cover no-repeat;
}
.finale h2 { font-size: clamp(40px, 6vw, 68px); }
.finale p { font: italic 400 21px/1.5 var(--serif); color: var(--cream); margin: 0 0 32px; }
.finale .ctas { justify-content: center; }

/* footer */
footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 56px;
  font-size: 14px;
  color: var(--dim);
}
footer .wrap { display: flex; flex-wrap: wrap; gap: 18px 32px; justify-content: space-between; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 10px 22px; }
footer a { color: var(--dim); text-decoration: none; }
footer a:hover { color: var(--gold); }
footer .mark { font: italic 700 22px/1 var(--serif); color: var(--gold); letter-spacing: 2px; }

/* a plain text page (à propos) */
.page { max-width: 760px; margin: 0 auto; padding: 120px 22px 80px; }
.page h1 { font: italic 800 clamp(40px, 6vw, 60px)/1.05 var(--serif); color: var(--gold); margin: 0 0 24px; }
.page h2 { font-size: 30px; margin-top: 40px; }
.page p, .page li { color: var(--text); }

/* reveal on scroll (never the hero) */
.rv { opacity: 0; transform: translateY(24px); transition: opacity 0.8s ease, transform 0.8s ease; }
.rv.in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .split, .duel .split { grid-template-columns: 1fr; gap: 32px; }
  .duel .split .frame { order: -1; }
  .nations { grid-template-columns: 1fr; }
  .acts, .modes { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .hero-garg { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .bar nav a:not(.lang) { display: none; }
  .hero { align-items: end; }
  .hero::before { background: linear-gradient(0deg, var(--ink) 8%, rgba(7, 10, 16, 0.82) 45%, rgba(7, 10, 16, 0.15) 75%); }
  .hero-heros { right: -8%; height: 62svh; bottom: auto; top: 56px; opacity: 0.95; }
  .hero-zep { top: 9%; left: 8%; width: 46vw; }
  .hero-txt { padding: 52svh 0 48px; }
  .lede { font-size: 19px; }
  .acts, .modes, .gallery { grid-template-columns: 1fr; }
  .nation { grid-template-columns: 1fr; text-align: center; justify-items: center; padding: 28px 22px; }
  .card { padding: 48px 26px; }
  .card .orn { width: 40px; }
  section { padding: 72px 0; }
  .btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  body::after, .hero-garg, .hero-zep { animation: none; }
  .rv { opacity: 1; transform: none; transition: none; }
}
@media (max-width: 640px) {
  .btn small { display: none; }
}
