/* ============================================================
   tutoriel.css — Guide d'utilisation du kit
   ============================================================ */

/* ── HERO ─────────────────────────────────────────────────── */
.tuto-hero {
  background: var(--black);
  padding: 72px 0 64px;
  text-align: center;
}
.tuto-hero__badge {
  display: inline-block;
  padding: 6px 16px;
  border: 1px solid rgba(165,133,66,.4);
  color: rgba(165,133,66,.8);
  font-size: 10px;
  letter-spacing: .2em;
  margin-bottom: 28px;
  font-weight: 600;
  text-transform: uppercase;
}
.tuto-hero__title {
  font-size: 52px;
  font-weight: 300;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 20px;
}
.tuto-hero__desc {
  font-size: 15px;
  color: rgba(255,255,255,.45);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── SECTION ──────────────────────────────────────────────── */
.tuto-section {
  background: var(--off-white);
  padding: 80px 0 100px;
}

/* ── TIMELINE ─────────────────────────────────────────────── */
.tuto-timeline {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}
.tuto-timeline__line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--gold) 5%, var(--gold) 95%, transparent);
  transform: translateX(-50%);
}

/* ── STEP ─────────────────────────────────────────────────── */
.tuto-step {
  display: grid;
  grid-template-columns: 1fr 80px 1fr;
  align-items: center;
  gap: 0 40px;
  margin-bottom: 80px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}
.tuto-step--visible {
  opacity: 1;
  transform: translateY(0);
}

/* Node central */
.tuto-step__node {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--off-white);
  box-shadow: 0 0 0 1px var(--gold);
  margin: 0 auto;
  z-index: 2;
  position: relative;
}
.tuto-step__node-num {
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  font-family: var(--font);
  letter-spacing: .05em;
}

/* Layout gauche */
.tuto-step--left .tuto-step__photo   { grid-column: 1; grid-row: 1; }
.tuto-step--left .tuto-step__node    { grid-column: 2; grid-row: 1; }
.tuto-step--left .tuto-step__content { grid-column: 3; grid-row: 1; }
.tuto-step--left { transition-delay: 0s; }

/* Layout droite */
.tuto-step--right .tuto-step__content { grid-column: 1; grid-row: 1; text-align: right; }
.tuto-step--right .tuto-step__node    { grid-column: 2; grid-row: 1; }
.tuto-step--right .tuto-step__photo   { grid-column: 3; grid-row: 1; }
.tuto-step--right .tuto-step__lien    { justify-content: flex-end; }

/* Photo */
.tuto-step__photo img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 2px;
  display: block;
  box-shadow: var(--shadow-hover);
}
.tuto-step__photo-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--border);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed rgba(165,133,66,.3);
}
.tuto-step__photo-num {
  font-size: 64px;
  font-weight: 800;
  color: rgba(165,133,66,.15);
  font-family: var(--font);
}

/* Contenu */
.tuto-step__num {
  font-size: 80px;
  font-weight: 800;
  color: rgba(165,133,66,.08);
  font-family: var(--font);
  line-height: 1;
  margin-bottom: -20px;
  letter-spacing: -.03em;
}
.tuto-step__titre {
  font-size: 22px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 14px;
  line-height: 1.2;
}
.tuto-step__texte {
  font-size: 14px;
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 18px;
}
.tuto-step__lien {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(165,133,66,.3);
  padding-bottom: 2px;
  transition: color var(--transition), border-color var(--transition);
}
.tuto-step__lien:hover {
  color: var(--gold-hover);
  border-color: var(--gold-hover);
}

/* ── CTA FINAL ────────────────────────────────────────────── */
.tuto-cta {
  background: var(--black);
  padding: 80px 0;
  text-align: center;
}
.tuto-cta__inner { max-width: 560px; margin: 0 auto; }
.tuto-cta__title {
  font-size: 32px;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 14px;
  line-height: 1.2;
}
.tuto-cta__desc {
  font-size: 15px;
  color: rgba(255,255,255,.45);
  margin-bottom: 36px;
  line-height: 1.7;
}

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 860px) {
  .tuto-timeline__line { left: 24px; }
  .tuto-step {
    grid-template-columns: 48px 1fr;
    grid-template-rows: auto auto;
    gap: 0 20px;
    margin-bottom: 56px;
  }
  .tuto-step--left .tuto-step__node,
  .tuto-step--right .tuto-step__node    { grid-column: 1; grid-row: 1; }
  .tuto-step--left .tuto-step__content,
  .tuto-step--right .tuto-step__content { grid-column: 2; grid-row: 1; text-align: left; }
  .tuto-step--left .tuto-step__photo,
  .tuto-step--right .tuto-step__photo   { grid-column: 1 / -1; grid-row: 2; margin-top: 20px; }
  .tuto-step--right .tuto-step__lien    { justify-content: flex-start; }
  .tuto-step__num { font-size: 56px; margin-bottom: -14px; }
  .tuto-hero__title { font-size: 36px; }
}

@media (max-width: 500px) {
  .tuto-hero { padding: 52px 0 44px; }
  .tuto-hero__title { font-size: 28px; }
  .tuto-section { padding: 48px 0 64px; }
  .tuto-step { margin-bottom: 40px; }
}
