/* Beluga Build — vitrine. Sobre, en grilles. Deux ambiances : sable (clair) et noir (sombre). */

:root {
  color-scheme: dark;
  --bg: #0a0a0a;
  --surface: #101010;
  --surface-2: #151515;
  --line: #232323;
  --line-soft: #191919;
  --text: #ededed;
  --muted: #8d8d8d;
  --accent: #5ad1c8;
  --accent-ink: #04211f;
  --radius: 2px;
  --col: 1200px;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
}

html[data-theme='sable'] {
  color-scheme: light;
  --bg: #efe8db;
  --surface: #f5efe4;
  --surface-2: #eae1d0;
  --line: #d8cbb4;
  --line-soft: #e2d8c5;
  --text: #191510;
  --muted: #6d6355;
  --accent: #0f6f66;
  --accent-ink: #f5efe4;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

a { color: inherit; }

/* ---------- La grille ---------- */

.enveloppe {
  max-width: var(--col);
  margin: 0 auto;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

.section { border-bottom: 1px solid var(--line); }

.bande {
  padding: 20px 28px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}

.etiquette {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.grille {
  display: grid;
  gap: 1px;
  background: var(--line-soft);
}

.grille > * { background: var(--bg); }

.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }

.cellule { padding: 28px; }

/* ---------- En-tête ---------- */

header.barre {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.barre-inner {
  max-width: var(--col);
  margin: 0 auto;
  padding: 0 28px;
  height: 62px;
  display: flex;
  align-items: center;
  gap: 28px;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

.marque {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.marque img { width: 26px; height: 26px; border-radius: 6px; display: block; }

nav.liens { display: flex; gap: 22px; margin-left: auto; }

nav.liens a {
  text-decoration: none;
  color: var(--muted);
  font-size: 14px;
}

nav.liens a:hover { color: var(--text); }

.actions { display: flex; align-items: center; gap: 10px; }

.bouton {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 14px;
  text-decoration: none;
  color: var(--text);
  background: transparent;
  cursor: pointer;
  font-family: inherit;
}

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

.bouton.plein {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
}

.bouton.plein:hover { opacity: 0.88; color: var(--accent-ink); }

.bascule {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  padding: 0;
}

.bascule svg { width: 17px; height: 17px; }

html[data-theme='sable'] .icone-lune { display: none; }
html:not([data-theme='sable']) .icone-soleil { display: none; }

/* ---------- Hero ---------- */

.hero { padding: 96px 28px 72px; border-bottom: 1px solid var(--line); }

.pastille {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
}

.point {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

h1 {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  line-height: 1.03;
  letter-spacing: -0.035em;
  font-weight: 600;
  margin: 26px 0 0;
  max-width: 15ch;
}

h1 em { font-style: normal; color: var(--muted); }

.chapo {
  margin: 24px 0 0;
  max-width: 58ch;
  font-size: 1.125rem;
  color: var(--muted);
}

.hero-actions { display: flex; gap: 12px; margin-top: 34px; flex-wrap: wrap; }

/* ---------- Chiffres ---------- */

.chiffre { padding: 26px 28px; }

.chiffre b {
  display: block;
  font-size: 1.9rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.chiffre span { font-size: 13px; color: var(--muted); }

/* ---------- Titres de section ---------- */

h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 600;
  margin: 0;
  max-width: 22ch;
}

.intro { padding: 60px 28px 34px; }

.intro p { color: var(--muted); max-width: 62ch; margin: 16px 0 0; }

h3 {
  font-size: 1.02rem;
  font-weight: 600;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

.cellule p { margin: 0; color: var(--muted); font-size: 14.5px; }

.num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.12em;
  display: block;
  margin-bottom: 14px;
}

/* ---------- Code ---------- */

pre {
  margin: 0;
  padding: 24px 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.75;
  color: var(--text);
}

pre .c { color: var(--muted); }
pre .p { color: var(--accent); }

/* ---------- Changelog ---------- */

.journal { display: grid; grid-template-columns: 200px 1fr; }

.journal + .journal { border-top: 1px solid var(--line-soft); }

.journal-date {
  padding: 26px 28px;
  border-right: 1px solid var(--line-soft);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
}

.journal-liste { padding: 26px 28px; margin: 0; list-style: none; }

.journal-liste li {
  position: relative;
  padding-left: 20px;
  font-size: 14.5px;
  color: var(--text);
}

.journal-liste li + li { margin-top: 9px; }

.journal-liste li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 7px;
  height: 1px;
  background: var(--accent);
}

/* ---------- Studio ---------- */

.studio { display: grid; grid-template-columns: 1.15fr 1fr; }

.studio-texte { padding: 60px 28px; border-right: 1px solid var(--line-soft); }

.studio-texte p { color: var(--muted); max-width: 52ch; }

.fiche { padding: 0; }

.fiche-ligne {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 28px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 14px;
}

.fiche-ligne span:first-child { color: var(--muted); }

/* ---------- Pied ---------- */

footer { padding: 44px 28px; }

.pied-haut { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

.pied-liens { display: flex; gap: 20px; flex-wrap: wrap; font-size: 14px; }

.pied-liens a { color: var(--muted); text-decoration: none; }

.pied-liens a:hover { color: var(--text); }

.mention {
  margin-top: 32px;
  font-size: 12.5px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

/* ---------- Téléphone ---------- */

@media (max-width: 900px) {
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .g3 { grid-template-columns: repeat(2, 1fr); }
  .studio { grid-template-columns: 1fr; }
  .studio-texte { border-right: none; border-bottom: 1px solid var(--line-soft); }
  nav.liens { display: none; }
}

@media (max-width: 620px) {
  .g4, .g3, .g2 { grid-template-columns: 1fr; }
  .hero { padding: 64px 20px 52px; }
  .cellule, .intro, .bande, .barre-inner, footer, .journal-date, .journal-liste, .studio-texte { padding-left: 20px; padding-right: 20px; }
  .journal { grid-template-columns: 1fr; }
  .journal-date { border-right: none; border-bottom: 1px solid var(--line-soft); padding-bottom: 0; }
  .enveloppe, .barre-inner { border-left: none; border-right: none; }
}
