/* ============================================================
   Charte des pages parent (accueil + pages marché)
   Style : moderne et chaleureux — fond crème, indigo profond,
   cartes arrondies, typographie Plus Jakarta Sans.
   Non versionné : les pages parent ne sont pas figées et se
   déploient toujours avec ce fichier.
   ============================================================ */

:root {
  --bg: #faf7f1;
  --ink: #1b1f3b;
  --muted: #6e7191;
  --accent: #3b3bd8;
  --accent-ink: #2e2eb8;
  --accent-soft: #ececfb;
  --coral: #f4684f;
  --card: #ffffff;
  --line: #ece7de;
  --line-hover: #ddd5c8;
  --radius: 18px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent-soft); color: var(--accent-ink); }

.shell { max-width: 880px; margin: 0 auto; padding: 40px 24px 80px; }

/* ---------- barre haute ---------- */

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 64px;
}
.brand {
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}
.brand .dot { color: var(--coral); }
.topnote { font-size: 13.5px; color: var(--muted); font-weight: 500; }
.crumb {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
}
.crumb:hover { color: var(--accent); }

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

.hero { position: relative; margin-bottom: 56px; }
.hero::before {
  content: "";
  position: absolute;
  top: -120px; right: -80px;
  width: 420px; height: 420px;
  background: radial-gradient(closest-side, rgba(59, 59, 216, 0.07), transparent 70%);
  pointer-events: none;
}
.kicker {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}
h1 {
  font-size: clamp(30px, 5vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.025em;
  font-weight: 800;
  margin: 0 0 16px;
}
.lede {
  font-size: 17px;
  color: var(--muted);
  max-width: 640px;
  margin: 0;
}

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

.section-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 52px 0 18px;
}
.section-title:first-of-type { margin-top: 0; }
.section-title .sk { color: var(--accent); }

/* ---------- cartes (marchés et runs) ---------- */

.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.card {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 26px;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(27, 31, 59, 0.09);
  border-color: var(--line-hover);
}
.card:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
.card-body { min-width: 0; }
.card-title {
  display: block;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
  line-height: 1.35;
}
.card-meta {
  display: block;
  color: var(--muted);
  font-size: 13.5px;
  margin-top: 3px;
}
.card-arrow {
  margin-left: auto;
  flex: none;
  color: var(--accent);
  font-weight: 700;
  font-size: 19px;
  transition: transform 0.18s ease;
}
.card:hover .card-arrow { transform: translateX(4px); }

.run-num {
  flex: none;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  font-size: 12.5px;
  letter-spacing: 0.02em;
  border-radius: 999px;
  padding: 7px 14px;
}

.empty {
  color: var(--muted);
  background: var(--card);
  border: 1px dashed var(--line-hover);
  border-radius: var(--radius);
  padding: 22px 26px;
  font-size: 14.5px;
}

/* ---------- pied de page ---------- */

.sitefoot {
  margin-top: 72px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12.5px;
  color: var(--muted);
}
.sitefoot a { color: var(--muted); }

@media (max-width: 560px) {
  .shell { padding-top: 28px; }
  .topbar { margin-bottom: 44px; }
  .card { padding: 18px 20px; gap: 14px; }
}
