/* DanCS – landing « dossier de scouting ». Identité de l'app (docs/da/planche-da.html) :
   CT/T servent de codage de données, le violet reste au logo et à la timeline. */
:root {
  --bg: #0b0e13;
  --radar-bg: #080a0e;
  --surface: #12171e;
  --surface-2: #182029;
  --line: #252e3a;
  --line-strong: #364253;
  --text: #e8ecf1;
  --text-2: #c3ccd7;
  --muted: #8a95a4;
  --ct: #62b8ff;
  --t: #ffb547;
  --ok: #3ecf8e;
  --red: #ff5d5d;
  --accent: #8b6cff;
  --font-ui: Inter, "Segoe UI", system-ui, sans-serif;
  --font-title: "Inter Tight", Inter, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --wrap: 1280px;
  --nav-h: 60px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
::selection {
  background: #62b8ff40;
  color: var(--text);
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
  scrollbar-color: var(--line-strong) var(--bg);
  accent-color: var(--ct);
  caret-color: var(--ct);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--font-ui);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img,
video,
canvas {
  display: block;
  max-width: 100%;
}
img,
video {
  height: auto;
}
a {
  color: inherit;
  text-underline-offset: 4px;
}
h1,
h2,
h3 {
  font-family: var(--font-title);
  font-weight: 500;
  letter-spacing: -0.028em;
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
}
h2 {
  font-size: clamp(30px, 3.6vw, 48px);
}
h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
p {
  margin: 0;
  text-wrap: pretty;
}
code {
  font: 400 0.85em var(--font-mono);
  color: var(--text-2);
}
:focus-visible {
  outline: 2px solid var(--ct);
  outline-offset: 3px;
}
.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  background: var(--text);
  color: var(--bg);
  padding: 10px 16px;
}
.skip:focus {
  top: 12px;
}
.wrap {
  width: min(var(--wrap), 100% - 48px);
  margin-inline: auto;
}

/* boutons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 20px;
  border-radius: 4px;
  font: 500 15px var(--font-ui);
  text-decoration: none;
  border: 1px solid var(--line-strong);
  transition: background 0.15s, border-color 0.15s;
}
.btn-solid {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}
.btn-solid:hover {
  background: #fff;
}
.btn-line:hover {
  border-color: var(--muted);
  background: var(--surface);
}
.btn-sm {
  height: 40px;
  padding: 0 14px;
  font-size: 14px;
  gap: 8px;
}
.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #0b0e13eb;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-in {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font: 600 19px var(--font-title);
  letter-spacing: -0.02em;
}
.nav nav {
  margin-left: auto;
}
.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.15s;
}
.nav-links a:hover {
  color: var(--text);
}


/* le dossier : colonne de texte + radar collant */
.dossier {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero {
  min-height: calc(100svh - var(--nav-h) - 74px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 0 56px;
}
.hero h1 {
  font-size: clamp(40px, 5vw, 68px);
  letter-spacing: -0.035em;
  line-height: 1.02;
}
.lead {
  max-width: 34em;
  margin: 26px 0 34px;
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--text-2);
}
/* mots soulignés du héros : liens vers la section qui les explique */
.mark {
  color: var(--text);
  text-decoration: none;
  padding: 0 1px;
  border-bottom: 2px solid var(--muted);
  transition: border-color 0.15s;
}
.mark:hover {
  border-bottom-color: var(--text);
}

/* stratégies et erreurs : deux blocs côte à côte, même filet que la roadmap */
.ia {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.ia article {
  background: var(--bg);
  padding: 26px 28px 30px;
  scroll-margin-top: calc(var(--nav-h) + 24px);
}
.ia h3 {
  margin-bottom: 10px;
}
.ia p {
  color: var(--text-2);
  font-size: 16px;
  max-width: 36em;
}
.status-line {
  margin-top: 26px;
  font-size: 14px;
  color: var(--muted);
}
.status {
  color: var(--text);
  font-weight: 500;
  margin-right: 8px;
  padding: 2px 8px;
  border: 1px solid var(--line-strong);
}

.replay {
  padding: 28px 0 40px;
  align-self: center;
}
.radar {
  position: relative;
  margin: 0;
  aspect-ratio: 1;
  max-height: calc(100svh - var(--nav-h) - 170px);
  border: 1px solid var(--line-strong);
  background: var(--radar-bg);
  overflow: hidden;
}
.map,
.map canvas,
.radar-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.radar-fallback {
  object-fit: cover;
}
.radar-note {
  margin-top: 12px;
  font-size: 14px;
  color: var(--muted);
}
.js-replay .radar-fallback {
  display: none;
}
.hud {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: linear-gradient(#080a0ef2, #080a0e00);
  font: 500 14px var(--font-mono);
}
.hud-team {
  color: var(--muted);
}
.hud-team.t {
  text-align: right;
}
.hud-team b {
  font-weight: 500;
}
.hud-team.ct b {
  color: var(--ct);
}
.hud-team.t b {
  color: var(--t);
}
.hud-clock {
  min-width: 72px;
  padding: 4px 12px;
  text-align: center;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  font-size: 16px;
}
.feed {
  position: absolute;
  left: 16px;
  bottom: 14px;
  right: 100px;
  min-height: 1.6em;
  font: 400 13px var(--font-mono);
  color: var(--text-2);
  text-shadow: 0 1px 2px #080a0e;
}
.play {
  position: absolute;
  right: 12px;
  bottom: 8px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: #080a0ecc;
  color: var(--text-2);
  font: 500 12px var(--font-mono);
  cursor: pointer;
}
.play:hover {
  color: var(--text);
  border-color: var(--muted);
}
.play:not(.js-replay *) {
  display: none;
}
.feed .ct {
  color: var(--ct);
}
.feed .t {
  color: var(--t);
}

/* chiffres en volets : chaque caractère qui change bascule, sans jamais disparaître */
.flap {
  display: inline-block;
  animation: flap 0.32s var(--ease-out) both;
  animation-delay: calc(var(--i) * 45ms);
}
@keyframes flap {
  from {
    transform: translateY(-45%) scaleY(0.5);
    opacity: 0.35;
  }
}

/* sections du dossier */
.section {
  padding-top: clamp(72px, 9vw, 128px);
}
.section.last {
  padding-bottom: clamp(88px, 11vw, 150px);
}
.rule {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0 0 48px;
}
.h-gap {
  margin-bottom: 32px;
}
.split {
  display: grid;
  grid-template-columns: 6fr 5fr;
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}
.split-text h2 {
  margin-bottom: 24px;
}
.split-text > p,
.two > p {
  color: var(--text-2);
  font-size: 17px;
  max-width: 34em;
}
.specs {
  margin: 36px 0 0;
  border-top: 1px solid var(--line);
}
.specs div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.specs dt {
  font-size: 14px;
  color: var(--muted);
}
.specs dd {
  margin: 0;
  font-size: 15px;
}
.media {
  position: relative;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  background: var(--radar-bg);
  overflow: hidden;
}
.media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.12);
}
.corner {
  position: absolute;
  z-index: 1;
  font: 400 12px var(--font-mono);
  color: var(--text-2);
  background: #080a0ecc;
  padding: 2px 6px;
}
.tl {
  top: 14px;
  left: 16px;
}
.br {
  bottom: 14px;
  right: 16px;
}
.two {
  display: grid;
  grid-template-columns: 6fr 5fr;
  gap: 24px clamp(32px, 6vw, 88px);
  align-items: end;
  margin-bottom: 40px;
}
.plate {
  margin: 0;
  border: 1px solid var(--line-strong);
}
.board {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: auto auto;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.board figure {
  margin: 0;
  background: var(--bg);
  display: flex;
  flex-direction: column;
}
.board img {
  width: 100%;
  flex: 1;
  min-height: 0;
  object-fit: cover;
}
.board .top {
  object-position: top;
  aspect-ratio: 4 / 3;
}
.b-main {
  grid-row: span 2;
}
.board figcaption {
  padding: 14px 18px 16px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}
.board figcaption b {
  display: block;
  font: 600 16px var(--font-title);
  color: var(--text);
  margin-bottom: 2px;
}

/* roadmap */
.road {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.road li {
  background: var(--bg);
  padding: 0 24px 30px;
}
.road li::before {
  content: "";
  display: block;
  margin: 0 -24px 22px;
  border-top: 3px solid var(--line-strong);
}
.road .done::before {
  border-top-color: var(--ok);
}
.road .now::before {
  border-top: 3px dashed var(--text-2);
}
.state {
  font: 500 13px var(--font-ui);
  letter-spacing: 0;
  color: var(--muted);
  white-space: nowrap;
}
.done .state {
  color: var(--ok);
}
.now .state {
  color: var(--text-2);
}
.road h3 {
  margin-bottom: 8px;
}
.road p {
  color: var(--muted);
  font-size: 15px;
}

/* créateur, faq, pied */
.maker,
.faq {
  display: grid;
  grid-template-columns: 6fr 5fr;
  gap: 24px clamp(32px, 6vw, 88px);
}
.maker p {
  color: var(--text-2);
  font-size: 17px;
  margin-bottom: 16px;
}
.maker .btn {
  margin-top: 12px;
}
.faq-list {
  border-top: 1px solid var(--line);
}
details {
  border-bottom: 1px solid var(--line);
}
summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 36px 20px 0;
  position: relative;
  font-weight: 500;
}
summary::-webkit-details-marker {
  display: none;
}
summary::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s;
}
details[open] summary::after {
  transform: translateY(-30%) rotate(-135deg);
}
details p {
  padding: 0 36px 20px 0;
  color: var(--muted);
}
.footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
}
.footer-in {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px 32px;
  flex-wrap: wrap;
}
.footer-match {
  color: var(--text-2) !important;
}
.footer-match a {
  color: var(--text);
}
.footer p {
  font-size: 13px;
  color: var(--muted);
  margin: 2px 0;
  max-width: 62em;
}

@media (max-width: 960px) {
  .nav-links {
    display: none;
  }
  .nav-in {
    justify-content: space-between;
  }
  .dossier {
    display: block;
  }
  .hero {
    min-height: 0;
    padding: 24px 0 8px;
  }
  .radar {
    max-height: none;
  }
  .split,
  .two,
  .maker,
  .faq {
    grid-template-columns: 1fr;
  }
  .road {
    grid-template-columns: 1fr 1fr;
  }
  .board {
    grid-template-columns: 1fr;
  }
  .ia {
    grid-template-columns: 1fr;
  }
  .b-main {
    grid-row: auto;
  }
}
@media (max-width: 600px) {
  .wrap {
    width: calc(100% - 32px);
  }
  .hero h1 {
    font-size: 36px;
  }
  .lead {
    margin: 16px 0 22px;
  }
  .road {
    grid-template-columns: 1fr;
  }
  .cta .btn {
    flex: 1 1 100%;
    justify-content: center;
  }
  .specs div {
    grid-template-columns: 90px 1fr;
  }
  .hud {
    font-size: 12px;
    padding: 6px 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
    animation: none !important;
  }
}
