/* Appsgard — styles partagés */
:root {
  --bg-deep: #06080c;
  --bg-card: rgba(15, 20, 30, 0.72);
  --bg-elevated: rgba(22, 28, 42, 0.85);
  --border: rgba(252, 211, 77, 0.12);
  --accent: #fcd34d;
  --accent-dim: #d4a84a;
  --text: #e8eaef;
  --text-muted: #9aa3b2;
  --text-faint: #5c6575;
  --radius: 14px;
  --radius-sm: 10px;
  --font-sans: "DM Sans", system-ui, sans-serif;
  --font-display: "Outfit", var(--font-sans);
  --shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
  --max: 1080px;
  --nav-h: 64px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg-deep);
  display: flex;
  flex-direction: column;
}

/* Fond subtil */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(252, 211, 77, 0.08), transparent 55%),
    radial-gradient(ellipse 80% 50% at 100% 50%, rgba(59, 130, 246, 0.04), transparent 45%),
    linear-gradient(180deg, #0a0d14 0%, var(--bg-deep) 35%, #040508 100%);
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: #fde68a;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  border-bottom: 1px solid var(--border);
  background: rgba(6, 8, 12, 0.85);
  backdrop-filter: blur(12px);
}

.site-header__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
}

.brand:hover {
  color: var(--accent);
}

.brand img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(252, 211, 77, 0.06);
}

.nav-links a[aria-current="page"] {
  color: var(--accent);
  background: rgba(252, 211, 77, 0.1);
}

main {
  flex: 1;
}

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

.hero {
  padding: 3rem 0 3.5rem;
}

@media (min-width: 768px) {
  .hero {
    padding: 4rem 0 4.5rem;
  }
}

.hero__grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

.hero__badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-dim);
  border: 1px solid var(--border);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.85rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  color: var(--text);
}

.hero h1 span {
  color: var(--accent);
}

.hero__lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin: 0 0 1.75rem;
  max-width: 36ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.35rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: linear-gradient(135deg, #fcd34d 0%, #f59e0b 100%);
  color: #1a1204;
  box-shadow: 0 4px 20px rgba(252, 211, 77, 0.25);
}

.btn--primary:hover {
  box-shadow: 0 8px 28px rgba(252, 211, 77, 0.35);
  color: #1a1204;
}

.btn--ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid rgba(252, 211, 77, 0.45);
}

.btn--ghost:hover {
  background: rgba(252, 211, 77, 0.08);
  color: #fde68a;
}

.hero__visual {
  display: flex;
  justify-content: center;
}

.hero__logo-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 2.5rem;
  box-shadow: var(--shadow);
}

.hero__logo-card img {
  width: min(200px, 50vw);
  height: auto;
  display: block;
}

.section {
  padding: 3rem 0;
}

.section--tight {
  padding-top: 0;
}

.section__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--text);
}

.section__subtitle {
  margin: 0 0 2rem;
  color: var(--text-muted);
  max-width: 55ch;
}

.prose {
  color: var(--text-muted);
}

.prose p {
  margin: 0 0 1.25rem;
}

.prose strong {
  color: var(--text);
}

.cards {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .cards--2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.35rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.card:hover {
  border-color: rgba(252, 211, 77, 0.22);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.card__tag {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-dim);
  margin-bottom: 0.5rem;
}

.card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 0 0 0.65rem;
  color: var(--text);
}

.card p {
  margin: 0 0 1rem;
  font-size: 0.98rem;
  color: var(--text-muted);
}

.card__link {
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--accent);
}

.card__link:hover {
  color: #fde68a;
}

.banner-full {
  width: 100%;
  display: block;
  height: auto;
  margin-top: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

/* Page SquadMaster */
.page-hero {
  padding: 2.5rem 0 2rem;
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin: 0 0 0.5rem;
}

.page-hero .lead {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 62ch;
}

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
}

.steps li {
  position: relative;
  padding-left: 3rem;
  margin-bottom: 1.25rem;
  color: var(--text-muted);
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: rgba(252, 211, 77, 0.12);
  border: 1px solid var(--border);
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 700px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.feature {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.2rem;
}

.feature h4 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  color: var(--text);
}

.feature p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.download-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  padding: 1.25rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid rgba(252, 211, 77, 0.2);
  border-radius: var(--radius);
  margin: 1.5rem 0 2rem;
}

.download-bar p {
  margin: 0;
  flex: 1 1 200px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.download-bar strong {
  color: var(--text);
}

#release-tag {
  color: var(--text-muted);
  font-weight: 500;
}

.callout {
  border-left: 3px solid var(--accent);
  padding: 0.75rem 1rem;
  margin: 1.5rem 0;
  background: rgba(252, 211, 77, 0.05);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.callout strong {
  color: var(--text);
}

.meta-links {
  margin-top: -0.5rem;
  font-size: 0.92rem;
}

.site-footer {
  margin-top: auto;
  padding: 2.5rem 1.25rem;
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.35);
  text-align: center;
}

.site-footer__brand {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.site-footer__tag {
  font-size: 0.85rem;
  color: var(--text-faint);
  margin-bottom: 1rem;
}

.site-footer a {
  color: var(--text-muted);
}

.site-footer__copy {
  margin-top: 1.25rem;
  font-size: 0.82rem;
  color: var(--text-faint);
}
