/* tc25.yoobaa.com — thème sombre, zinc et sarcelle, comme l'icône de l'app. */

:root {
  color-scheme: dark;
  --bg: #09090b;
  --surface: #111113;
  --surface-2: #18181b;
  --border: #27272a;
  --border-strong: #3f3f46;
  --text: #fafafa;
  --muted: #a1a1aa;
  --accent: #2dd4bf;
  --accent-strong: #5eead4;
  --accent-ink: #042f2e;
  --danger: #f87171;
  --radius: 14px;
  --wrap: 1060px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue",
    Arial, sans-serif;
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 10px 16px;
  font-weight: 600;
  z-index: 10;
}
.skip:focus { left: 12px; top: 12px; }

/* ---------- en-tête ---------- */

.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(9, 9, 11, 0.85);
  backdrop-filter: saturate(140%) blur(10px);
  position: sticky;
  top: 0;
  z-index: 5;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 62px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
}
.brand img { width: 30px; height: 30px; border-radius: 8px; }

.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 15px;
}
.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a:hover { color: var(--text); }

.lang {
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 4px 12px;
  color: var(--text) !important;
  font-size: 13px;
  letter-spacing: 0.04em;
}

/* ---------- héros ---------- */

.hero { padding: 84px 0 64px; }

.hero .wrap {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 18px;
}

h1 {
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
  text-wrap: balance;
}

.lede {
  font-size: 19px;
  color: var(--muted);
  margin: 0 0 30px;
  max-width: 34em;
}

.hero-icon {
  justify-self: center;
  width: min(300px, 60vw);
  filter: drop-shadow(0 24px 48px rgba(45, 212, 191, 0.12));
}

.hero-icon img { width: 100%; height: auto; display: block; }

/* ---------- boutons ---------- */

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.12s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-strong); color: var(--accent-ink); }

.btn-ghost { border-color: var(--border-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--muted); }

.meta {
  margin: 18px 0 0;
  font-size: 14px;
  color: var(--muted);
}

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

/* ---------- sections ---------- */

section { padding: 62px 0; border-top: 1px solid var(--border); }

h2 {
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}

h3 { font-size: 18px; margin: 0 0 8px; letter-spacing: -0.01em; }

.section-lede { color: var(--muted); max-width: 46em; margin: 0 0 32px; }

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

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }
.card .tag {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 8px;
}

ul.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
ul.checks li { padding-left: 30px; position: relative; color: var(--muted); }
ul.checks li strong { color: var(--text); font-weight: 600; }
ul.checks li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.62em;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

/* ---------- tableaux ---------- */

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }

table { border-collapse: collapse; width: 100%; font-size: 15px; }

th, td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }

thead th {
  background: var(--surface-2);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

tbody tr:last-child td { border-bottom: 0; }
td code, th code { white-space: nowrap; }
tbody td:first-child { color: var(--text); font-weight: 600; }

/* ---------- code ---------- */

pre {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  overflow-x: auto;
  font-size: 14.5px;
  line-height: 1.55;
  margin: 0 0 18px;
}

code {
  font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.92em;
}

p code, li code {
  background: rgba(45, 212, 191, 0.09);
  color: var(--accent-strong);
  border-radius: 5px;
  padding: 1px 5px;
}

/* ---------- encart téléchargement ---------- */

.download {
  background: linear-gradient(160deg, rgba(45, 212, 191, 0.09), transparent 60%),
    var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  padding: 34px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}
.download h2 { margin-bottom: 8px; }
.download p { margin: 0; color: var(--muted); }

.hash {
  font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  font-size: 12.5px;
  color: var(--muted);
  word-break: break-all;
  margin-top: 14px;
  display: block;
}

/* ---------- pied ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 34px 0 46px;
  font-size: 14px;
  color: var(--muted);
}
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
.site-footer nav { margin-left: auto; display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }

/* ---------- responsive ---------- */

@media (max-width: 860px) {
  .hero { padding: 56px 0 44px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 32px; }
  .hero-icon { order: -1; width: min(200px, 45vw); }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .download { grid-template-columns: 1fr; }
  .site-nav { gap: 14px; font-size: 14px; }
  .site-nav .hide-sm { display: none; }
  section { padding: 48px 0; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .brand span { display: none; }
}
