/* ============================================================================
   AUGON — Cartes vidéo (accueil + vidéothèque) + lecteur modal
   • Section vidéos de l'accueil (bloc home_video)
   • Page Vidéothèque (vue videotheque)
   Chaque vidéo = vignette YouTube + bouton play ; clic = lecteur modal.
   ========================================================================== */

/* ---------------------------------------------------------------------------
   1) CARTE VIDÉO GÉNÉRIQUE (réutilisée partout)
   -------------------------------------------------------------------------- */
.au-video-grid {
  display: grid;
  gap: 1.4rem;
}

.au-video-card {
  display: flex;
  flex-direction: column;
  gap: .65rem;
  text-decoration: none;
  transition: transform .2s ease;
}
.au-video-card:hover { transform: translateY(-5px); }

.au-video-thumb {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #22304d;
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .28);
}
.au-video-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, .5));
  transition: background .2s ease;
}

.au-video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 3px;
  background: #e23b3b;
  color: #fff;
  font-size: 18px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .45);
  transition: transform .2s ease, background .2s ease;
}
.au-video-card:hover .au-video-play {
  transform: translate(-50%, -50%) scale(1.14);
  background: #b15d5b;
}

.au-video-title {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------------------------------------------------------------------------
   2) SECTION VIDÉOS DE L'ACCUEIL (fond bleu foncé -> texte blanc)
   -------------------------------------------------------------------------- */
.video-section-wrapper .video-container.video-container--v2 {
  position: relative;
  z-index: 2;
  width: 90%;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  padding: 2.4rem 3rem 2.8rem;
  background: none;
}
.video-container--v2 .au-video-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.2rem 1.6rem;
}
.video-container--v2 .au-video-head .video-heading {
  margin: 0;
  color: #fff;
  line-height: 1.12;
  letter-spacing: .5px;
}
.video-container--v2 .video-span {
  display: inline-block;
  width: fit-content;
  padding: 6px 18px;
  border: 2px solid rgba(255, 255, 255, .6);
  border-radius: 30px;
  color: #fff;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
}
.video-container--v2 .au-video-grid { grid-template-columns: repeat(4, 1fr); }
.video-container--v2 .au-video-title { color: #fff; }

/* Bouton « +plus de videos » (pill), poussé à droite */
.video-container--v2 .au-video-more {
  margin-left: auto;
  display: inline-flex !important;
  align-items: center;
  width: auto !important;
  height: auto !important;
  padding: 11px 26px !important;
  border-radius: 30px !important;
  font-size: 14px !important;
  font-weight: 700;
  letter-spacing: .4px;
  text-transform: uppercase;
  color: #fff !important;
  background: linear-gradient(135deg, #c26f6c 0%, #b15d5b 100%) !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .28);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.video-container--v2 .au-video-more:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  color: #fff !important;
  background: linear-gradient(135deg, #c26f6c 0%, #a24f4d 100%) !important;
}

/* ---------------------------------------------------------------------------
   3) PAGE VIDÉOTHÈQUE (fond clair -> texte foncé)
   -------------------------------------------------------------------------- */
.au-videotheque {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 15px 40px;
}
.au-videotheque .au-video-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}
.au-videotheque .au-video-title {
  color: #2b3a55;
  font-size: 14.5px;
  font-weight: 700;
}
.au-videotheque .au-video-thumb { box-shadow: 0 10px 26px rgba(43, 58, 85, .12); }
.au-videotheque .view-empty {
  text-align: center;
  color: #6b7891;
  padding: 40px;
}
/* pager */
.au-videotheque .pager__items { justify-content: center; }

/* ---------------------------------------------------------------------------
   4) LECTEUR MODAL
   -------------------------------------------------------------------------- */
.au-video-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, .85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: auVideoFade .18s ease;
}
@keyframes auVideoFade { from { opacity: 0; } to { opacity: 1; } }
.au-video-modal__box {
  position: relative;
  width: min(960px, 92vw);
}
.au-video-modal__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .6);
}
.au-video-modal__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.au-video-modal__close {
  position: absolute;
  top: -48px;
  right: 0;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: #fff;
  color: #1f2a44;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.au-video-modal__close:hover { background: #e23b3b; color: #fff; }

/* ---------------------------------------------------------------------------
   5) RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .video-container--v2 .au-video-grid { grid-template-columns: repeat(2, 1fr); }
  .au-videotheque .au-video-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  .video-section-wrapper .video-container.video-container--v2 {
    width: 100%;
    padding: 1.6rem 1.2rem 2rem;
  }
  .video-container--v2 .au-video-more { margin: .4rem 0 0 !important; }
}
@media (max-width: 560px) {
  .video-container--v2 .au-video-grid { grid-template-columns: 1fr 1fr; }
  .au-videotheque .au-video-grid { grid-template-columns: 1fr; }
}
