/* RawNoir — feuille de style du site de la bêta. Sobre, noir et blanc, sans dépendance externe. */

:root {
  --bg: #0b0b0b;
  --bg-soft: #151515;
  --line: #2a2a2a;
  --text: #ececec;
  --muted: #a3a3a3;
  --accent: #ffffff;
  --radius: 12px;
  --max: 1080px;
  --narrow: 720px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
}

/* Langue : seul le texte de la langue active est affiché. */
html[lang="fr"] body [lang="en"],
html[lang="en"] body [lang="fr"] {
  display: none;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); }
a:hover { opacity: 0.8; }

code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.9em;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.1em 0.4em;
}

pre {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  overflow-x: auto;
}
pre code { border: 0; padding: 0; background: none; }

/* Barre du haut */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  background: rgba(11, 11, 11, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  text-decoration: none;
}

.topbar nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.topbar nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}
.topbar nav a:hover { color: var(--text); opacity: 1; }

.lang-switch {
  font: inherit;
  font-size: 0.85rem;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.2rem 0.8rem;
  cursor: pointer;
}
.lang-switch:hover { border-color: var(--muted); }

/* En-tête */
.hero {
  max-width: var(--narrow);
  margin: 0 auto;
  padding: 6rem 1.5rem 3rem;
  text-align: center;
}

.hero-icon {
  border-radius: 28px;
  filter: drop-shadow(0 12px 32px rgba(255, 255, 255, 0.08));
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  letter-spacing: -0.03em;
  margin: 1rem 0 0.25rem;
}

.tagline {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  margin: 0 0 1rem;
}

.lead {
  color: var(--muted);
  margin: 0 auto 2rem;
}

/* Boutons */
.button {
  display: inline-block;
  padding: 0.85rem 1.8rem;
  border-radius: 999px;
  background: var(--accent);
  color: #000;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s ease;
}
.button:hover { opacity: 1; transform: translateY(-1px); }

.button.secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--muted);
}

.fine {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 1rem;
}

.hash { word-break: break-all; }

/* Captures */
.shot {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.shot img,
.gallery img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-soft);
}

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

/* Sections */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 4rem 1.5rem 0;
}
.section.narrow { max-width: var(--narrow); }

h2 {
  font-size: 1.8rem;
  letter-spacing: -0.02em;
  margin: 0 0 1.5rem;
}
h3 { font-size: 1.1rem; margin: 1.5rem 0 0.5rem; }

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

.card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
}
.card h3 { margin-top: 0; }
.card p { color: var(--muted); margin: 0; }

.note { color: var(--muted); margin-top: 1.5rem; }

.list,
.steps { padding-left: 1.25rem; }
.list li,
.steps li { margin-bottom: 0.6rem; }

details {
  margin: 1rem 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
}
summary { cursor: pointer; color: var(--muted); }
details[open] summary { margin-bottom: 0.5rem; }

/* Pied de page */
.footer {
  max-width: var(--narrow);
  margin: 5rem auto 0;
  padding: 2.5rem 1.5rem 3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}
.footer h2 { font-size: 1.1rem; color: var(--text); }

/* Petits écrans */
@media (max-width: 600px) {
  .topbar nav a { display: none; }
  .hero { padding-top: 3.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}
