/* ===============================
   GLOBAL
================================ */

html {
  scroll-padding-top: 140px;
}

body {
  background-image: url("../elements/texture-terre.png");
  background-repeat: repeat;
}


.videos-section {
  padding: clamp(8rem, 12vw, 12rem) 0;
  background: rgba(0, 0, 0, 0.5); /* ajuste ici */
}

/* ===============================
   TITRE PAGE
================================ */

.videos-section h1 {
  text-align: center;
  font-family: 'Minecraft', sans-serif;
  margin-bottom: clamp(4rem, 8vw, 6rem);
}

/* ===============================
   ROW VIDEO (GRID)
================================ */

.video-row {
    display: grid;
    grid-template-columns: 1.1fr 1.9fr;
    gap: clamp(2rem, 4vw, 4rem);
    align-items: stretch;
    width: 100%;
    margin: clamp(4rem, 8vw, 6rem) 0;
    padding: 0 5%;
    align-content: stretch;
    justify-content: center;
    justify-items: stretch;
}


/* inversion image / texte */
.video-row.reverse {
  grid-template-columns: 1.9fr 1.1fr;
  border-radius: 16px;
}

.video-row.reverse .video-thumb {
  order: 2;
}

.video-row.reverse .video-info {
  order: 1;
}




/* ===============================
   IMAGE
================================ */

.video-thumb {
  display: flex;
  width: 100%;
  height: 100%; /* occupe toute la hauteur du row */
}

.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* remplissage complet sans espace noir */
  border-radius: 14px;
  cursor: pointer;
}


/* ===============================
   TEXTE
================================ */

.video-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: auto;
  background-color: #091623;
  border-radius: 14px;
}

.video-info h2 {
  font-family: 'Minecraft', sans-serif;
  font-size: clamp(2rem, 3.5vw, 2.6rem);
  margin-bottom: 0.5em;
}

.video-info h3 {
  font-size: clamp(1.3rem, 2.5vw, 1.6rem);
  opacity: 0.85;
  margin-bottom: 1.2em;
}

.video-info p {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  line-height: 1.6;
  max-width: 65ch;
}


/* ===============================
    POP UP
================================ */

.video-popup iframe {
    width: 90%;
    height: 800px;
    border-radius: 10px;
}

.video-popup-content{
  max-width: none;
  text-align: center;
}

/* ===============================
   BOUTON TARIFS
================================ */

.tarifs-container {
  text-align: center;
  margin-top: clamp(4rem, 8vw, 6rem);
}

.voir-tarifs-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: clamp(1.5rem, 3vw, 2.2rem)
           clamp(3rem, 6vw, 4.5rem);

  font-family: 'Minecraft', sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.3rem);

  background-color: #2A2359;
  color: #fff;
  text-decoration: none;

  border-radius: 14px;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.voir-tarifs-btn:hover {
  background-color: #1d183d;
  color: #fff;
  transform: scale(1.06);
}

/* ===============================
   RESPONSIVE MOBILE
================================ */

@media (max-width: 768px) {
  h1 {
        font-size: 4.5rem;
        margin-top: 100px;
    }

  .video-row,
  .video-row.reverse {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 0 1.5rem;
  }

  .video-info {
    text-align: center;
    width: auto !important;
  }

  .video-info p {
    max-width: 100%;
  }
}

/* RESPONSIVE AJUSTEMENTS */
@media (max-width: 1280px) {
    h1 {
        font-size: 7rem;
        margin-top: 200px;
    }
}
@media (max-width: 480px) {
  h1 {
        font-size: 3rem;
        margin-top: 100px;
    }
  }