#videos {
  scroll-margin-top: 40px; /* Ajustez cette valeur en fonction de la hauteur de votre en-tête */}   

.collectif {
  background-color: var(--beige);
  position: relative;
  overflow: hidden;
  padding: 6rem 2rem;
  margin-bottom: -1rem;
}

.collectif h1 {
  color: var(--bordeaux);  
  font-family: "Lobster", cursive;
  font-size: 2rem;
  margin-bottom: 0.5rem;
  text-align: center;

}

span.h2-collectif {
  color: #000;
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 2rem;
}

.collectif p {
  max-width: 900px;
  margin: 1rem auto;
  line-height: 1.8;
  color: #000;
  text-align: justify;
}

.btn-container {
  display: flex;
  justify-content: center;
}

.btn-devis {
  width: 200px;
  text-align: center;
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  margin-top: 2rem;
  background-color: var(--bordeaux);
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
  text-align: center;

}

.btn-devis:hover {
  background-color: var(--ocre);
  transform: scale(1.05);
}

.video-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 3rem;
}

.video-item iframe {
  width: 350px;
  height: 200px;
  border-radius: 10px;
}

.container {
  position: relative; /* pour positionner l'overlay */
  display: flex;
  flex-direction: column;
  gap: 6rem;

}

.bal-block {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1.5rem;
  align-items: center;
}

.bal-images img {
  width: 220px;
  border-radius: 8px;
  object-fit: cover;
}

.bal-paragraph-collectif {
  background-image: url(../img/bal-mobile/fond.avif);
  position: relative;
  overflow: hidden;
  padding: 25px 30px;
  border-radius: 12px;
  max-width: 500px;
  text-align: justify;
  color: #000;
  z-index: 1;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}



.bal-paragraph-collectif::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(250, 235, 215, 0.87);
  z-index: -1;
}

.bal-paragraph-collectif h3 {
  text-align: center;
  font-family: var(--font-title);
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: var(--bordeaux);
}

.bal-paragraph-collectif p {
  margin-bottom: 15px;
  line-height: 1.6;
}

.bal-images img {
  width: 100%;
  max-width: 400px;
  border-radius: 10px;
}

.fa-file-signature {
  margin-left: 8px;
}

.videos {
  background-color: var(--bordeaux);
  margin-top: 2rem;
}

h1.h1-videos {
  margin-top: -2rem;
  padding: 2.5rem;
  font-family: "Lobster", cursive;
  font-size: 2rem;
  color: var(--beige);
  text-align: center;
  margin-bottom: 1rem;
}
p.p-videos {
  max-width: 800px;
  margin: auto 2rem auto;
  color: var(--bordeaux);
  line-height: 1.6;
  text-align: justify;
  padding: 1rem;
  background-color: var(--beige);
  border-radius: 12px;
  
}



.divider-videos {
  width: 100%;
  height: 4px;
  background-color: var(--beige);
  border-radius: 2px;
}

@media (min-width: 768px) {
 .bal-block {
    grid-template-columns: 1fr;
  }
  .bal-images img {
    width: 100%;
    max-width: 320px;
    margin: 0 auto 1rem auto;
    display: block;
  }
  .bal-paragraph p {
    text-align: center;
  }

  .video-item iframe {
    width: 549px;
    height: 290px;
  }

  p.p-videos { 
    margin: 0 auto 2rem auto;
  }
}