:root {
  --bg: #0d0b0a;
  --surface: #1a1512;
  --accent: #c9a66b;
  --accent-2: #5c1a1e;
  --text: #ede0c0;
  --text-muted: #9c8f72;
  --border: #332b22;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Open Sans", sans-serif;
  line-height: 1.6;
}

img {
  max-width: 100%;
}

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

h1, h2, h3 {
  font-family: "Pirata One", serif;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Nav */
header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(13, 11, 10, 0.9);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}

nav.container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  row-gap: 10px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.brand span {
  font-family: "Pirata One", serif;
  font-size: 1.4rem;
}

.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  row-gap: 8px;
  gap: 28px;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
}

.nav-links a:hover {
  color: var(--accent);
}

.btn {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-family: "Open Sans", sans-serif;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--accent);
  color: #0d0b0a !important;
}

.btn-primary:hover {
  background: #ddc38f;
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.lang-switch {
  display: flex;
  gap: 4px;
  font-size: 0.8rem;
}

.lang-switch a {
  color: var(--text-muted);
  text-decoration: none;
  padding: 2px 6px;
  border-radius: 4px;
}

.lang-switch a.active {
  color: var(--accent);
  font-weight: 600;
}

.lang-switch a:hover {
  color: var(--accent);
}

.lang-switch .sep {
  color: var(--border);
}

/* Hero */
.hero {
  text-align: center;
  padding: 96px 24px 72px;
  /* Halo rouge sang centré sur le titre - même ambiance que les images OG (assets/og-image*.png),
     qui en sont l'aperçu. Se fond dans --bg sur les bords pour enchaîner sans couture avec la suite. */
  background: radial-gradient(ellipse 70% 75% at 50% 45%, #3a1a17 0%, #1a1210 40%, var(--bg) 72%);
}

.hero .rule {
  width: 220px;
  height: 1px;
  margin: 0 auto 20px;
  background: linear-gradient(90deg, transparent, var(--accent-2), var(--accent), var(--accent-2), transparent);
}

.hero img.hero-logo {
  width: 96px;
  height: 96px;
  border-radius: 20px;
  margin-bottom: 24px;
  box-shadow: 0 0 0 1px var(--border), 0 20px 40px rgba(0, 0, 0, 0.4);
}

.hero h1 {
  font-size: 3.2rem;
  margin: 0 0 12px;
  color: var(--accent);
}

.hero p.tagline {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 32px;
  text-wrap: balance;
}

/* Slogan principal en crème (comme sur l'OG), la ligne secondaire reste atténuée. */
.hero p.tagline:first-of-type {
  color: var(--text);
}

.hero .actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Sections */
section {
  padding: 72px 24px;
}

section h2 {
  text-align: center;
  font-size: 2.2rem;
  color: var(--accent);
  margin-bottom: 8px;
}

section > .container > p.section-intro {
  text-align: center;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 48px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 860px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 24px;
}

.feature-card .icon {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.feature-card h3 {
  font-size: 1.3rem;
  margin: 0 0 10px;
  color: var(--text);
}

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

/* Screenshots */
/* Colonnes explicites plutôt qu'auto-fit/minmax : à des largeurs de conteneur entre 1x et 2x le
   minimum (typique en mobile portrait), auto-fit créait 2 colonnes très inégales (ex. 180px / 75px)
   au lieu d'une seule colonne propre - minmax() autorise une piste à descendre sous son minimum
   déclaré quand la somme des minimums dépasse l'espace dispo. */
.screens-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

@media (max-width: 720px) {
  .screens-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .screens-grid {
    grid-template-columns: 1fr;
  }
}

.screen-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.screen-frame {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  aspect-ratio: 9 / 19.5;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: zoom-in;
}

.screen-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.3s ease;
}

.screen-item:hover .screen-frame img {
  transform: scale(1.06);
}

.screen-caption {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 40px 20px;
  cursor: zoom-out;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  cursor: default;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 10px;
}

/* Download */
.download-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

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

.platform-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  text-align: center;
}

.platform-card h3 {
  margin: 8px 0 6px;
  color: var(--text);
  font-size: 1.15rem;
}

.platform-card .status {
  display: inline-block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 999px;
  margin-top: 10px;
}

.status.soon {
  background: rgba(201, 166, 107, 0.15);
  color: var(--accent);
}

.platform-card .btn {
  margin-top: 14px;
}

.platform-card .disclaimer {
  display: block;
  margin-top: 12px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.platform-card details.disclaimer-details {
  margin-top: 12px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.platform-card details.disclaimer-details summary {
  cursor: pointer;
  color: var(--accent);
  list-style: none;
}

.platform-card details.disclaimer-details summary::-webkit-details-marker {
  display: none;
}

.platform-card details.disclaimer-details summary::after {
  content: " ▾";
}

.platform-card details.disclaimer-details[open] summary::after {
  content: " ▴";
}

.platform-card details.disclaimer-details p {
  margin-top: 8px;
}

/* Changelog */
.changelog-entry {
  border-left: 2px solid var(--border);
  padding-left: 20px;
  margin-bottom: 36px;
}

.changelog-entry h2 {
  font-size: 1.3rem;
  color: var(--accent);
  margin: 0 0 4px;
  text-align: left;
}

.changelog-entry .date {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: block;
}

.changelog-entry ul {
  color: var(--text-muted);
  padding-left: 18px;
  margin: 0;
}

/* Support */
.support {
  text-align: center;
}

.support p {
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 28px;
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.88rem;
}

footer a {
  color: var(--text-muted);
  text-decoration: underline;
}

footer .footer-links {
  margin-top: 10px;
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Privacy page */
.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: 64px 24px 96px;
}

.legal h1 {
  color: var(--accent);
  font-size: 2.4rem;
}

.legal h2 {
  text-align: left;
  font-size: 1.4rem;
  color: var(--text);
  margin-top: 40px;
}

.legal p, .legal li {
  color: var(--text-muted);
}

.legal .updated {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 40px;
}

@media (max-width: 860px) {
  html {
    scroll-padding-top: 1000px;
  }
}

@media (max-width: 640px) {
  html {
    scroll-padding-top: 80px;
  }
  nav.container {
    justify-content: center;
    text-align: center;
  }
  .nav-links {
    gap: 12px 16px;
    justify-content: center;
  }
  .hero h1 {
    font-size: 2.3rem;
  }
}
