/* Chrome site (landing, aide, mentions) — hors HUD de bataille */

:root {
  --ink: #ece2c7;
  --muted: #b9ad91;
  --paper: #d8c79f;
  --bg: #171a17;
  --border: #69634d;
  --gold: #c3a65a;
  --font-display: "Cinzel", "Palatino Linotype", "Book Antiqua", serif;
  --font-body: "Cormorant Garamond", "Palatino Linotype", Georgia, serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--font-body);
  font-size: 1.08rem;
  min-height: 100vh;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 0;
  z-index: 10000;
  padding: 0.55rem 0.9rem;
  color: var(--bg);
  background: var(--gold);
  font-family: var(--font-body);
  font-weight: 700;
  text-decoration: none;
  border-radius: 2px;
  transform: translateY(-120%);
  transition: transform 0.15s ease;
}

.skip-link:focus {
  transform: translateY(0.75rem);
  outline: 2px solid var(--paper);
  outline-offset: 2px;
}

.site-top {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem clamp(1rem, 3vw, 2rem);
  background: linear-gradient(180deg, rgba(12, 14, 11, 0.88), rgba(12, 14, 11, 0.35) 70%, transparent);
}

.site-top-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--paper);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

.site-top-brand img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem 0.85rem;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  padding: 0.25rem 0.15rem;
  border-bottom: 1px solid transparent;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--paper);
  border-bottom-color: var(--gold);
}

.site-nav a:focus-visible {
  outline: 2px solid rgba(195, 166, 90, 0.7);
  outline-offset: 3px;
}

.site-nav a.is-cta {
  padding: 0.4rem 0.85rem;
  color: var(--bg);
  background: var(--gold);
  border: 1px solid #a88b3f;
  border-bottom-color: #a88b3f;
}

.site-nav a.is-cta:hover {
  color: var(--bg);
  filter: brightness(1.06);
}

.site-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background: var(--bg);
}

.site-page-main {
  flex: 1;
}

.site-footer {
  margin-top: auto;
  padding: 1.5rem 1rem 1.25rem;
  color: #8e8775;
  text-align: center;
  font-size: 0.9rem;
}

.site-footer a {
  color: #d4c7a4;
}

/* —— Landing —— */
.landing-hero {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  color: var(--paper);
  background:
    linear-gradient(180deg, rgba(12, 14, 10, 0.42) 0%, rgba(10, 12, 9, 0.55) 42%, rgba(8, 9, 7, 0.88) 100%),
    url("../assets/ui/landing-hero.webp") center top / cover no-repeat;
}

.landing-hero::before,
.landing-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.landing-hero::before {
  background:
    radial-gradient(ellipse 70% 50% at 50% 18%, rgba(195, 166, 90, 0.12), transparent 62%),
    radial-gradient(ellipse 90% 70% at 50% 100%, rgba(8, 9, 7, 0.72), transparent 55%);
}

.landing-hero::after {
  background: linear-gradient(90deg, rgba(8, 9, 7, 0.5), transparent 18%, transparent 82%, rgba(8, 9, 7, 0.5));
  opacity: 0.55;
}

.landing-hero-inner {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: clamp(1.5rem, 5vw, 3rem) clamp(1.2rem, 4vw, 3.5rem) clamp(2rem, 6vh, 3.5rem);
  text-align: center;
  animation: landing-rise 0.9s ease-out both;
}

.landing-hero .site-logo-hero {
  width: min(220px, 42vw);
  height: auto;
  margin: 0 auto 1rem;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.45));
  animation: landing-fade 1.1s ease-out both;
}

.landing-hero h1 {
  margin: 0 0 0.75rem;
  max-width: 22ch;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 4.2vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.02em;
  color: var(--paper);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
  text-wrap: balance;
}

.landing-hero .landing-lead {
  margin: 0 auto 1.5rem;
  max-width: 34rem;
  color: rgba(232, 220, 192, 0.88);
  font-size: clamp(1.12rem, 2.2vw, 1.32rem);
  font-style: italic;
  line-height: 1.4;
  text-wrap: balance;
}

.landing-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.85rem 1.35rem;
}

.landing-cta a {
  display: inline-block;
  padding: 0.7rem 1.25rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  border: 1px solid var(--gold);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.landing-cta a:focus-visible {
  outline: 2px solid rgba(195, 166, 90, 0.85);
  outline-offset: 3px;
}

.landing-cta .primary {
  color: var(--bg);
  background: var(--gold);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.32);
}

.landing-cta .primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.landing-cta .secondary {
  padding: 0.35rem 0.15rem;
  color: rgba(232, 220, 192, 0.82);
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(225, 210, 170, 0.28);
  font-size: 0.92rem;
}

.landing-cta .secondary:hover {
  color: var(--gold);
  border-bottom-color: rgba(241, 202, 89, 0.65);
  background: transparent;
}

.landing-section {
  position: relative;
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.2rem, 4vw, 3rem);
  border-top: 1px solid rgba(105, 99, 77, 0.35);
  background: linear-gradient(180deg, rgba(14, 16, 12, 0.96), rgba(18, 20, 15, 0.98));
}

.landing-section-inner {
  width: min(720px, 100%);
  margin: 0 auto;
}

.landing-section-modes {
  width: min(980px, 100%);
}

.landing-section h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  color: var(--gold);
}

.landing-section p {
  margin: 0 0 1.35rem;
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1.5;
}

.landing-section .landing-intro {
  margin: 0 auto;
  max-width: 38rem;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: clamp(1.1rem, 2.4vw, 1.28rem);
  font-style: italic;
  line-height: 1.55;
  text-align: center;
  text-wrap: pretty;
}

.landing-section .landing-intro + .landing-intro {
  margin-top: 1rem;
}

.landing-mode-grid {
  display: grid;
  gap: 0.9rem;
}

@media (min-width: 780px) {
  .landing-mode-grid {
    grid-template-columns: 1.22fr 1fr 1fr;
    gap: 1rem;
    align-items: stretch;
  }
}

.landing-mode-card {
  position: relative;
  display: grid;
  align-content: end;
  gap: 0.28rem;
  min-height: 11rem;
  padding: 1.15rem 1.2rem 1.2rem;
  overflow: hidden;
  color: #fff6df;
  text-decoration: none;
  text-align: left;
  background: #12140f center / cover no-repeat;
  border: 1px solid rgba(225, 210, 170, 0.28);
  transition: transform 180ms ease, border-color 180ms ease;
}

.landing-mode-campaign {
  min-height: 12.5rem;
  background-image: url("../assets/ui/landing-mode-campaign.webp");
}

.landing-mode-theater {
  background-image: url("../assets/ui/landing-mode-theater.webp");
}

.landing-mode-multi {
  background-image: url("../assets/ui/landing-mode-multi.webp");
}

.landing-mode-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 12, 9, 0.18) 0%,
    rgba(10, 12, 9, 0.48) 48%,
    rgba(8, 9, 7, 0.86) 100%
  );
  transition: background 200ms ease;
  pointer-events: none;
}

.landing-mode-card .eyebrow,
.landing-mode-card strong,
.landing-mode-card > span:last-of-type {
  position: relative;
  z-index: 1;
}

.landing-mode-card .eyebrow {
  color: rgba(241, 202, 89, 0.92);
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.landing-mode-card strong {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.landing-mode-card > span:last-of-type {
  color: rgba(232, 220, 192, 0.88);
  font-size: 0.95rem;
  line-height: 1.35;
}

.landing-mode-card:hover,
.landing-mode-card:focus-visible {
  border-color: rgba(241, 202, 89, 0.7);
  outline: none;
  transform: translateY(-2px);
}

.landing-mode-card:hover .landing-mode-veil,
.landing-mode-card:focus-visible .landing-mode-veil {
  background: linear-gradient(
    180deg,
    rgba(10, 12, 9, 0.32) 0%,
    rgba(10, 12, 9, 0.58) 48%,
    rgba(8, 9, 7, 0.9) 100%
  );
}

.landing-mode-card:active .landing-mode-veil {
  background: linear-gradient(
    180deg,
    rgba(10, 12, 9, 0.36) 0%,
    rgba(10, 12, 9, 0.62) 48%,
    rgba(8, 9, 7, 0.92) 100%
  );
}

@keyframes landing-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes landing-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .landing-hero-inner,
  .landing-hero .site-logo-hero {
    animation: none;
  }
}

/* —— Aide —— */
.aide-page .site-top {
  background: rgba(12, 14, 11, 0.92);
  border-bottom: 1px solid rgba(105, 99, 77, 0.4);
}

.aide-sheet {
  width: min(820px, 100%);
  margin: 0 auto;
  padding: 1.75rem 1.25rem 3rem;
}

.aide-sheet > h1 {
  margin: 0.2rem 0 0.6rem;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4vw, 2.2rem);
  color: var(--paper);
}

.aide-lead {
  margin: 0 0 1.75rem;
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1.45;
}

.aide-sheet h2 {
  margin: 2rem 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--gold);
}

.aide-faq details {
  margin: 0 0 0.65rem;
  padding: 0.75rem 0.9rem;
  background: rgba(36, 40, 32, 0.65);
  border: 1px solid var(--border);
}

.aide-faq summary {
  cursor: pointer;
  color: var(--paper);
  font-weight: 700;
  font-size: 1.08rem;
}

.aide-faq details p {
  margin: 0.65rem 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.aide-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.aide-actions a {
  display: inline-block;
  padding: 0.6rem 1.1rem;
  color: var(--bg);
  background: var(--gold);
  border: 1px solid #a88b3f;
  font-family: var(--font-display);
  font-size: 0.9rem;
  text-decoration: none;
}

.aide-actions a.secondary {
  color: var(--paper);
  background: transparent;
  border-color: var(--border);
}

/* —— Mentions —— */
.legal-page .site-top {
  background: rgba(12, 14, 11, 0.92);
  border-bottom: 1px solid rgba(105, 99, 77, 0.4);
}

.legal-sheet {
  width: min(820px, 100%);
  margin: 0 auto;
  padding: 1.75rem 1.25rem 3rem;
}

.legal-sheet h1 {
  margin: 0.2rem 0 0.6rem;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4vw, 2.2rem);
  color: var(--paper);
}

.legal-sheet h2 {
  margin: 2rem 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--gold);
}

.legal-sheet p,
.legal-sheet li {
  color: var(--muted);
  line-height: 1.5;
}

.legal-lead {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.45;
}

.legal-back {
  margin-top: 2rem;
}

.legal-back a {
  color: var(--paper);
}

.eyebrow {
  margin: 0 0 0.35rem;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 640px) {
  .site-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .landing-hero h1 {
    max-width: none;
    font-size: clamp(1.35rem, 7vw, 1.85rem);
  }

  .landing-mode-campaign {
    min-height: 11rem;
  }
}
