/**
 * BRAND PARTNERS - YOUTUBE VIDEO EMBED STYLES
 * Lecteur YouTube responsive avec design cohérent
 */

.article-youtube-section {
  margin: 2rem 0 3rem 0;
}

.youtube-embed-wrapper {
  width: 100%;
  max-width: 100%;
}

/* Container responsive 16:9 */
.youtube-embed-container {
  position: relative;
  padding-bottom: 56.25%; /* Ratio 16:9 */
  height: 0;
  overflow: hidden;
  background-color: #000;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.youtube-embed-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Lien externe "Regarder sur YouTube" */
.youtube-external-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.75rem 1.5rem;
  background-color: #2e00ff; /* Bleu Brand Partners */
  color: #ffffff;
  text-decoration: none;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(46, 0, 255, 0.2);
}

.youtube-external-link:hover {
  background-color: #2500d9;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(46, 0, 255, 0.3);
}

/* Responsive Mobile */
@media (max-width: 768px) {
  .article-youtube-section {
    margin: 1.5rem 0 2rem 0;
  }

  .youtube-embed-container {
    border-radius: 6px;
  }

  .youtube-external-link {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    width: 100%;
    justify-content: center;
  }
}

/* Animation d'apparition */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.article-youtube-section {
  animation: fadeInUp 0.6s ease-out;
}

/* ============================================
   OPTION 2 : BLOCS YOUTUBE DANS LE CONTENU
   ============================================ */

.content-youtube-block {
  margin: 2rem 0;
  width: 100%;
}

/* Légende sous la vidéo */
.youtube-caption {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: #666;
  font-style: italic;
  text-align: center;
}

/* Responsive pour les blocs dans le contenu */
@media (max-width: 768px) {
  .content-youtube-block {
    margin: 1.5rem 0;
  }

  .youtube-caption {
    font-size: 0.85rem;
  }
}
