/* -------------------------------------------------- */
/* 🎥 Vidéo de fond */
/* -------------------------------------------------- */

.video-background-container {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.video-background {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: -1;
}

body {
  position: relative;
  z-index: 0;
}

header {
  position: relative;
  z-index: 1;
}


/* Bandeau défilant */
.scroll-banner {
  width: 100%;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  padding: 10px 0;
  border-top: 2px solid rgba(255,255,255,0.3);
  border-bottom: 2px solid rgba(255,255,255,0.3);
  position: relative;
  z-index: 20;
}

.scroll-content {
  display: inline-block;
  white-space: nowrap;
  padding-left: 100%;
  animation: scroll-left 18s linear infinite;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--beige);
  text-shadow: 0 0 6px rgba(175, 169, 169, 0.5);
}

/* Animation */
@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* -------------------------------------------------- */
/* 🎨 TITRES SPÉCIFIQUES À L’INDEX */
/* -------------------------------------------------- */

.container h2 {
  color: #f5f5dc;
}

/* -------------------------------------------------- */
/* ✨ ANIMATION D’APPARITION PREMIUM */
/* -------------------------------------------------- */

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.block1, .block3 {
  animation: fadeInUp 0.8s ease forwards;
}

/* -------------------------------------------------- */
/* 🧱 STRUCTURE DES 3 BLOCS */
/* -------------------------------------------------- */

.home-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 25px;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
}

.block1 { flex: 0 0 30%; max-width: 30%; }
.block2 { flex: 0 0 35%; max-width: 35%; }
.block3 { flex: 0 0 30%; max-width: 30%; }

.block1, .block2, .block3 {
  background: rgba(60, 59, 59, 0.12);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  backdrop-filter: blur(2px);
  border: 1px solid rgba(255,255,255,0.08);
}

/* -------------------------------------------------- */
/* 📰 BLOC 1 — ACTUALITÉS */
/* -------------------------------------------------- */

.block1 {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.news-item {
  background: rgba(255, 255, 255, 0.08);
  padding: 18px 20px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: 0.25s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.news-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.35);
  background: rgba(255, 255, 255, 0.12);
}

.news-item h3 {
  margin: 0;
  font-size: 1.2em;
  color: #d4f5c0;
  font-weight: 600;
}

.news-item video,
.video-preview {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 8px;
}

/* -------------------------------------------------- */
/* 🎠 BLOC 2 — CARROUSEL */
/* -------------------------------------------------- */

.block2 {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

.carousel-container {
  width: 100%;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.carousel {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 100%;
}

.carousel-slide {
  min-width: 100%;
  position: relative;
}

.carousel-slide img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.carousel-info {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 6px;
  background: rgba(0,0,0,0.45);
  color: white;
  font-size: 0.8em;
  text-align: center;
}
/* couleur nom du lieu ds caroussel*/
.event-name {
  color: white;
  font-weight: 700;
  font-size: 1.2rem;
  text-shadow: 0 1px 3px rgba(0,0,0,0.35);
}


.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #e0a800;
  background: rgba(0,0,0,0.35);
  border: none;
  cursor: pointer;
  font-size: 1.6rem;
  padding: 8px 12px;
  border-radius: 6px;
  z-index: 10;
  transition: 0.3s ease;
}

.carousel-control:hover {
  background: rgba(0,0,0,0.55);
}

.prev { left: 10px; }
.next { right: 10px; }

/* -------------------------------------------------- */
/* 🏆 BLOC 3 — PODIUM (version mise en valeur) */
/* -------------------------------------------------- */

.block3 {
  display: flex;
  flex-direction: column;
  gap: 20px;

  background: rgba(0, 0, 0, 0.55);   /* 🔥 Fond sombre */
  color: #fff;                       /* 🔥 Texte blanc */
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.35);
  backdrop-filter: blur(4px);        /* 🔥 Effet verre */
}

/* Image podium */
.block3 .block-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

/* Titre podium */
.block3 h2 {
  color: #fff;
  background: rgba(255,255,255,0.15);
  padding: 10px 15px;
  border-radius: 6px;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.4);
}

/* Texte plus aéré */
.block3 p {
  color: #f5f5f5;
  line-height: 1.8;          /* 🔥 Aération verticale */
  font-size: 1.05rem;
  letter-spacing: 0.3px;     /* 🔥 Lecture plus douce */
  margin-top: 10px;
}

.block3 p br {
  margin-bottom: 10px;       /* 🔥 Aère les sauts de ligne */
  display: block;
  content: "";
}

/* Bouton podium */
.block3 .button {
  background: linear-gradient(135deg, #7bb6e0, #042e54);
  color: white;
  font-weight: 600;
  border-radius: 8px;
  padding: 12px 20px;
  display: inline-block;
  margin: 1rem 0;
  transition: 0.3s ease;
}

.block3 .button:hover {
  transform: translateY(-3px);
  background: linear-gradient(135deg, #9cd0ff, #064070);
}

/* -------------------------------------------------- */
/* 📱 Responsive */
/* -------------------------------------------------- */

@media (max-width: 1024px) {
 .home-container {
    flex-wrap: wrap;
    gap: 20px;
  }

  .block1, .block3 {
    flex: 0 0 48%;
    max-width: 48%;
  }

  .block2 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .block3 .block-image {
    height: 260px;
  }
}

@media (max-width: 767px) {
  .home-container{
    flex-direction: column;
    gap: 25px;
  }

  .scroll-content {
    animation-duration: 25s;
    font-size: 1rem;
  }
  .block1, .block2, .block3 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .block3 .block-image {
    height: 220px;
  }

  .news-item h3 {
    font-size: 1.1em;
  }

}
