/* Façade de lecteur vidéo intégrée aux articles.
   Une vignette + un bouton : l'iframe YouTube n'est créée qu'au clic (assets/video-accueil.js),
   donc aucune requête ni cookie tiers tant que le visiteur n'a rien demandé. */

/* Un titre de section, pas un second titre de page : il ne doit pas concurrencer le h1. */
.tuto-video .tuto-titre {
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  line-height: 1.25;
  margin: 0 0 8px;
  max-width: 34ch;
}
.tuto-video .tuto-chapo {
  margin: 0 0 clamp(14px, 2.4vw, 20px);
  max-width: 64ch;
  color: var(--gris, #6b7a8d);
}

.tuto-lecteur {
  position: relative;
  width: 100%;
  max-width: 760px;
  aspect-ratio: 16 / 9;
  border-radius: var(--e4, 18px);
  overflow: hidden;
  border: 1px solid var(--filet, rgba(255, 255, 255, .12));
  box-shadow: var(--ombre, 0 18px 50px -20px rgba(0, 0, 0, .55));
  background: #05070c;
  cursor: pointer;
}
.tuto-lecteur img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s var(--courbe, cubic-bezier(.2, .7, .2, 1));
}
.tuto-lecteur:hover img { transform: scale(1.03); }
.tuto-lecteur:focus-visible { outline: 3px solid var(--bleu, #2f7de3); outline-offset: 3px; }

.tuto-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(closest-side, rgba(4, 6, 11, .25), transparent 70%);
}
.tuto-play > span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffc24d, #f6851a);
  box-shadow: 0 10px 34px -8px rgba(246, 133, 26, .7);
  transition: transform .3s var(--courbe, cubic-bezier(.2, .7, .2, 1));
}
.tuto-lecteur:hover .tuto-play > span { transform: scale(1.08); }
.tuto-play svg { width: 34px; height: 34px; margin-left: 5px; fill: #1a1204; }

.tuto-duree {
  position: absolute;
  right: 12px;
  bottom: 12px;
  background: rgba(5, 7, 12, .82);
  color: #fff;
  font-size: .8rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: .03em;
}

.tuto-sous {
  margin-top: 14px;
  font-size: .92rem;
  color: var(--gris, #6b7a8d);
  max-width: 760px;
}

@media (prefers-reduced-motion: reduce) {
  .tuto-lecteur img,
  .tuto-play > span { transition: none; }
  .tuto-lecteur:hover img { transform: none; }
}

@media (max-width: 560px) {
  .tuto-play > span { width: 66px; height: 66px; }
  .tuto-play svg { width: 26px; height: 26px; }
}
