/* Vidéos YouTube — grille facade (page dédiée + bloc tutoriel) */

.videos-page {
  padding: 3rem 0 4rem;
  background: var(--color-bg);
}

.videos-page__header {
  text-align: center;
  max-width: 42rem;
  margin: 0 auto 2.5rem;
}

.videos-page__eyebrow {
  display: inline-block;
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.videos-page__title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.15;
  color: var(--color-text);
}

.videos-page__intro {
  margin: 0;
  color: color-mix(in srgb, var(--color-text) 70%, transparent);
  line-height: 1.6;
}

.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.videos-empty {
  text-align: center;
  padding: 2rem;
  border-radius: 0.75rem;
  background: color-mix(in srgb, var(--color-primary) 6%, transparent);
  color: color-mix(in srgb, var(--color-text) 70%, transparent);
}

.article-videos {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid color-mix(in srgb, var(--color-text) 10%, transparent);
}

.article-videos__heading {
  margin: 0 0 1.5rem;
  font-size: 1.5rem;
  color: var(--color-text);
}

.video-facade {
  position: relative;
  border-radius: 0.875rem;
  overflow: hidden;
  background: #000;
  aspect-ratio: 16 / 9;
  box-shadow: 0 8px 24px color-mix(in srgb, var(--color-text) 8%, transparent);
}

.video-facade__play {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.video-facade__thumb {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-facade__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, #000 25%, transparent);
  transition: background 0.2s ease;
}

.video-facade__play:hover .video-facade__overlay,
.video-facade__play:focus-visible .video-facade__overlay {
  background: color-mix(in srgb, #000 40%, transparent);
}

.video-facade__play-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--color-primary) 92%, transparent);
  color: #fff;
  box-shadow: 0 4px 20px color-mix(in srgb, #000 35%, transparent);
  transition: transform 0.2s ease, background 0.2s ease;
}

.video-facade__play:hover .video-facade__play-icon,
.video-facade__play:focus-visible .video-facade__play-icon {
  transform: scale(1.06);
  background: var(--color-primary-dark);
}

.video-facade__play-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  margin-left: 0.15rem;
}

.video-facade__caption {
  margin-top: 0.75rem;
}

.video-facade__title {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
}

.video-facade__description {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: color-mix(in srgb, var(--color-text) 68%, transparent);
}

.video-facade__iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-facade.is-playing .video-facade__play {
  display: none;
}

.video-card {
  display: flex;
  flex-direction: column;
}
