/* ══════════════════════════════════════════════════════════════════
   Manuel utilisateur de Dataturf Critérium
   Complète /assets/css/style.css (mêmes tokens) : étapes numérotées,
   repères posés sur les captures, démonstrations animées, et la mise en
   page imprimée qui sert à produire le PDF.
   ══════════════════════════════════════════════════════════════════ */

/* ── Colonne de lecture un peu plus large que les articles : les captures
      d'écran ont besoin de place pour rester lisibles. ────────────────── */
.manuel { max-width: 860px; }
.manuel p, .manuel li { font-size: 16.5px; }

/* ── Sommaire des chapitres ────────────────────────────────────────── */
.manuel-sommaire { counter-reset: chap; list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.manuel-sommaire > li {
  counter-increment: chap;
  display: grid; grid-template-columns: 44px 1fr; gap: 4px 14px; align-items: start;
  padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius-l);
  background: var(--bg-alt);
}
.manuel-sommaire > li::before {
  content: counter(chap);
  grid-row: span 2;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  font: 600 18px/1 var(--font); color: var(--text-on-accent); background: var(--accent);
}
.manuel-sommaire a { font-weight: 600; font-size: 17px; text-decoration: none; }
.manuel-sommaire a:hover { text-decoration: underline; }
.manuel-sommaire p { margin: 0; font-size: 14.5px; color: var(--text-faint); }
.manuel-sommaire .a-venir { color: var(--text-faint); font-weight: 600; font-size: 17px; }
.manuel-sommaire .a-venir-tag {
  font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  border: 1px solid var(--border-strong); border-radius: var(--radius-s);
  padding: 1px 6px; margin-left: 8px; vertical-align: 2px; color: var(--text-faint);
}

/* ── Titre de chapitre ─────────────────────────────────────────────── */
.chapitre { margin-top: 72px; padding-top: 28px; border-top: 2px solid var(--accent); }
.chapitre-num {
  display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 6px;
}
.chapitre > h2 { margin-top: 0; font-size: 30px; }
.chapitre .en-bref {
  margin: 18px 0 8px; padding: 14px 18px; border-radius: var(--radius-l);
  background: var(--bg-alt); border: 1px solid var(--border);
}
.chapitre .en-bref p { margin: 0; font-size: 15.5px; }
.chapitre .en-bref strong { color: var(--accent); }

/* ── Étapes numérotées ─────────────────────────────────────────────── */
.etapes { counter-reset: etape; list-style: none; padding: 0; margin: 22px 0 30px; }
.etapes > li {
  counter-increment: etape; position: relative;
  padding: 0 0 20px 50px; margin: 0;
}
.etapes > li::before {
  content: counter(etape);
  position: absolute; left: 0; top: -1px;
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  font: 600 15px/1 var(--font); color: var(--accent);
  background: var(--accent-dim); border: 2px solid var(--accent);
}
/* filet vertical qui relie les étapes */
.etapes > li:not(:last-child)::after {
  content: ""; position: absolute; left: 16px; top: 34px; bottom: 2px;
  width: 2px; background: var(--accent-border-dim);
}
.etapes > li > p:first-child { margin-top: 3px; }
.etapes > li p { margin: 0 0 8px; }
.etapes .resultat { font-size: 15px; color: var(--text-faint); }
.etapes .resultat::before { content: "→ "; color: var(--accent); font-weight: 600; }

/* ── Boutons et touches cités dans le texte ────────────────────────── */
.bouton {
  display: inline-block; padding: 0 7px; border-radius: var(--radius-m);
  border: 1px solid var(--accent-border); background: var(--accent-dim);
  color: var(--accent); font-weight: 600; font-size: .92em; line-height: 1.55;
  white-space: nowrap;
}
.manuel kbd {
  display: inline-block; min-width: 1.6em; padding: 0 6px; text-align: center;
  border: 1px solid var(--border-strong); border-bottom-width: 2px; border-radius: var(--radius-m);
  background: var(--bg-alt); font: 600 .85em/1.6 var(--font-mono); color: var(--text);
}

/* ── Capture annotée : image + repères numérotés posés dessus ──────── */
.capture { margin: 26px 0 30px; }
.capture-cadre {
  position: relative; line-height: 0;
  border: 1px solid var(--border-strong); border-radius: var(--radius-l);
  overflow: hidden; background: var(--bg-secondary);
  box-shadow: 0 10px 30px -18px rgba(17, 24, 39, .45);
}
.capture-cadre img { width: 100%; height: auto; }
.capture-cadre a { display: block; cursor: zoom-in; }
.repere {
  position: absolute; left: var(--x); top: var(--y);
  transform: translate(-50%, -50%);
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  font: 700 13px/1 var(--font); color: #fff; background: var(--accent);
  box-shadow: 0 0 0 3px #fff, 0 2px 8px rgba(0, 0, 0, .35);
  pointer-events: none;
}
.capture figcaption { margin-top: 10px; font-size: 13.5px; color: var(--text-faint); line-height: 1.5; }

/* Légende des repères : mêmes pastilles que sur l'image */
.reperes { counter-reset: rep; list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 7px; }
.reperes > li {
  counter-increment: rep; position: relative; padding-left: 36px;
  font-size: 15px; line-height: 1.5; color: var(--text-muted);
}
.reperes > li::before {
  content: counter(rep); position: absolute; left: 0; top: 0;
  width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center;
  font: 700 12px/1 var(--font); color: #fff; background: var(--accent);
}
.reperes strong { color: var(--text); }

/* ── Démonstration animée (GIF) ────────────────────────────────────── */
.demo { margin: 28px 0 34px; }
.demo-cadre {
  position: relative; line-height: 0;
  border: 1px solid var(--accent-border); border-radius: var(--radius-l); overflow: hidden;
  box-shadow: 0 12px 34px -18px rgba(155, 67, 12, .55);
}
.demo-cadre img { width: 100%; height: auto; }
.demo-etiquette {
  position: absolute; left: 10px; top: 10px; line-height: 1.4;
  font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-on-accent); background: var(--accent);
  padding: 3px 8px; border-radius: var(--radius-s);
}
.demo figcaption { margin-top: 10px; font-size: 13.5px; color: var(--text-faint); }
.demo .fixe { display: none; }

/* ── Encadrés ──────────────────────────────────────────────────────── */
.astuce, .attention {
  margin: 22px 0; padding: 14px 18px 14px 16px; border-radius: var(--radius-l);
  border-left: 4px solid; font-size: 15.5px;
}
.astuce { background: var(--success-dim); border-color: var(--success); }
.attention { background: rgba(129, 84, 0, .09); border-color: var(--warning); }
.astuce p, .attention p { margin: 0; font-size: 15.5px; }
.astuce p + p, .attention p + p { margin-top: 8px; }
.astuce .titre, .attention .titre {
  display: block; font-size: 12px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; margin-bottom: 4px;
}
.astuce .titre { color: var(--success); }
.attention .titre { color: var(--warning); }

/* ── Tableau des icônes et raccourcis ──────────────────────────────── */
.manuel table.icones td:first-child { font-size: 18px; text-align: center; width: 64px; }

/* ── Couverture : n'existe qu'à l'impression ───────────────────────── */
.couverture { display: none; }

/* ══════════════════════════════════════════════════════════════════
   Impression / PDF
   ══════════════════════════════════════════════════════════════════ */
@page { size: A4; margin: 16mm 15mm 18mm; }

@media print {
  html, body { background: var(--bg) !important; }
  body { font-size: 11pt; }
  .skip-link, .site-header, .breadcrumb, .site-footer, .nav-toggle,
  .manuel-web, .hero-shot-loupe { display: none !important; }
  main { padding: 0 !important; }
  .wrap { max-width: none; padding: 0; }
  .article.manuel { max-width: none; padding: 0; }
  .manuel p, .manuel li { font-size: 10.5pt; }
  a { color: var(--accent); text-decoration: none; }

  .couverture {
    display: flex; flex-direction: column; justify-content: center;
    height: 255mm; break-after: page; text-align: center;
  }
  .couverture-logo {
    display: inline-block; margin: 0 auto 26px; padding: 22px 46px;
    border: 3px solid var(--accent); border-radius: var(--radius-l);
  }
  .couverture-logo .nom { font: 700 44pt/1 var(--font); letter-spacing: .04em; color: var(--text); }
  .couverture-logo .nom span { color: var(--accent); }
  .couverture-logo .produit { margin-top: 10px; font: 600 16pt/1 var(--font); letter-spacing: .4em; color: var(--accent); }
  .couverture h1 { font-size: 28pt; margin: 18px 0 10px; }
  .couverture p { font-size: 12pt; color: var(--text-muted); margin: 4px 0; }

  .chapitre { break-before: page; margin-top: 0; }
  .capture, .demo, .astuce, .attention, .etapes > li, table, .reperes { break-inside: avoid; }
  h2, h3 { break-after: avoid; }
  .capture-cadre, .demo-cadre { box-shadow: none; }
  .demo .anim { display: none; }
  .demo .fixe { display: block; }
  .demo-etiquette { display: none; }
}
