/* Vitrine trivium-dec.fr — C1 (Vague 1, Route v1.0.0).
   Statique pur, zéro dépendance, zéro requête externe (privacy by design).
   Palette alignée sur l'app (fond nuit, accents EC/violet/CAC). */

:root {
  --bg: #0a0e27;
  --surface: #12173a;
  --surface-2: #1a2048;
  --border: #262d5c;
  --tx: #eef0fb;
  --muted: #a6adde;
  --dim: #6b74a8;
  --ec: #f65e69;
  --violet: #a78bfa;
  --cac: #5b7cfa;
  --correct: #34d399;
  --max-w: 62rem;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--tx);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; line-height: 1.25; }

a { color: var(--violet); }

.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 1.25rem; }

/* ── Header ─────────────────────────────────────────────── */
header.site {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--tx); }
.brand .bars { display: inline-flex; gap: 3px; align-items: flex-end; }
.brand .bars i { display: block; width: 7px; border-radius: 2px; }
.brand .bars i:nth-child(1) { height: 22px; background: var(--ec); }
.brand .bars i:nth-child(2) { height: 28px; background: var(--violet); }
.brand .bars i:nth-child(3) { height: 25px; background: var(--cac); }
.brand strong { font-family: Georgia, serif; font-size: 1.35rem; }
.brand span { color: var(--dim); font-size: .85rem; }
nav.site a { color: var(--muted); text-decoration: none; margin-left: 1.1rem; font-size: .92rem; }
nav.site a:hover { color: var(--tx); }

/* ── Hero ───────────────────────────────────────────────── */
.hero { padding: 4.5rem 0 3.5rem; text-align: center; }
.hero .kicker {
  text-transform: uppercase; letter-spacing: 3px; font-size: .8rem;
  color: var(--dim); margin-bottom: 1rem;
}
.hero h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); max-width: 46rem; margin: 0 auto 1.2rem; }
.hero h1 em { font-style: normal; color: var(--violet); }
.hero p.lead { color: var(--muted); max-width: 40rem; margin: 0 auto 2rem; font-size: 1.08rem; }

.cta {
  display: inline-block; padding: .9rem 1.8rem; border-radius: 14px;
  background: linear-gradient(90deg, var(--ec), var(--violet), var(--cac));
  color: #fff; font-weight: 700; text-decoration: none; font-size: 1rem;
}
.cta.soon { opacity: .85; cursor: default; }
.cta-note { display: block; margin-top: .7rem; color: var(--dim); font-size: .85rem; }

/* ── Sections ───────────────────────────────────────────── */
section { padding: 2.75rem 0; }
section h2 { font-size: 1.5rem; margin-bottom: 1.4rem; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 1.4rem;
}
.card h3 { font-size: 1.05rem; margin-bottom: .5rem; }
.card p { color: var(--muted); font-size: .93rem; }
.card .pin { font-size: 1.4rem; display: block; margin-bottom: .6rem; }

.note {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 12px; padding: 1rem 1.2rem; color: var(--muted); font-size: .9rem;
}

/* ── Pages légales ──────────────────────────────────────── */
main.legal { padding: 3rem 0 4rem; }
main.legal h1 { font-size: 1.8rem; margin-bottom: .4rem; }
main.legal .updated { color: var(--dim); font-size: .85rem; margin-bottom: 2rem; }
main.legal h2 { font-size: 1.15rem; margin: 2rem 0 .6rem; }
main.legal p, main.legal li { color: var(--muted); font-size: .95rem; }
main.legal ul { padding-left: 1.3rem; margin: .5rem 0 1rem; }
main.legal table { border-collapse: collapse; width: 100%; margin: .8rem 0 1.2rem; font-size: .9rem; }
main.legal th, main.legal td { border: 1px solid var(--border); padding: .55rem .7rem; text-align: left; color: var(--muted); }
main.legal th { color: var(--tx); background: var(--surface); }

.placeholder {
  background: rgba(167, 139, 250, .08); border: 1px dashed var(--violet);
  border-radius: 8px; padding: .15rem .5rem; color: var(--violet); font-size: .88rem;
}
.banner-provisoire {
  background: rgba(246, 94, 105, .08); border: 1px solid var(--ec);
  border-radius: 12px; padding: .9rem 1.1rem; color: var(--muted);
  font-size: .9rem; margin-bottom: 2rem;
}

/* ── Footer ─────────────────────────────────────────────── */
footer.site {
  border-top: 1px solid var(--border); padding: 2rem 0 2.5rem;
  color: var(--dim); font-size: .88rem;
}
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; }
footer.site a { color: var(--muted); text-decoration: none; margin-right: 1rem; }
footer.site a:hover { color: var(--tx); }

@media (max-width: 640px) {
  nav.site a { margin-left: .7rem; font-size: .85rem; }
  .hero { padding: 3rem 0 2.5rem; }
}
