/* polynote.polygonlab.ai — styles du site, tirés de la planche W1 « Page produit (publique) »
   de la maquette 2026-10-22_MAQUETTES_PolyNote-Espace-en-ligne_v1.1.html.
   Mobile d'abord : paliers à 600 px et 960 px. Couleurs : jetons du design system uniquement
   (pn-tokens.css, thème sombre pn-tokens-sombre.css). */

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-sans); font-size: 16px; line-height: 1.55; background: var(--surface); color: var(--ink); }
img, svg { max-width: 100%; }
a { color: var(--gold-ink); }
a:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
.lnk { color: var(--gold-ink); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
h1, h2, h3 { margin: 0; overflow-wrap: break-word; hyphens: auto; }
.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 16px; }
.skip { position: absolute; left: 16px; top: -100px; z-index: 10; display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: var(--radius-md); background: var(--primary); color: var(--on-primary); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; outline: 2px solid var(--focus); outline-offset: 2px; }

/* ---------- Marque ---------- */
.brand { text-decoration: none; min-height: 40px; }
.brand .pn-wordmark { font-size: 20px; line-height: 1; }
.brand--foot .pn-wordmark { font-size: 16px; }

/* ---------- En-tête (.snav) ---------- */
.snav { background: var(--surface); border-bottom: 1px solid var(--line); }
.snav__in { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; padding-block: 10px; }
.snav__in .brand { flex: 1 1 auto; }
.snav__nav { order: 3; flex: 1 1 100%; }
.snav__links { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 0; padding: 0; list-style: none; font-size: 14px; }
.snav__link { display: inline-flex; align-items: center; min-height: 36px; color: var(--ink); text-decoration: none; }
.snav__link:hover { text-decoration: underline; text-underline-offset: 3px; }
.snav__link[aria-current="page"] { font-weight: 600; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 6px; text-decoration-thickness: 2px; }
.snav__cta { display: none; }
.langs { display: flex; gap: 2px; align-items: center; color: var(--ink-muted); font-size: 13px; font-weight: 600; }
.langs .pi { margin-right: 4px; }
.langs__item { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; min-height: 32px; padding: 0 4px; border-radius: var(--radius-sm); color: var(--ink-muted); text-decoration: none; }
a.langs__item:hover { background: var(--selected); color: var(--ink); }
.langs__item[aria-current="true"] { color: var(--ink); background: var(--selected); }

/* ---------- Boutons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.doc .actions--liste { margin: 24px 0 0; padding: 0; list-style: none; }
.pn-btn { text-decoration: none; }
.big { height: 44px; padding-inline: 20px; }

/* ---------- Bandeau (.hero) ---------- */
.hero { padding-block: 32px 40px; }
.hero__in { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: center; }
.hero-text { display: grid; gap: 16px; justify-items: start; min-width: 0; }
.hero-title { font-family: var(--font-display); font-stretch: 125%; font-size: 32px; line-height: 38px; font-weight: 700; letter-spacing: -.01em; text-wrap: balance; }
.hero-brand { display: block; margin-bottom: 10px; font-size: 18px; line-height: 1; color: var(--gold-ink); }
.hero-tag { display: block; }
.lead { margin: 0; font-size: 17px; line-height: 26px; max-width: 56ch; }
.hero-note { margin: 0; font-size: 13.5px; line-height: 20px; color: var(--ink-muted); }
.hero-vis { min-width: 0; }

/* Carte du bandeau : anneau des sujets, barres de temps de parole, lien de contexte (planche W1). */
.card { display: grid; gap: 10px; align-content: start; min-width: 0; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface-raised); box-shadow: var(--shadow-card); }
.hero-card { gap: 14px; padding: 18px; border-radius: var(--radius-xl); box-shadow: var(--shadow-dialog); }
.hero-card .pn-ring { display: flex; padding: 0; border: 0; background: none; }
.hero-card .pn-ring svg { width: 84px; height: 84px; }
.hero-card .pn-ring-legend { flex: 1 1 auto; min-width: 0; }
.hero-card .pn-ring-legend li { white-space: normal; }
.hero-card .pn-bar-row { grid-template-columns: 64px minmax(0, 1fr) 44px; }
.ring-num { font-family: var(--font-mono); font-size: 18px; font-weight: 600; fill: currentColor; }
.ring-lbl { font-family: var(--font-sans); font-size: 9px; letter-spacing: 1px; fill: currentColor; }
.ring-s1 { stroke: var(--spk-1); }
.ring-s2 { stroke: var(--spk-2); }
.ring-s3 { stroke: var(--spk-3); }
.ring-s4 { stroke: var(--spk-4); }
.ring-s5 { stroke: var(--spk-other); }
.dot-s1 { background: var(--spk-1); }
.dot-s2 { background: var(--spk-2); }
.dot-s3 { background: var(--spk-3); }
.dot-s4 { background: var(--spk-4); }
.dot-s5 { background: var(--spk-other); }
.bar-s1 { width: 41%; background: var(--spk-1); }
.bar-s2 { width: 27%; background: var(--spk-2); }
.bar-s3 { width: 19%; background: var(--spk-3); }
.bar-s4 { width: 13%; background: var(--spk-4); }

/* ---------- Sections ---------- */
.band { padding-block: 40px; }
.band--sunken { background: var(--surface-sunken); }
.band--tight { padding-top: 8px; }
.title { margin: 0 0 20px; font-family: var(--font-display); font-stretch: 125%; font-size: 24px; line-height: 30px; font-weight: 600; }
.fic { flex: none; width: 40px; height: 40px; border-radius: var(--radius-md); background: var(--gold-soft); color: var(--gold-ink); display: grid; place-items: center; }

/* Comment ça marche : étapes numérotées. */
.steps { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin: 0; padding: 0; list-style: none; counter-reset: etape; }
.steps li { counter-increment: etape; position: relative; padding: 18px 18px 18px 64px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface-raised); box-shadow: var(--shadow-card); }
.steps li::before { content: counter(etape); position: absolute; left: 18px; top: 18px; width: 32px; height: 32px; display: grid; place-items: center; border-radius: var(--radius-full); background: var(--primary); color: var(--on-primary); font-family: var(--font-mono); font-size: 14px; font-weight: 500; }
.steps strong { display: block; margin-bottom: 4px; font-family: var(--font-display); font-stretch: 112.5%; font-weight: 600; }

/* Ce que fait PolyNote : rangée de fonctions avec pictogrammes en pastille or. */
.feats { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px 28px; margin: 0; padding: 0; list-style: none; }
.feat { display: grid; gap: 10px; align-content: start; }
.feat p { margin: 0; color: var(--ink-muted); }
.feat strong { color: var(--ink); font-weight: 600; }

/* Vos données. */
.data { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px 28px; margin: 0; padding: 0; list-style: none; }
.data li { display: flex; gap: 14px; align-items: flex-start; }
.data p { margin: 0; }

/* La bêta. */
.beta { display: grid; gap: 14px; justify-items: start; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-xl); background: var(--gold-soft); }
.beta .title { margin: 0; }
.beta p { margin: 0; max-width: 62ch; }

/* Questions fréquentes. */
.faq { margin: 0; border-top: 1px solid var(--line); }
.faq div { padding-block: 16px; border-bottom: 1px solid var(--line); }
.faq dt { font-weight: 600; }
.faq dd { margin: 4px 0 0; max-width: 75ch; color: var(--ink-muted); }

/* ---------- Pages Tarifs et Téléchargement ---------- */
.page-head { padding-block: 36px 28px; }
.page-head .lead { margin-top: 14px; }
.hero-title--page { font-size: 28px; line-height: 34px; }
.tiers { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin: 0 0 20px; padding: 0; list-style: none; }
.tier { display: grid; gap: 12px; align-content: start; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface-raised); box-shadow: var(--shadow-card); }
.tier h3 { font-family: var(--font-display); font-stretch: 125%; font-size: 20px; line-height: 26px; font-weight: 700; }
.tier dl { display: grid; margin: 0; }
.tier dl div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-block: 8px; border-top: 1px solid var(--line); font-size: 14px; line-height: 20px; }
.tier dt { color: var(--ink-muted); }
.tier dd { margin: 0; flex: none; max-width: 50%; text-align: right; font-weight: 600; }
.tier .tier__hours dd { font-family: var(--font-mono); font-size: 18px; font-weight: 500; color: var(--ink); }
.tier .tier__price dd { flex: 0 1 auto; font-family: var(--font-mono); font-size: 13px; font-weight: 500; color: var(--gold-ink); }
.note { margin: 0 0 20px; max-width: 75ch; font-size: 14px; line-height: 21px; color: var(--ink-muted); }
.dl-card { display: grid; gap: 14px; justify-items: start; max-width: 760px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-xl); background: var(--surface-raised); box-shadow: var(--shadow-card); }
.dl-card p { margin: 0; max-width: 65ch; }
.dl-card .note { margin: 0; }
.dl-req { font-weight: 600; }
.fic--lg { width: 52px; height: 52px; border-radius: var(--radius-lg); }

/* ---------- Pages juridiques ---------- */
.doc-page { padding-block: 36px 56px; }
.doc { max-width: 820px; }
.doc__title { font-family: var(--font-display); font-stretch: 125%; font-size: 26px; line-height: 32px; font-weight: 700; text-wrap: balance; }
.doc__date { margin: 10px 0 0; font-size: 14px; color: var(--ink-muted); }
.doc h2 { margin: 36px 0 0; font-family: var(--font-display); font-stretch: 112.5%; font-size: 20px; line-height: 26px; font-weight: 600; }
.doc p, .doc ul { margin: 14px 0 0; max-width: 75ch; }
.doc ul { padding-left: 22px; }
.doc li + li { margin-top: 6px; }
.table-wrap { margin-top: 18px; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface-raised); }
.doc table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.5; }
.doc th, .doc td { min-width: 9rem; padding: 10px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.doc thead th { font-size: 11px; line-height: 16px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: var(--ink-muted); background: var(--surface-sunken); }
.doc tbody th { font-weight: 600; }
.doc tbody tr:last-child th, .doc tbody tr:last-child td { border-bottom: 0; }

/* ---------- Pied de page (.sfoot) ---------- */
.sfoot { margin-top: 24px; border-top: 1px solid var(--line); font-size: 13px; line-height: 20px; color: var(--ink-muted); }
.sfoot__in { display: grid; gap: 12px; padding-block: 24px 32px; }
.sfoot__links { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 0; padding: 0; list-style: none; }
.sfoot__links a { display: inline-flex; align-items: center; min-height: 32px; color: var(--ink-muted); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; overflow-wrap: anywhere; }
.sfoot__links a:hover, .sfoot__links a[aria-current="page"] { color: var(--ink); }
.sfoot__legal { margin: 0; }

/* ---------- 600 px et plus ---------- */
@media (min-width: 600px) {
  .wrap { padding-inline: 32px; }
  .snav__cta { display: inline-flex; order: 4; }
  .hero-title { font-size: 40px; line-height: 46px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .data { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .beta { padding: 32px; }
  .hero-card { padding: 20px; }
  .hero-card .pn-ring svg { width: 96px; height: 96px; }
  .hero-card .pn-bar-row { grid-template-columns: 112px minmax(0, 1fr) 52px; }
  .hero-title--page { font-size: 34px; line-height: 40px; }
  .doc__title { font-size: 34px; line-height: 40px; }
}

/* ---------- 960 px et plus ---------- */
@media (min-width: 960px) {
  .wrap { padding-inline: 64px; }
  .snav__in { flex-wrap: nowrap; gap: 26px; padding-block: 16px; }
  .snav__nav { order: 0; flex: 0 1 auto; }
  .snav__links { gap: 26px; }
  .hero { padding-block: 48px 56px; }
  .hero__in { grid-template-columns: 1.1fr 1fr; gap: 48px; }
  .hero-title { font-size: 46px; line-height: 52px; }
  .band { padding-block: 56px; }
  .title { font-size: 28px; line-height: 34px; margin-bottom: 28px; }
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .steps li { padding: 64px 18px 18px; }
  .feats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tiers { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-title--page { font-size: 40px; line-height: 46px; }
  .sfoot__in { grid-template-columns: auto 1fr; align-items: center; column-gap: 32px; }
  .sfoot__links { justify-content: flex-end; }
  .sfoot__legal { grid-column: 1 / -1; }
}
