/* Section À la une */
.a-la-une {
  padding: 40px 20px;
  background: #f9f9f9;
}
.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 30px;
  color: #14532d;
}
.a-la-une-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.a-la-une-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.a-la-une-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}
.a-la-une-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(20,83,45,0.85);
  color: #fff;
  padding: 15px;
}
.a-la-une-overlay h3 {
  margin: 0 0 5px;
  font-size: 1.2rem;
}
.a-la-une-overlay h3 a {
  color: #fff;
  text-decoration: none;
}
.more-link {
  display: inline-block;
  margin-top: 5px;
  font-size: 0.9rem;
  font-weight: bold;
  text-decoration: none;
  color: #fff;
  opacity: 0.9;
}

/* Carrousel Section */
.carousel-section {
  padding: 0;
  background: #f0f4f8;
}

/* Container */
.carousel-container {
  position: relative;
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(0,0,0,0.18);
}

/* Slide */
.carousel-slide {
  display: none;
  position: relative;
  transition: opacity 1s ease-in-out;
}
.carousel-slide img {
  width: 100%;
  height: 80vh;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.carousel-slide img:hover {
  transform: scale(1.05);
}

/* Caption */
.carousel-caption {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, rgba(20,83,45,0.85), rgba(250,204,21,0.85), rgba(30,64,175,0.85));
  color: #fff;
  padding: 16px 24px;
  border-radius: 12px;
  text-align: center;
  max-width: 85%;
  transition: transform 0.3s ease, background 0.3s ease;
}
.carousel-caption h3 {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 700;
}
.carousel-caption a {
  color: #fff;
  text-decoration: none;
}
.carousel-caption:hover {
  transform: translateY(-5px);
  background: linear-gradient(135deg, rgba(20,83,45,1), rgba(250,204,21,1), rgba(30,64,175,1));
}

/* Navigation Buttons */
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  padding: 16px;
  margin-top: -24px;
  color: white;
  font-weight: bold;
  font-size: 32px;
  border-radius: 50%;
  background: rgba(20,83,45,0.7);
  user-select: none;
  transition: all 0.3s ease;
}
.prev:hover, .next:hover {
  background: rgba(20,83,45,1);
  transform: scale(1.1);
}
.prev { left: 20px; }
.next { right: 20px; }

/* Dots */
.carousel-dots {
  text-align: center;
  padding: 16px;
}
.dot {
  cursor: pointer;
  height: 16px;
  width: 16px;
  margin: 0 6px;
  background: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.3s, transform 0.3s;
}
.active, .dot:hover {
  background-color: #14532d;
  transform: scale(1.2);
}

/* Overlay semi-transparent */
.carousel-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.35); /* semi-transparent noir */
  transition: background 0.3s ease;
}

/* Caption au-dessus de l'overlay */
.carousel-caption {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  padding: 16px 24px;
  max-width: 85%;
  text-align: center;
  z-index: 2;
  background: rgba(20,83,45,0.6); /* léger vert transparent */
}

/* Bouton pause/play */
.carousel-toggle {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 3;
  background: rgba(20,83,45,0.8);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 24px;
  padding: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.carousel-toggle:hover {
  background: rgba(20,83,45,1);
  transform: scale(1.1);
}


/* Responsive Tablette */
@media(max-width: 992px) {
  .carousel-slide img { height: 50vh; }
  .carousel-caption h3 { font-size: 1.3rem; }
  .prev, .next { font-size: 28px; padding: 12px; }
}

/* Responsive Mobile */
@media(max-width: 576px) {
  .carousel-slide img { height: 40vh; }
  .carousel-caption { padding: 10px 14px; }
  .carousel-caption h3 { font-size: 1.1rem; }
  .prev, .next { font-size: 22px; padding: 8px; }
}





/* =====================
   RESET & BASE
===================== */
* {margin:0; padding:0; box-sizing:border-box;}
body {
  font-family:"Poppins", sans-serif;
  background:#f0f4f8;
  color:#1f2937;
  line-height:1.7;
  font-size:16px;
}

/* =====================
   CONTAINER PRINCIPAL
===================== */
.event-container {
  max-width: 1200px;
  margin: 3rem auto;
  display: flex;
  flex-direction: column;
  gap: 4rem;
  padding: 0 1rem;
}

/* =====================
   HEADER
===================== */
.event-header {
  text-align:center;
  padding:2rem 1rem;
  background: linear-gradient(135deg,#14532d,#facc15,#1e40af); /* vert, jaune, bleu */
  border-radius:24px;
  color:#fff;
  box-shadow:0 12px 36px rgba(0,0,0,0.15);
  position: relative;
  z-index: 1;
}
.event-header h1 {
  font-size:3.4rem;
  font-weight:900;
  margin-bottom:0.5rem;
  line-height:1.2;
  animation: fadeInDown 1s ease forwards;
}
.event-header .subtitle {
  font-size:1.2rem;
  font-weight:600;
  color:#fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
  animation: fadeIn 1.2s ease forwards;
}
.event-date {
  font-size:1rem;
  font-weight:500;
  opacity:0.9;
  margin-top:0.5rem;
  animation: fadeIn 1.4s ease forwards;
}

/* =====================
   IMAGE PRINCIPALE
===================== */
.event-main-image-section {
  position:relative;
}
.event-main-image {
  width:100%;
  max-height:520px;
  object-fit:cover;
  border-radius:24px;
  box-shadow:0 14px 40px rgba(0,0,0,0.18);
  transition: transform 0.4s ease, filter 0.3s ease;
}
.event-main-image:hover {
  transform: scale(1.04);
  filter: brightness(0.95);
}

/* =====================
   CONTENU STRUCTURÉ
===================== */
/* =====================
   CARTES ÉLÉGANTES
===================== */
.event-section {
  background: linear-gradient(135deg, #14532d20, #facc1520, #1e40af20); /* fond dégradé subtil */
  padding:2rem;
  border-radius:24px;
  box-shadow:0 14px 36px rgba(0,0,0,0.12);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  overflow: hidden;
}
.event-section:hover {
  transform: translateY(-6px);
  box-shadow:0 18px 44px rgba(0,0,0,0.18);
}
.event-small-title {
  font-size:1.8rem;
  font-weight:700;
  color:#14532d; /* vert pour le titre */
  margin-bottom:0.8rem;
  position:relative;
}
.event-small-title::after {
  content:"";
  display:block;
  width:60px;
  height:4px;
  background: linear-gradient(90deg,#14532d,#facc15,#1e40af); /* barre dégradée */
  border-radius:2px;
  margin-top:6px;
}
.event-section p {
  color:#1f2937;
  line-height:1.75;
  font-size:1.05rem;
}

.event-section p strong {color:#1e40af;} /* bleu pour accent */

/* =====================
   VIDÉO
===================== */
.event-video {
  position:relative;
  padding-bottom:40%;
  height:0;
  overflow:hidden;
  border-radius:20px;
  box-shadow:0 12px 36px rgba(0,0,0,0.12);
  transition: transform 0.3s ease;
  width: 70%;        /* ➝ ajoute ou modifie cette ligne */
  margin: 0 auto;    /* ➝ pour centrer horizontalement */
}
.event-video iframe {
  position:absolute;
  top:0; left:0;
  width:100%; height:100%;
  border:none;
  border-radius:20px;
}

/* =====================
   GALERIE
===================== */
.event-gallery {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:20px;
}
.event-gallery img {
  width:100%;
  height:220px;
  object-fit:cover;
  border-radius:16px;
  box-shadow:0 12px 32px rgba(0,0,0,0.15);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.event-gallery img:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow:0 16px 44px rgba(0,0,0,0.18);
}

/* =====================
   ANIMATIONS
===================== */
@keyframes fadeInDown {
  0% {opacity:0; transform:translateY(-20px);}
  100% {opacity:1; transform:translateY(0);}
}
@keyframes fadeIn {
  0% {opacity:0;}
  100% {opacity:1;}
}

/* =====================
   RESPONSIVE TABLETTE
===================== */
@media(max-width:992px){
  .event-header h1{font-size:2.8rem;}
  .event-header .subtitle{font-size:1.1rem;}
  .event-main-image{max-height:420px;}
  .event-section h2.event-small-title{font-size:1.5rem;}
  .event-section p{font-size:1rem;}
  .event-gallery{grid-template-columns:repeat(2,1fr);}
}

/* =====================
   RESPONSIVE MOBILE
===================== */
@media(max-width:768px){
  .event-header h1{font-size:2.2rem;}
  .event-header .subtitle{font-size:1rem;}
  .event-date{font-size:0.9rem;}
  .event-main-image{max-height:280px;}
  .event-section h2.event-small-title{font-size:1.3rem;}
  .event-section p{font-size:0.95rem;}
  .event-gallery{grid-template-columns:1fr;}
}
