/* ---------------------------------------------------------------
   0. Positionnement en pourcentage via CSS variables
-----------------------------------------------------------------*/
.et-lb-content-header {
  position: relative;
  height: 100vh;
  /* Définissez ici vos pourcentages par défaut */
  --txt-top:    25%;
  --txt-left:   5%;
  --btn-bottom: 5%;
  --btn-right:  8%;
}

/* ---------------------------------------------------------------
   1. Layout Divi : rangée flex sur .et-lb-content-header (100vh)
-----------------------------------------------------------------*/
.et-lb-content-header .et_pb_row {
  display: flex;
  align-items: center;           /* centre verticalement */
  justify-content: space-between;/* espace max entre colonnes */
  height: 100%;                  /* hérite du 100vh */
}

.et-lb-content-header .et_pb_column {
  display: flex;
  flex-direction: column;
}

.et-lb-content-header .et_pb_column:nth-child(1) {
  justify-content: center;       /* texte centré verticalement */
  position: absolute;
  top:    var(--txt-top);
  left:   var(--txt-left);
  transform: translateY(-50%);
  width: auto;
}

.et-lb-content-header .et_pb_column:nth-child(2) {
  justify-content: flex-end;     /* bouton poussé en bas */
  align-items: flex-end;         /* bouton poussé à droite */
  position: absolute;
  bottom: var(--btn-bottom);
  right:  var(--btn-right);
}

/* ---------------------------------------------------------------
   2. Lightbox vidéo cachée / ouverture
-----------------------------------------------------------------*/
.et-lb-content-1 {
  visibility: hidden;
  position: fixed !important;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.8);
  z-index: 2147483647 !important; /* remonte au-dessus de tout */
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}

.et-lb-content-1.et-lb-open {
  visibility: visible !important;
}

/* ---------------------------------------------------------------
   3. Contenu de la lightbox : vidéo et bouton de fermeture
-----------------------------------------------------------------*/
/* Vidéo responsive dans la lightbox */
.et-lb-content-1 video,
.et-lb-content-1 iframe {
  max-width: 90%;
  max-height: 90%;
}

/* Bouton « × » */
.et-lb-content-1 .et-lb-close {
  position: absolute;
  top: 0px; 
  right: 0px;
  font-size: 6em;
  color: #790094;
  cursor: pointer;
  z-index: 2147483648 !important;
}



@media (min-width: 768px) {
  .et-lb-col-center .et_pb_row {
    display: flex;
    align-items: center;
  }
}

.et_builder_inner_content {
  background-color: #790094 !important;
}