/* ============================================
   Tunnel — feuille de style partagée
   Sobre, contrastée, sans dépendance externe.
   ============================================ */

:root {
  --ink: #1C1F1C;
  --muted: #5B6058;
  --paper: #F5F6F1;
  --line: #D9D6C9;
  --accent: #8A6D3B;
  --accent-ink: #FFFFFF;
  --success: #3F5B47;
  --radius: 3px;
  --maxw: 30rem;

  --font-serif: Georgia, "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.75rem;
}

h1 {
  font-size: clamp(1.75rem, 5.5vw + 0.6rem, 2.5rem);
  animation: rise 0.5s ease-out;
}

h2 {
  font-size: 1.3rem;
  margin-top: 0;
}

.lede {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0 0 1.75rem;
  max-width: 34ch;
}

p {
  margin: 0 0 1rem;
}

/* Points courts (page 1) — liste, pas une séquence : pas de numéros */
.points {
  list-style: none;
  margin: 0 0 0.5rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.points li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.points li::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  margin-top: 0.6em;
  background: var(--accent);
  border-radius: 1px;
}

/* Zone de formulaire (page 1) — reste vide tant que le code
   Systeme.io n'est pas collé à la place du commentaire */
.form-zone {
  width: 100%;
  min-height: 14rem;
  margin: 2rem 0 1rem;
  border: 1px dashed var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
}

.form-zone:empty::before {
  content: "Formulaire Systeme.io";
  color: var(--muted);
  font-size: 0.85rem;
}

.fine-print {
  color: var(--muted);
  font-size: 0.8rem;
  text-align: center;
  margin: 0;
}

/* Repère de confirmation (page 2) */
.confirm-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  margin-bottom: 1rem;
  background: var(--success);
  color: var(--accent-ink);
  border-radius: 50%;
  font-size: 0.9rem;
  line-height: 1;
}

/* Zone vidéo (page 2) */
.video-zone {
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 1.5rem 0 2.25rem;
  border: 1px solid var(--line);
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.video-zone:empty::before {
  content: "Vidéo";
  color: var(--muted);
  font-size: 0.85rem;
}

.video-zone iframe,
.video-zone video {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.text-version {
  margin-bottom: 2.25rem;
}

/* Étapes de la version écrite (page 2) — une séquence : numérotée */
.steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 1.5rem;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--accent);
}

.divider {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0 0 2.25rem;
}

.tool-section p {
  max-width: 40ch;
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  text-decoration: none;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius);
  margin-top: 0.25rem;
}

.affiliate-note {
  color: var(--muted);
  font-size: 0.8rem;
  margin: 1rem 0 0;
}

.btn:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  h1 { animation: none; }
}

@media (min-width: 640px) {
  .wrap { padding-top: 4.5rem; }
}
