/* Le site de Last Rampart : une page de présentation et la politique de confidentialité, en fr et en en.
   Mêmes codes que le jeu : fond de pierre sombre, or du titre, cadres aux quatre points (frame.png en border-image),
   pixel art agrandi sans flou. */

:root {
  --stone-deep: #191717;
  --stone: #242121;
  --stone-light: #3a3535;
  --gold: #f2c14e;
  --gold-deep: #c98a1b;
  --ink: #ece4d4;
  --ink-soft: #b8ad98;
  --blue: #3d7be0;
  --red: #d8433b;
  --gutter: 16px;
  --measure: 68ch;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--stone-deep);
  color: var(--ink);
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 19px;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
}

/* Le fond de l'écran-titre du jeu (ui/widgets/menu.css) : une lueur dorée sur la pierre sombre. */
body {
  margin: 0;
  background:
    radial-gradient(ellipse at 50% 38%, rgba(232, 176, 48, 0.12), transparent 60%),
    radial-gradient(ellipse at 50% 120%, #10100d 10%, transparent 70%),
    linear-gradient(#22232c, #1b1a17 55%);
  background-color: var(--stone-deep);
  background-attachment: fixed;
}

img.pixel {
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

a {
  color: var(--gold);
}

a:hover {
  color: #ffe08a;
}

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

/* La barre du haut : le nom du jeu et la langue. */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  font-size: 0.9rem;
}

.topbar a {
  text-decoration: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--ink);
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

/* Le cadre aux quatre points du jeu. */
.panel {
  border: 24px solid transparent;
  border-image: url('assets/frame.png') 12 fill / 24px stretch;
  image-rendering: pixelated;
}

.panel.gold {
  border-image-source: url('assets/frame-gold.png');
}

.panel > :first-child {
  margin-top: 0;
}

.panel > :last-child {
  margin-bottom: 0;
}

/* L'en-tête : l'écran-titre du jeu sans son menu. Le logo (140×57, title.png en ×2) affiché en ×3 en haut à
   gauche, l'accroche à la place des boutons, le plateau à droite qui flotte par pas d'un pixel, la signature en bas. */
.topbar.home {
  justify-content: flex-end;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 480px) minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  padding: 8px 0 48px;
}

.hero h1 {
  margin: 0;
  line-height: 0;
}

.hero .logo {
  width: 420px;
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 3px 0 #120f0d);
}

.hero .diorama {
  justify-self: center;
  width: 100%;
  max-width: 560px;
  height: auto;
  filter: drop-shadow(0 12px 0 rgba(0, 0, 0, 0.25));
  animation: diorama-float 5s steps(4) infinite alternate;
}

@keyframes diorama-float {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-4px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero .diorama {
    animation: none;
  }
}

.signature {
  position: absolute;
  right: 0;
  bottom: 8px;
  margin: 0;
  font-family: system-ui, sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.tagline {
  font-size: clamp(1.4rem, 2.6vw, 1.8rem);
  line-height: 1.2;
  color: var(--gold);
  margin: 24px 0 8px;
  font-weight: 600;
}

.lead {
  margin: 0 0 24px;
  color: var(--ink-soft);
  font-size: 1.1rem;
}

/* Téléphone en portrait : le logo, le plateau, puis le texte. */
@media (max-width: 760px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    text-align: center;
    padding-bottom: 40px;
  }
  .hero .logo {
    width: 280px;
  }
  .hero .diorama {
    grid-row: 2;
    max-width: 360px;
  }
  .hero-text {
    display: contents;
  }
  .hero .store-button {
    justify-self: center;
  }
  .signature {
    position: static;
    text-align: center;
  }
}

.store-button {
  display: inline-block;
  padding: 12px 28px;
  background: var(--gold);
  color: var(--stone-deep);
  font-weight: 700;
  text-decoration: none;
  border: 3px solid var(--stone-deep);
  box-shadow: 0 0 0 3px var(--gold-deep), 4px 4px 0 3px #000;
}

.store-button:hover {
  background: #ffd76e;
  color: var(--stone-deep);
}

.store-button[aria-disabled='true'] {
  background: var(--stone-light);
  color: var(--ink-soft);
  box-shadow: 0 0 0 3px #5a5350;
  cursor: default;
}

section {
  padding: 32px 0;
}

h2 {
  color: var(--gold);
  font-size: 1.6rem;
  margin: 0 0 16px;
  text-align: center;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.feature h3 {
  color: var(--gold);
  margin: 0 0 6px;
  font-size: 1.15rem;
}

.feature p {
  margin: 0;
  color: var(--ink-soft);
}

.company {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.company img {
  width: 72px;
  height: 72px;
  flex: none;
}

.company h3 {
  margin: 0 0 4px;
  color: var(--gold);
  font-size: 1.1rem;
}

.company p {
  margin: 0;
  color: var(--ink-soft);
}

.company .flavor {
  font-style: italic;
  margin-top: 6px;
  font-size: 0.95rem;
}

.shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
  gap: 16px;
}

.shots img {
  width: 100%;
  height: auto;
  display: block;
  border: 3px solid var(--stone-light);
}

/* Les GIF de combat : un plateau en mouvement, sa légende dessous. */
.shots figure {
  margin: 0;
}

.shots figcaption {
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* Les pages de texte (confidentialité). */
.document {
  max-width: calc(var(--measure) + 48px);
  margin: 16px auto 48px;
}

.document h1 {
  color: var(--gold);
  font-size: 1.9rem;
  line-height: 1.2;
  margin: 0 0 8px;
}

.document h2 {
  text-align: left;
  font-size: 1.3rem;
  margin: 32px 0 8px;
}

.document .updated {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.document li {
  margin-bottom: 4px;
}

footer {
  border-top: 3px solid var(--stone-light);
  padding: 24px 0 40px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  margin-bottom: 8px;
}

/* Les quatre atouts : deux par ligne sur un écran large, un par ligne sur un téléphone. */
.grid.pairs {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
}

/* Le formulaire de signalement (signaler.html, en/report.html) : des champs sur la pierre, dans le cadre du document. */
.report {
  display: flex;
  flex-direction: column;
  margin-top: 24px;
}

.report label {
  color: var(--gold);
  font-weight: 600;
  margin: 20px 0 6px;
}

.report .required {
  color: var(--ink-soft);
  font-weight: 400;
  font-size: 0.9rem;
}

.report input,
.report textarea,
.report select {
  width: 100%;
  padding: 10px 12px;
  font: inherit;
  color: var(--ink);
  background: var(--stone-deep);
  border: 3px solid var(--stone-light);
  border-radius: 0;
}

.report input:focus,
.report textarea:focus,
.report select:focus {
  outline: none;
  border-color: var(--gold-deep);
}

.report textarea {
  resize: vertical;
}

.report textarea.code {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.85rem;
}

.report .hint {
  margin: 6px 0 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.report .store-button {
  align-self: flex-start;
  margin-top: 28px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

/* La bêta fermée (#beta) : les trois étapes numérotées dans leur titre, puis la demande dans le cadre doré. */
.section-lead {
  max-width: 640px;
  margin: 0 auto 20px;
  text-align: center;
  color: var(--ink-soft);
}

.steps {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}

.beta-ask p {
  margin: 0;
}
