/* SV Labs — feuille de style partagée
   Thème Solarized clair, typographie monospace, accent rouge.
   Une seule source de vérité pour toutes les pages du site. */

:root {
  --bg:          #fdf6e3; /* base3   */
  --bg-soft:     #eee8d5; /* base2   */
  --text:        #586e75; /* base01  */
  --text-strong: #073642; /* base02  */
  --text-faint:  #93a1a1; /* base1   */
  --dot:         #93a1a1; /* base1   */
  --accent:      #dc322f; /* red     */
  --line:        color-mix(in srgb, var(--text-faint) 35%, transparent);
  --line-soft:   color-mix(in srgb, var(--text-faint) 22%, transparent);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: ui-monospace, "SF Mono", "JetBrains Mono", "Menlo", "Consolas", monospace;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

a { color: inherit; }

/* Canvas en fond, fixe, non cliquable */
#field {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  display: block;
}

.shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem clamp(1.25rem, 4vw, 3rem);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-brand {
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--text-strong);
  text-decoration: none;
}
.nav-brand .dot-accent { color: var(--accent); }
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.6rem);
  flex-wrap: wrap;
}
.nav-links a {
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  transition: color 0.18s ease;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--accent); }

/* ---------- Conteneur de contenu ---------- */
.container {
  width: 100%;
  max-width: 60rem;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4.5rem) clamp(1.25rem, 4vw, 3rem);
  flex: 1;
}

.eyebrow {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--text-faint);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 0.95rem;
  margin-bottom: 1.5rem;
}

h1, h2, h3 { color: var(--text-strong); font-weight: 600; letter-spacing: -0.02em; }

.page-title {
  font-size: clamp(2rem, 6vw, 3.4rem);
  line-height: 1.05;
  margin-bottom: 1rem;
}
.lead {
  font-size: clamp(1rem, 2.4vw, 1.2rem);
  line-height: 1.7;
  max-width: 42rem;
  color: var(--text);
}

.section { margin-top: clamp(2.5rem, 6vw, 4rem); }
.section-title {
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  margin-bottom: 0.5rem;
}
.section-intro {
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 40rem;
  margin-bottom: 1.75rem;
  color: var(--text);
}

p { line-height: 1.75; }

/* Caret façon terminal */
.caret {
  display: inline-block;
  width: 0.55em;
  height: 1em;
  margin-left: 0.1em;
  background: var(--accent);
  vertical-align: text-bottom;
  animation: blink 1.06s steps(1) infinite;
}
@keyframes blink {
  0%, 50% { opacity: 1; }
  50.01%, 100% { opacity: 0; }
}

/* ---------- Cartes ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem;
}
.card {
  background: color-mix(in srgb, var(--bg-soft) 60%, transparent);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: 1.5rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  transform: translateY(-2px);
}
.card-tag {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}
.card h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.card p { font-size: 0.9rem; line-height: 1.65; color: var(--text); }
.card ul { margin: 0.6rem 0 0 1.1rem; }
.card li { font-size: 0.85rem; line-height: 1.6; margin-bottom: 0.25rem; }

/* Étapes numérotées */
.steps { display: grid; gap: 0.75rem; }
.step {
  display: flex;
  gap: 1rem;
  align-items: baseline;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  background: color-mix(in srgb, var(--bg-soft) 45%, transparent);
}
.step-n {
  font-weight: 600;
  color: var(--accent);
  min-width: 2.2rem;
  font-size: 0.95rem;
}
.step h3 { font-size: 0.98rem; margin-bottom: 0.2rem; }
.step p { font-size: 0.88rem; color: var(--text); }

/* Liste descriptive (mentions légales / contact) */
.dl { display: grid; gap: 0.5rem; margin-top: 0.75rem; }
.dl .row {
  display: grid;
  grid-template-columns: minmax(8rem, 14rem) 1fr;
  gap: 0.75rem;
  font-size: 0.9rem;
  line-height: 1.6;
}
.dl .row .k { color: var(--text-faint); }
.dl .row .v { color: var(--text-strong); }
@media (max-width: 33rem) {
  .dl .row { grid-template-columns: 1fr; gap: 0.1rem; }
}

/* Bloc légal */
.legal-block { margin-top: 2rem; }
.legal-block h2 { font-size: 1.05rem; margin-bottom: 0.6rem; }
.legal-block p { font-size: 0.9rem; line-height: 1.75; margin-bottom: 0.6rem; }
.legal-block a { color: var(--accent); text-decoration: none; }
.legal-block a:hover { text-decoration: underline; }

/* Boutons / liens d'action */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--accent);
  text-decoration: none;
  font-size: 0.92rem;
  padding: 0.65rem 1.2rem;
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  border-radius: 999px;
  transition: background 0.2s ease, transform 0.2s ease;
}
.btn::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
}
.btn:hover {
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  transform: translateY(-1px);
}
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

/* CTA bandeau */
.cta {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  text-align: center;
  background: color-mix(in srgb, var(--bg-soft) 55%, transparent);
}
.cta h2 { font-size: clamp(1.3rem, 3.5vw, 1.9rem); margin-bottom: 0.6rem; }
.cta p { font-size: 0.95rem; max-width: 34rem; margin: 0 auto 1.25rem; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: clamp(1.75rem, 4vw, 2.5rem) clamp(1.25rem, 4vw, 3rem);
  margin-top: clamp(2.5rem, 6vw, 4rem);
}
.footer-inner {
  max-width: 60rem;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-brand { font-weight: 600; color: var(--text-strong); }
.footer-brand .dot-accent { color: var(--accent); }
.footer-brand p {
  font-size: 0.78rem;
  color: var(--text-faint);
  font-weight: 400;
  margin-top: 0.4rem;
  max-width: 18rem;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}
.footer-links a {
  font-size: 0.8rem;
  color: var(--text);
  text-decoration: none;
}
.footer-links a:hover { color: var(--accent); }
.footer-legal {
  max-width: 60rem;
  margin: 1.5rem auto 0;
  font-size: 0.68rem;
  line-height: 1.7;
  color: var(--text-faint);
}
.footer-legal .copy {
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.64rem;
}

@media (prefers-reduced-motion: reduce) {
  .caret { animation: none; opacity: 1; }
  html { scroll-behavior: auto; }
}
