/* Page /bonus-reparation : bloc des vidéos, sous les trois étapes et le bouton « Voir les critères ».
   Mêmes mesures que les cartes des étapes (écart de 2,25 rem, bordure #e3e3e3, bleu #223a88). */
.bonus-repair__videos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.25rem;
  margin: 3rem 0 0;
}
.bonus-repair__videos--single { grid-template-columns: minmax(0, 720px); justify-content: center; }

.bonus-repair__video { margin: 0; }

.bonus-repair__video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid #e3e3e3;
  border-radius: 4px;
  background: #223a88;
}

.bonus-repair__video-el {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #223a88;
}
.bonus-repair__video-el--mobile { display: none; }

.bonus-repair__video-frame.is-ready:not(.is-playing) { cursor: pointer; }

/* Bouton posé en bas de l'image d'attente : il ne recouvre pas le titre de la vidéo. */
.bonus-repair__video-play {
  position: absolute;
  bottom: 7%;
  left: 50%;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .55rem 1.1rem .55rem .9rem;
  border: 0;
  border-radius: 999px;
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  color: #223a88;
  background: #fcfcfc;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .28);
  transform: translateX(-50%);
  transition: transform .15s ease, box-shadow .15s ease;
  cursor: pointer;
}
.bonus-repair__video-play[hidden] { display: none; }
.bonus-repair__video-frame:hover .bonus-repair__video-play,
.bonus-repair__video-play:focus-visible { transform: translateX(-50%) scale(1.05); box-shadow: 0 8px 26px rgba(0, 0, 0, .34); }
.bonus-repair__video-play:focus-visible { outline: 3px solid #fcfcfc; outline-offset: 3px; }
.bonus-repair__video-frame.is-playing .bonus-repair__video-play { display: none; }

.bonus-repair__video-title {
  margin: .85rem 0 0;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  color: #1a1a1a;
}

/* Tablette et téléphone : une vidéo par ligne, pour qu'elle reste assez grande. */
@media (max-width: 991.98px) {
  .bonus-repair__videos { grid-template-columns: minmax(0, 1fr); gap: 2rem; margin-top: 2.5rem; }
  .bonus-repair__video { width: 100%; max-width: 640px; margin: 0 auto; }
}

/* Téléphone tenu droit : la présentation passe à son format portrait.
   Téléphone couché : elle reste en paysage, sinon elle dépasserait la hauteur de l'écran. */
@media (max-width: 767.98px) and (orientation: portrait) {
  .bonus-repair__video-frame--has-mobile { aspect-ratio: 9 / 16; max-width: 300px; margin: 0 auto; }
  .bonus-repair__video-frame--has-mobile .bonus-repair__video-el--desktop { display: none; }
  .bonus-repair__video-frame--has-mobile .bonus-repair__video-el--mobile { display: block; }
}

/* Petits écrans : bouton réduit, pour rester sous le titre de l'image. */
@media (max-width: 575.98px) {
  .bonus-repair__video-play { bottom: 6%; padding: .4rem .85rem .4rem .7rem; font-size: .8125rem; }
}

@media (prefers-reduced-motion: reduce) {
  .bonus-repair__video-play { transition: none; }
}
