/* videos.css : la grille de vidéos YouTube, commune à toutes les pages.
   Une page pose <div class="yt-grid" data-videos="journee"></div> et charge
   assets/js/videos.js : miniature, bouton de lecture, lecteur posé au clic.
   Sortie d'academie.css le 20 octobre 2026 pour servir aussi aux pages
   Entreprises, Colonies et Courses. Les variables gardent en repli les
   valeurs de l'Académie. */
.yt-grid { display: grid; grid-template-columns: 1fr; gap: 16px }
@media(min-width:640px) { .yt-grid { grid-template-columns: 1fr 1fr } }
@media(min-width:960px) { .yt-grid { grid-template-columns: repeat(3,1fr) } }

.yt-card {
  background: var(--bg-white, #fff); border: 1px solid var(--sep, rgba(10,61,145,.09));
  border-radius: 6px; overflow: hidden;
  display: flex; flex-direction: column;
  transition: all .22s; text-decoration: none;
}
.yt-card:hover {
  border-color: var(--accent, #0A3D91);
  box-shadow: 0 8px 28px rgba(10,61,145,.12);
  transform: translateY(-3px);
}
.yt-thumb {
  position: relative; padding-bottom: 56.25%; height: 0;
  overflow: hidden; background: #000;
}
.yt-thumb iframe {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%; border: none;
}
/* La miniature et son bouton de lecture (videos.js) : le lecteur YouTube
   n'est posé qu'au toucher ou au clic. */
.yt-lancer {
  position: absolute; inset: 0; width: 100%; height: 100%;
  padding: 0; border: 0; background: #000; cursor: pointer; display: block;
}
.yt-lancer img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .88; transition: opacity .2s }
.yt-lancer:hover img, .yt-lancer:focus-visible img { opacity: 1 }
.yt-lancer:focus-visible { outline: 3px solid #FFCF00; outline-offset: -3px }
.yt-play {
  position: absolute; top: 50%; left: 50%;
  width: 64px; height: 44px; margin: -22px 0 0 -32px;
  border-radius: 10px; background: rgba(4,10,30,.82); transition: background .2s;
}
.yt-play::after {
  content: ''; position: absolute; top: 50%; left: 50%;
  margin: -9px 0 0 -6px; border-style: solid;
  border-width: 9px 0 9px 16px; border-color: transparent transparent transparent #fff;
}
.yt-lancer:hover .yt-play, .yt-lancer:focus-visible .yt-play { background: #FFCF00 }
.yt-lancer:hover .yt-play::after, .yt-lancer:focus-visible .yt-play::after { border-left-color: #040a1e }
.yt-info { padding: 14px 16px; flex: 1; display: flex; flex-direction: column; gap: 5px }
.yt-title { font-size: 13px; font-weight: 600; color: var(--INK, #0d0d0d); line-height: 1.35 }
.yt-meta {
  font-family: 'DM Mono'; font-size: 8px; letter-spacing: 1px;
  text-transform: uppercase; color: rgba(13,13,13,.6);
  display: flex; gap: 10px; margin-top: auto;
  padding-top: 8px; border-top: 1px solid var(--sep, rgba(10,61,145,.09)); flex-wrap: wrap;
}


/* Onglets des playlists de la chaîne */
.yt-playlists { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px }
.yt-pl {
  font-family: 'DM Mono', monospace; font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  padding: 9px 14px; border-radius: 999px; text-decoration: none;
  background: #0A3D91; color: #fff;
}
.yt-pl--exemple { background: transparent; color: #0A3D91; border: 1px dashed #0A3D91 }
