/* Terraforming Bots : de la rouille de Mars (en haut) à la vie (en bas). */
@font-face { font-family: "Orbitron"; src: url("fonts/orbitron.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Exo 2"; src: url("fonts/exo2.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #1a0d08;
  --panel: #26140c;
  --line: #4a2716;
  --text: #fbeee4;
  --dim: #d2b39f;
  --rust: #ff7a33;
  --cyan: #6fe9ec;
  --leaf: #8fd65a;
  --radius: 6px;
  --wide: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--text);
  background: linear-gradient(180deg, #1a0d08 0%, #24120a 30%, #1b1a12 68%, #0e2018 100%);
  font: 400 18px/1.6 "Exo 2", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan); }
a:hover { color: #fff; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 20px; }
h1, h2, h3, .brand, .btn, .num { font-family: "Orbitron", system-ui, sans-serif; }
h2 { font-size: clamp(1.5rem, 3.6vw, 2.3rem); line-height: 1.15; margin: 0 0 12px; text-wrap: balance; }
h3 { font-size: 1.05rem; margin: 0 0 6px; }
.lead { color: var(--dim); max-width: 46rem; margin: 0 0 36px; font-size: 1.1rem; }

.top {
  position: absolute; inset: 0 0 auto 0; z-index: 3; max-width: var(--wide); margin: 0 auto; padding: 16px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.brand { color: var(--text); text-decoration: none; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.brand img { width: 32px; height: 32px; border-radius: 50%; }
.top nav { display: flex; gap: 20px; align-items: center; font-size: 1rem; }
.top nav a { color: var(--text); text-decoration: none; }
.top nav a:hover { color: var(--rust); }
@media (max-width: 680px) { .top nav .opt { display: none; } }
.langs { position: relative; }
.langs summary { cursor: pointer; }
.langs div {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 140px; padding: 6px 0;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
}
.langs div a { display: block; padding: 8px 16px; }
.langs div a[aria-current] { color: var(--rust); }

.hero { position: relative; overflow: hidden; min-height: min(92vh, 820px); display: flex; align-items: center; padding: 0; background: #3a1c0d; }
.hero .back { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% center; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(26,13,8,.94) 0%, rgba(26,13,8,.74) 36%, rgba(26,13,8,0) 68%),
    linear-gradient(0deg, #1a0d08 0%, rgba(26,13,8,0) 22%);
}
.hero .wrap { position: relative; z-index: 2; width: 100%; padding-top: 100px; padding-bottom: 70px; }
.hero h1 { margin: 0; font-weight: 800; font-size: clamp(3rem, 9vw, 6rem); line-height: .95; }
.hero h1 span { display: block; font-size: .56em; letter-spacing: .02em; }
.tagline { color: var(--cyan); font-size: clamp(1.1rem, 2.4vw, 1.4rem); margin: 18px 0 16px; font-weight: 600; }
.pitch { max-width: 33rem; font-size: 1.18rem; margin: 0 0 28px; }
.small { color: var(--dim); font-size: .95rem; margin-top: 18px; max-width: 34rem; }
@media (max-width: 760px) {
  .hero { align-items: flex-end; }
  .hero::after { background: linear-gradient(0deg, rgba(26,13,8,.97) 42%, rgba(26,13,8,.35) 82%, rgba(26,13,8,.5) 100%); }
  .hero .back { object-position: 58% top; }
}
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; padding: 14px 22px; font-weight: 700; font-size: .95rem; text-decoration: none;
  color: var(--text); border: 2px solid var(--rust); border-radius: var(--radius);
}
.btn:hover { background: rgba(255,122,51,.16); color: #fff; }
.btn.primary { background: var(--rust); color: #2a1005; }
.btn.primary:hover { background: #ff9a62; color: #2a1005; }
.btn.off, .btn.off:hover { background: none; border-color: var(--cyan); color: var(--cyan); }

/* La terraformation, d'un bord à l'autre. */
.spectrum { height: 6px; background: linear-gradient(90deg, #c2411c, #e08a3c 28%, #d9c08a 50%, #6db8e0 74%, #5fae4a); }

section { padding: 84px 0; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.steps li { position: relative; padding: 22px 28px 0 0; border-top: 2px solid var(--line); }
.steps li::before { content: ""; position: absolute; left: 0; top: -6px; width: 10px; height: 10px; background: var(--cyan); border-radius: 50%; }
.steps .num { display: none; }
.steps p { margin: 0 0 22px; color: var(--dim); }

.features { display: grid; gap: 34px 28px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.feature img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; border-radius: var(--radius); }
.feature div { padding: 14px 0 0; }
.feature h3 { color: var(--rust); }
.feature:nth-child(n+3) h3 { color: #f0b25c; }
.feature:nth-child(n+5) h3 { color: var(--leaf); }
.feature p { margin: 0; color: var(--dim); }

.split { display: grid; gap: 48px; grid-template-columns: 1fr 1fr; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.pair { display: grid; gap: 14px; }
.pair img { border-radius: var(--radius); }
ul.ticks { list-style: none; padding: 0; margin: 20px 0 0; }
ul.ticks li { padding-left: 26px; position: relative; margin: 10px 0; }
ul.ticks li::before { content: ""; position: absolute; left: 0; top: .5em; width: 10px; height: 10px; background: var(--leaf); border-radius: 50% 0 50% 50%; }

.facts { display: grid; gap: 18px 36px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin: 24px 0 0; }
.facts dt { color: var(--dim); font-size: .92rem; }
.facts dd { margin: 0; font-weight: 600; }

#faq details { border-bottom: 1px solid #3d4a34; padding: 16px 0; max-width: 50rem; }
#faq summary { cursor: pointer; font-weight: 600; font-size: 1.08rem; }
#faq details p { color: var(--dim); margin: 8px 0 0; }

.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; }
.video button { all: unset; cursor: pointer; position: absolute; inset: 0; display: block; }
.video button img { width: 100%; height: 100%; object-fit: cover; }
.play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 88px; height: 88px; border-radius: 50%; background: var(--rust); display: grid; place-items: center; }
.play::before { content: ""; margin-left: 8px; border-style: solid; border-width: 17px 0 17px 28px; border-color: transparent transparent transparent #2a1005; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.note { color: var(--dim); font-size: .92rem; }

footer { border-top: 1px solid #2f4a38; padding: 32px 0 48px; color: #a9c2ad; font-size: .95rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; }
footer a { color: #a9c2ad; }

.page { max-width: 760px; margin: 0 auto; padding: 110px 20px 64px; }
.page h1 { font-size: clamp(1.5rem, 4vw, 2rem); margin: 0 0 4px; line-height: 1.2; }
.page h2 { font-size: 1.15rem; margin: 32px 0 6px; }
.page .meta { color: var(--dim); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
