/* KommIA : page des tutoriels vidéo (2026-09-30), FR et EN.
   Haut de page centré, puis le parcours en sept étapes : numéro sur un fil vertical, miniature cliquable, texte.
   La vidéo s'ouvre dans la fenêtre commune du site (.ytm, css/site.css ; js/site.js). */

main { position: relative; overflow-x: clip; }

/* ────── Haut de page ────── */
.thero {
  position: relative; z-index: 1;
  max-width: 1320px; margin: 0 auto;
  padding: clamp(48px, 7vw, 104px) var(--gutter) clamp(36px, 4.5vw, 64px);
  text-align: center;
}
.thero .kicker { animation: tu-up 800ms var(--ease-out) both 40ms; }
.thero__title {
  margin: 0 auto; max-width: 14ch;
  font-size: clamp(2.6rem, 1.3rem + 4.6vw, 5.2rem); font-weight: 620;
  letter-spacing: -0.05em; line-height: 1; text-wrap: balance;
  animation: tu-up 900ms var(--ease-out) both 120ms;
}
.thero__title .grad { display: inline; }
.thero__lead {
  margin: 24px auto 0; max-width: 40rem;
  font-size: 1.15rem; line-height: 1.65; color: var(--ink-70); text-wrap: pretty;
  animation: tu-up 900ms var(--ease-out) both 240ms;
}
.thero__meta {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
  margin: 28px 0 0; padding: 0; list-style: none;
  animation: tu-up 900ms var(--ease-out) both 340ms;
}
.thero__meta li {
  padding: 7px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.72); box-shadow: inset 0 0 0 1px var(--line);
  font-size: 14px; font-weight: 550; color: var(--ink-70);
}
@keyframes tu-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ────── Le parcours ────── */
.tuto {
  position: relative; z-index: 1;
  max-width: 1160px; margin: 0 auto;
  padding: clamp(8px, 2vw, 24px) var(--gutter) clamp(40px, 5vw, 72px);
}
.tuto__list { margin: 0; padding: 0; list-style: none; display: grid; gap: clamp(36px, 5vw, 64px); }
.tuto__step {
  position: relative;
  display: grid; grid-template-columns: 64px minmax(0, 11fr) minmax(0, 10fr);
  column-gap: clamp(20px, 3vw, 48px); align-items: center;
}
/* Le fil qui relie les numéros d'une étape à la suivante */
.tuto__step:not(:last-child)::before {
  content: ""; position: absolute; left: 31px; top: 64px; bottom: calc(-1 * clamp(36px, 5vw, 64px));
  width: 2px; border-radius: 2px;
  background: linear-gradient(to bottom, rgba(135, 106, 255, 0.35), rgba(22, 142, 255, 0.12));
}
.tuto__num {
  align-self: start; position: relative; z-index: 1;
  display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%;
  background: #fff; box-shadow: inset 0 0 0 1px var(--line), var(--shadow-tile);
  font-size: 1.15rem; font-weight: 650; letter-spacing: -0.02em; color: var(--violet-ink);
  font-variant-numeric: tabular-nums;
}
.tuto__media {
  position: relative; display: block; overflow: hidden;
  aspect-ratio: 16 / 9; border-radius: 22px;
  background: #0d0b24; box-shadow: var(--shadow-tile);
  transition: transform 500ms var(--ease-out), box-shadow 500ms var(--ease-out);
}
.tuto__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease-out); }
.tuto__media::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  background: radial-gradient(120% 90% at 50% 50%, transparent 55%, rgba(8, 6, 26, 0.35));
  pointer-events: none;
}
/* Bouton de lecture en bas à droite, durée en bas à gauche (choix de Bruno, 2026-09-30) : au centre, le bouton masquerait le titre écrit sur la miniature */
.tuto__play {
  position: absolute; right: 14px; bottom: 14px; z-index: 1;
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.94); color: var(--violet-ink);
  box-shadow: 0 10px 30px -8px rgba(12, 8, 40, 0.55), 0 0 0 6px rgba(255, 255, 255, 0.18);
  transition: transform 400ms var(--ease-spring);
}
.tuto__play svg { width: 22px; height: 22px; margin-left: 3px; }
.tuto__time {
  position: absolute; left: 14px; bottom: 14px; z-index: 1;
  padding: 4px 10px; border-radius: 999px;
  background: rgba(10, 8, 28, 0.78); color: #fff;
  font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums;
}
.tuto__step:hover .tuto__media { transform: translateY(-3px); box-shadow: 0 1px 2px rgba(40, 28, 96, 0.08), 0 30px 56px -24px rgba(52, 36, 130, 0.5); }
.tuto__step:hover .tuto__media img { transform: scale(1.025); }
.tuto__step:hover .tuto__play { transform: scale(1.08); }

.tuto__body { min-width: 0; }
.tuto__label { font-size: 13.5px; font-weight: 600; letter-spacing: 0.02em; color: var(--ink-60); }
.tuto__title {
  margin-top: 8px;
  font-size: clamp(1.45rem, 1rem + 1.2vw, 2rem); font-weight: 620;
  letter-spacing: -0.035em; line-height: 1.12; text-wrap: balance;
}
.tuto__title a { color: var(--ink); text-decoration: none; transition: color 200ms var(--ease-out); }
.tuto__title a:hover { color: var(--violet-ink); }
.tuto__text { margin-top: 12px; max-width: 34rem; font-size: 1.02rem; line-height: 1.62; color: var(--ink-70); text-wrap: pretty; }
.tuto__links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 20px; }
.tuto__watch {
  display: inline-flex; align-items: center; gap: 10px;
  height: 44px; padding: 0 18px 0 6px; border-radius: 999px;
  background: var(--ink); color: #fff; text-decoration: none;
  font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums;
  transition: background-color 220ms var(--ease-out), transform 220ms var(--ease-out);
}
.tuto__watch-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #fff; color: var(--ink); }
.tuto__watch-icon svg { width: 14px; height: 14px; margin-left: 2px; }
.tuto__watch:hover { background: #26262E; }
.tuto__watch:active { transform: scale(0.98); }

.tuto__note { margin: clamp(40px, 5vw, 64px) auto 0; max-width: 40rem; text-align: center; font-size: 14.5px; line-height: 1.6; color: var(--ink-60); text-wrap: pretty; }
.tuto__note .text-link { font-size: 14.5px; }

.tuto__help {
  margin: 28px auto 0; max-width: 760px;
  padding: clamp(22px, 3vw, 32px) clamp(22px, 3.5vw, 40px); border-radius: 24px;
  background: rgba(255, 255, 255, 0.78); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-panel);
  text-align: center;
}
.tuto__help-title { font-size: 1.2rem; font-weight: 620; letter-spacing: -0.02em; }
.tuto__help-text { margin: 8px auto 0; max-width: 34rem; color: var(--ink-70); text-wrap: pretty; }
.tuto__help-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; margin-top: 16px; }

/* ────── Tablette et mobile : une colonne, le numéro au-dessus du texte ────── */
@media (max-width: 820px) {
  .tuto__step { grid-template-columns: minmax(0, 1fr); row-gap: 18px; }
  .tuto__step:not(:last-child)::before { display: none; }
  .tuto__num { display: none; } /* le libellé « Étape N » porte le numéro ; posé sur la miniature, il masquerait le logo */
  .tuto__media { border-radius: 18px; }
  .tuto__body { padding: 0 2px; }
}
@media (max-width: 480px) {
  .thero__meta li { font-size: 13px; padding: 6px 12px; }
  .tuto__play { width: 46px; height: 46px; right: 12px; bottom: 12px; }
  .tuto__time { left: 12px; bottom: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .thero .kicker, .thero__title, .thero__lead, .thero__meta { animation: none; }
  .tuto__media, .tuto__media img, .tuto__play, .tuto__watch { transition: none; }
  .tuto__step:hover .tuto__media, .tuto__step:hover .tuto__media img, .tuto__step:hover .tuto__play { transform: none; }
}
