:root {
  --bg: #ffffff;
  --bg-alt: #f4f7fa;
  --ink: #161922;
  --muted: #4a5a70;
  --line: #dbe3ec;
  --accent: #ff7a3d;
  --accent-dark: #b8470f;
  --navy: #161922;
  --slate: #3b4252;
  --grad: linear-gradient(135deg, #ff7a3d, #ffa23a);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

img { max-width: 100%; height: auto; }

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

.container {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
}

.hidden { display: none !important; }

/* En-tête */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
  text-decoration: none;
}

.site-header nav { display: flex; align-items: center; gap: 20px; }
.site-header nav a { color: var(--muted); text-decoration: none; font-size: 0.95rem; }
.site-header nav a:hover { color: var(--ink); }
.site-header nav .nav-cta {
  color: var(--ink);
  background: var(--grad);
  padding: 7px 16px;
  border-radius: 6px;
  font-weight: 600;
}
.site-header nav .nav-cta:hover { filter: brightness(0.95); color: var(--ink); }

/* Hero */
.hero {
  background: var(--slate);
  color: #eef1f6;
  padding: 64px 0;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: #ffa23a;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: 2.3rem;
  line-height: 1.2;
  color: #fff;
}

.lead { margin: 0 0 24px; font-size: 1.1rem; color: #d5dbe6; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hint { margin: 16px 0 0; font-size: 0.9rem; color: #b3bccd; }

.hero-visual { display: flex; justify-content: center; }
.hero-visual img { width: 100%; max-width: 372px; border-radius: 50%; }

/* Boutons */
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
}

.btn-primary { background: var(--grad); color: var(--ink); }
.btn-primary:hover { filter: brightness(0.95); }

.btn-secondary { border-color: #6b7690; color: #eef1f6; }
.btn-secondary:hover { border-color: #ffa23a; }

/* Sections */
.section { padding: 64px 0; }
.section-alt { background: var(--bg-alt); }

.section h2 { margin: 0 0 28px; font-size: 1.7rem; line-height: 1.25; }

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--grad);
  color: var(--ink);
  font-weight: 700;
  margin-bottom: 10px;
}

.steps h3, .card h3 { margin: 0 0 6px; font-size: 1.15rem; }
.steps p, .card p { margin: 0; color: var(--muted); }

.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 22px;
}

.note {
  margin: 24px 0 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.two-col h2 { font-size: 1.4rem; margin-bottom: 12px; }
.two-col p { margin: 0; color: var(--muted); }

/* Téléchargement */
.download-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 24px;
  max-width: 560px;
}

.dl-version { margin: 0 0 6px; font-weight: 700; font-size: 1.1rem; }
.download-box p { margin: 0 0 14px; }
.dl-sha { font-size: 0.85rem; color: var(--muted); word-break: break-all; margin-bottom: 0 !important; margin-top: 14px !important; }
code { font-family: Consolas, "Courier New", monospace; }

.req { margin: 20px 0 0; padding-left: 20px; color: var(--muted); }

/* Pied de page */
.site-footer {
  background: var(--navy);
  color: #a5aec0;
  padding: 28px 0;
  font-size: 0.9rem;
}
.site-footer a { color: #d5dbe6; }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
}
.footer-inner p { margin: 0; }

/* Page mentions légales */
.legal { padding: 48px 0 64px; max-width: 760px; }
.legal h1 { margin: 0 0 8px; font-size: 2rem; }
.legal h2 { margin: 36px 0 10px; font-size: 1.3rem; }
.legal p, .legal li { color: var(--muted); }
.legal .updated { color: var(--muted); font-size: 0.9rem; margin-bottom: 24px; }

/* Don */
.donate { max-width: 640px; text-align: center; }
.donate h2 { margin-bottom: 12px; }
.donate p { color: var(--muted); }
.donate .btn { margin: 8px 0 4px; }

.nav-short { display: none; }

/* Mobile */
@media (max-width: 800px) {
  .hero { padding: 40px 0; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.8rem; }
  .hero-visual { order: -1; }
  .hero-visual img { max-width: 280px; }
  .steps, .cards, .two-col { grid-template-columns: 1fr; }
  .site-header nav a:not(.nav-cta) { display: none; }
  .site-header nav a.nav-don { display: inline; font-size: 0.85rem; white-space: nowrap; }
  .site-header nav { gap: 12px; }
  .site-header nav .nav-cta { padding: 7px 12px; white-space: nowrap; }
  .brand { font-size: 1.05rem; }
  .nav-long { display: none; }
  .nav-short { display: inline; }
  .section { padding: 44px 0; }
}

/* Captures */
.shot { margin: 32px 0 0; text-align: center; }
.shot img { width: 100%; height: auto; border-radius: 12px; background: var(--slate); }
.shot figcaption { margin-top: 10px; font-size: 0.92rem; color: var(--muted); }
.shot-narrow img { max-width: 520px; }

.cards .card:last-child:nth-child(odd) { grid-column: 1 / -1; }
