/* Pages publiques JamHit : présentation et tutoriel */
/* Thème sombre, sur tous les appareils. */
:root {
  color-scheme: dark;
  --bg: #14111d; --card: #1f1b2c; --text: #eeeaf6; --muted: #aaa4bd; --line: #37314a;
  --accent: #a586f5; --accent2: #f472b6; --soft: #1b1728; --on-accent: #15101f;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--accent); }
img { max-width: 100%; height: auto; }
.wrap { max-width: 1000px; margin: 0 auto; padding: 0 1.1rem; }

.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .9rem; }
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.35rem; color: var(--text); text-decoration: none; letter-spacing: -.01em; }
.brand img { width: 40px; height: 40px; }
.brand span span { color: var(--accent2); }
.nav nav { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.nav nav a { text-decoration: none; font-weight: 600; font-size: .95rem; }

.btn { display: inline-block; font-weight: 700; text-decoration: none; padding: .75rem 1.3rem; border-radius: 12px; border: 2px solid var(--accent); color: var(--accent); }
.btn.primary { background: var(--accent); color: var(--on-accent); }
.btn.small { padding: .45rem .9rem; font-size: .92rem; }

.hero { padding-block: 2.5rem 3rem; display: grid; grid-template-columns: 1.1fr .9fr; gap: 2.5rem; align-items: center; }
.hero h1 { font-size: clamp(2rem, 5.2vw, 3.3rem); line-height: 1.08; margin: 0 0 1rem; letter-spacing: -.02em; }
.hero h1 em { font-style: normal; color: var(--accent2); }
.hero p { font-size: 1.15rem; color: var(--muted); margin: 0 0 1.6rem; max-width: 34em; }
.cta { display: flex; gap: .8rem; flex-wrap: wrap; }
.shot { border-radius: 22px; border: 1px solid var(--line); box-shadow: 0 18px 50px rgba(0, 0, 0, .55); display: block; margin: 0 auto; max-height: 560px; width: auto; }

section { padding: 2.6rem 0; }
section h2 { font-size: 1.7rem; margin: 0 0 .4rem; letter-spacing: -.01em; }
section > .wrap > p.lead { color: var(--muted); margin: 0 0 1.6rem; max-width: 42em; }
.band { background: var(--soft); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 1.1rem 1.2rem; }
.card h3 { margin: .3rem 0 .3rem; font-size: 1.08rem; }
.card p { margin: 0; color: var(--muted); font-size: .97rem; }
.card .ico { font-size: 1.7rem; line-height: 1; }
.picto { width: 64px; height: 64px; border-radius: 50%; background: linear-gradient(135deg, #713BFF, #F01486); display: flex; align-items: center; justify-content: center; margin-bottom: .7rem; }
.picto img { width: 80%; height: 80%; object-fit: contain; }
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; padding: 0; margin: 0; list-style: none; }
.steps li { counter-increment: s; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 1.1rem 1.2rem; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-weight: 800; margin-bottom: .5rem; }
.steps b { display: block; margin-bottom: .2rem; }
.steps span { color: var(--muted); font-size: .97rem; }
footer { padding: 2rem 0 3rem; color: var(--muted); font-size: .9rem; border-top: 1px solid var(--line); margin-top: 1rem; }

/* Tutoriel */
.doc { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 2.5rem; align-items: start; padding-bottom: 3rem; }
.toc { position: sticky; top: 1rem; font-size: .95rem; }
.toc ol { margin: 0; padding-left: 1.2rem; }
.toc li { margin: .3rem 0; }
.toc a { text-decoration: none; }
.doc h1 { font-size: 2.1rem; margin: .5rem 0 .3rem; letter-spacing: -.02em; }
.doc h2 { font-size: 1.4rem; margin: 2.4rem 0 .5rem; padding-top: .6rem; border-top: 1px solid var(--line); }
.doc h2:first-of-type { border-top: 0; }
.doc ol, .doc ul { padding-left: 1.3rem; }
.doc li { margin: .35rem 0; }
.doc figure { margin: 1.2rem 0; }
.doc figure img { border-radius: 16px; border: 1px solid var(--line); max-height: 520px; width: auto; display: block; }
.doc figcaption { color: var(--muted); font-size: .9rem; margin-top: .4rem; }
.tip { background: var(--soft); border-radius: 12px; padding: .8rem 1rem; margin: 1rem 0; }
kbd { background: var(--soft); border: 1px solid var(--line); border-radius: 6px; padding: .05rem .4rem; font: inherit; font-size: .92em; font-weight: 600; white-space: nowrap; }

@media (max-width: 800px) {
  .hero { grid-template-columns: 1fr; padding-top: 1.2rem; gap: 1.8rem; }
  .nav nav a:not(.btn) { display: none; }   /* sur téléphone : seuls Connexion et Démo restent dans l'en-tête */
  .grid, .steps { grid-template-columns: 1fr; }
  .doc { grid-template-columns: 1fr; gap: 1rem; }
  .toc { position: static; background: var(--soft); border-radius: 12px; padding: .8rem 1rem; }
}
