/* ==============================================
   STYLE_ISOLATED.CSS — KEURBANTOU / EPNA2
   CSS extrait et isolé depuis le fichier HTML
   Organisé par sections logiques
   ============================================== */


/* ===========================
   1. RESET & BASE
=========================== */
* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  font-family: 'Lato', sans-serif;
}


/* ===========================
   2. HEADER
=========================== */
header {
  position: fixed;
  top: 0;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(to right, #0077b6, #00a676);
  color: white;
  padding: 10px 20px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
  z-index: 1000;
}

@media screen and (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px;
  }

  .logo {
    justify-content: center;
    width: 100%;
    margin-bottom: 10px;
  }

  .center-content {
    width: 100%;
    text-align: left;
  }

  .logo-text {
    display: inline-block;
  }
}

@media screen and (max-height: 450px) {
  .overlay a {
    font-size: 20px;
  }
  .overlay .closebtn {
    font-size: 40px;
    top: 15px;
    right: 35px;
  }
}


/* ===========================
   3. SLIDESHOW BANDEAU (.mySlides)
=========================== */
.slideshow-container {
  position: relative;
  max-width: 800px;
  margin: auto;
}

.mySlides {
  display: none;
  width: 100%;
}

.mySlides img {
  width: 100%;
  height: auto;
}

.caption {
  color: #f2f2f2;
  font-size: 20px;
  padding: 8px 12px;
  position: absolute;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  width: 100%;
  text-align: center;
}

.dots {
  text-align: center;
  margin-top: 10px;
}

.dots span {
  cursor: pointer;
  height: 12px;
  width: 12px;
  margin: 0 5px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.active,
.dots span:hover {
  background-color: #717171;
}


/* ===========================
   4. BLOCS GÉNÉRIQUES
=========================== */
.section-wrapper {
  width: 100%;
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 20px;
}

.main-block {
  margin-bottom: 40px;
  text-align: center;
}

.block-title {
  font-size: 1.8em;
  margin-bottom: 20px;
  color: #0077b6;
}

.sub-blocks {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
}

.sub-block {
  flex: 1 1 30%;
  background-color: #f2f2f2;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  min-width: 250px;
}

.sub-block h3 {
  margin-top: 0;
  color: #00a676;
}

.sub-block p {
  font-size: 0.95em;
  line-height: 1.6;
}

@media screen and (max-width: 768px) {
  .sub-blocks {
    flex-direction: column;
    align-items: center;
  }

  .sub-block {
    width: 100%;
  }
}


/* ===========================
   5. ÉVÉNEMENTS
=========================== */
.event-blocks {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  margin-top: 30px;
}

.event-item {
  position: relative;
  width: 100%;
  max-width: 700px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.event-item img {
  width: 100%;
  height: auto;
  display: block;
}

.event-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent 70%);
  color: #fff;
  font-size: 0.95em;
}

.event-date {
  font-weight: bold;
}

.event-title {
  text-align: right;
}

.event-title a {
  color: #ffeb3b;
  margin-left: 10px;
  text-decoration: underline;
  font-weight: bold;
  font-size: 0.9em;
}

@media screen and (max-width: 768px) {
  .event-blocks {
    gap: 20px;
  }

  .event-overlay {
    flex-direction: column;
    align-items: flex-start;
  }

  .event-title {
    margin-top: 8px;
  }
}


/* ===========================
   6. CAROUSEL D'ACTUALITÉS
=========================== */
.carousel-container {
  position: relative;
  max-width: 800px;
  margin: 40px auto;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.carousel-slide {
  display: none;
  animation: fade 1s ease-in-out;
}

.carousel-slide.active {
  display: block;
}

.carousel-slide img {
  width: 100%;
  height: auto;
  display: block;
}

.carousel-caption {
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  padding: 15px;
}

.carousel-caption h3 {
  margin: 0 0 10px;
  color: #ffeb3b;
}

.carousel-caption a {
  color: #ffeb3b;
  text-decoration: underline;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.4);
  color: white;
  border: none;
  padding: 10px;
  font-size: 1.5em;
  cursor: pointer;
  z-index: 10;
}

.carousel-btn:hover {
  background: rgba(0,0,0,0.7);
}

.carousel-btn.prev {
  left: 10px;
}

.carousel-btn.next {
  right: 10px;
}

@keyframes fade {
  from { opacity: 0.4; }
  to   { opacity: 1; }
}

@media screen and (max-width: 768px) {
  .carousel-caption {
    font-size: 0.9em;
    padding: 10px;
  }
}

#main-block2 {
  display: none;
}

.bantu-container {
  text-align: justify;
  width: 75%;
  margin-left: 12.5%;
  margin-right: 12.5%;
}

.first-speech p {
  font-style: italic;
  padding-left: 9px;
}

.first-speech {
  border-left: 6px solid rgb(0, 111, 0);
}


/* ===========================
   7. MENU OVERLAY
=========================== */
#overlay-menu-container * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

#menu-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1001;
  background: #333;
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
  touch-action: manipulation;
}

#menu-toggle:hover {
  background: #555;
  transform: scale(1.05);
}

#menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  margin: 2px 0;
  background: white;
  transition: all 0.3s ease;
}

#menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

#menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

#menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

#menu-logo {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1001;
  max-width: 150px;
  max-height: 60px;
}

#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#overlay.active {
  opacity: 1;
  visibility: visible;
}

#overlay-menu {
  text-align: center;
  margin-bottom: 40px;
}

#overlay-menu ul {
  list-style: none;
}

#overlay-menu li {
  margin: 20px 0;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
}

#overlay.active #overlay-menu li {
  opacity: 1;
  transform: translateY(0);
}

#overlay.active #overlay-menu li:nth-child(1) { transition-delay: 0.1s; }
#overlay.active #overlay-menu li:nth-child(2) { transition-delay: 0.2s; }
#overlay.active #overlay-menu li:nth-child(3) { transition-delay: 0.3s; }
#overlay.active #overlay-menu li:nth-child(4) { transition-delay: 0.4s; }
#overlay.active #overlay-menu li:nth-child(5) { transition-delay: 0.5s; }
#overlay.active #overlay-menu li:nth-child(6) { transition-delay: 0.6s; }

#overlay-menu a {
  color: white;
  text-decoration: none;
  font-size: 2rem;
  font-weight: 300;
  padding: 10px 20px;
  display: inline-block;
  position: relative;
  transition: all 0.3s ease;
}

#overlay-menu a:hover {
  color: #ff5252;
}

#overlay-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: #ff5252;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

#overlay-menu a:hover::after {
  width: 100%;
}

#overlay-contact {
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
}

#overlay.active #overlay-contact {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.7s;
}

#overlay-contact .phone {
  color: white;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

#overlay-contact .phone i {
  margin-right: 10px;
  color: #ff5252;
}

#overlay-contact .phone p {
  margin: 5px 0;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background: #ff5252;
  transform: translateY(-5px);
}

@media (max-width: 768px) {
  #overlay-menu a        { font-size: 1.5rem; }
  #menu-toggle           { top: 15px; right: 15px; width: 40px; height: 40px; }
  #menu-logo             { max-width: 120px; top: 15px; left: 15px; }
  #overlay-contact .phone { font-size: 1.2rem; }
  .social-icons a        { width: 40px; height: 40px; font-size: 1.2rem; }
}

@media (max-width: 480px) {
  #overlay-menu a { font-size: 1.3rem; }
  #menu-logo      { max-width: 100px; }
}


/* ===========================
   8. HERO SLIDESHOW (.custom-slideshow)
=========================== */
.custom-slideshow {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.custom-slideshow .cs-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 2s ease-in-out;
}

.custom-slideshow .cs-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.1) translateX(-30px);
  animation: cs-moveZoom 20s linear infinite;
}

@keyframes cs-moveZoom {
  0%   { transform: scale(1.1) translateX(-30px); }
  50%  { transform: scale(1.15) translateX(30px); }
  100% { transform: scale(1.1) translateX(-30px); }
}

.custom-slideshow .cs-active {
  opacity: 1;
  z-index: 1;
}

.custom-slideshow .cs-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.3);
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
}

.custom-slideshow .cs-overlay img {
  max-width: 200px;
  width: 30%;
  height: auto;
  filter: drop-shadow(0 0 8px rgba(0,0,0,0.3));
}

@media (max-width: 768px) {
  .custom-slideshow .cs-overlay img { max-width: 150px; width: 40%; }
}

@media (max-width: 480px) {
  .custom-slideshow .cs-overlay img { max-width: 120px; width: 50%; }
}


/* ===========================
   9. SECTION BIENVENUE
=========================== */
.welcome-section {
  position: relative;
  padding: 2.5rem 1rem;
  border-radius: 1.2rem;
  margin: 2rem auto;
  max-width: 850px;
  font-family: "Segoe UI", Roboto, sans-serif;
  color: #fff;
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.9s ease;
  background: url("LJHAE7.png") center/cover no-repeat;
}

.welcome-section.show {
  opacity: 1;
  transform: translateY(0);
}

.welcome-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(6px);
  z-index: 0;
}

.welcome-container {
  position: relative;
  text-align: center;
  z-index: 1;
}

.welcome-title {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.welcome-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  margin: 0.4rem auto 0;
  background: #f1c40f;
  border-radius: 2px;
}

.welcome-text {
  font-size: 1rem;
  margin: 0.8rem auto;
  line-height: 1.5;
  max-width: 650px;
}

.welcome-quote {
  font-size: 1.1rem;
  font-style: italic;
  margin-top: 1.5rem;
  font-weight: 500;
  color: #f9e79f;
}


/* ===========================
   10. SECTION PRÉSENTATION
=========================== */
.presentation-section {
  position: relative;
  background: url('LJHAE7.png') center/cover no-repeat;
  padding: 60px 20px;
}

.presentation-overlay {
  background: rgba(255, 255, 255, 0.7);
  padding: 40px;
  border-radius: 20px;
}

.presentation-title {
  text-align: center;
  font-size: 2.2em;
  margin-bottom: 30px;
  font-weight: bold;
  opacity: 0;
  transform: translateY(20px);
  transition: all 1s ease;
}

.presentation-title.visible {
  opacity: 1;
  transform: translateY(0);
}

.presentation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.presentation-item {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
}

.presentation-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 15px;
  transition: transform 0.4s ease;
}

.presentation-item:hover img {
  transform: scale(1.05);
}

.presentation-item .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2em;
  font-weight: bold;
  border-radius: 15px;
  text-align: center;
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.presentation-section a {
  text-decoration: none;
}

.presentation-section a:visited {
  text-decoration: none;
  color: white;
}


/* ===========================
   11. SECTION AGENDA
=========================== */
.news-section {
  position: relative;
  padding: 2.5rem 1rem 3.5rem;
  border-radius: 1.2rem;
  margin: 2rem auto;
  max-width: 850px;
  font-family: "Segoe UI", Roboto, sans-serif;
  color: #fff;
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.9s ease;
  background: url("https://images.unsplash.com/photo-1523580494863-6f3031224c94") center/cover no-repeat;
}

.news-section.show {
  opacity: 1;
  transform: translateY(0);
}

.news-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);
  z-index: 0;
}

.news-container {
  position: relative;
  text-align: center;
  z-index: 1;
}

.news-title {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.news-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  margin: 0.4rem auto 0;
  background: #e67e22;
  border-radius: 2px;
}

.news-text {
  font-size: 1rem;
  margin: 0.8rem auto;
  line-height: 1.5;
  max-width: 650px;
}

.news-more {
  position: relative;
  background: rgba(230, 126, 34, 0.9);
  color: #fff;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 0.8rem;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.3s ease, transform 0.2s ease;
}

.news-more:hover {
  background: #e67e22;
  transform: translateY(-2px);
}


/* ===========================
   12. SECTION ACTUALITÉS
=========================== */
.actualites-section {
  position: relative;
  background: url('LJHAE5.jpg') center/cover no-repeat;
  padding: 60px 20px;
}

.actualites-overlay {
  background: rgba(255, 255, 255, 0.7);
  padding: 40px;
  border-radius: 20px;
}

.actualites-title {
  text-align: center;
  font-size: 2.2em;
  margin-bottom: 30px;
  font-weight: bold;
  opacity: 0;
  transform: translateY(20px);
  transition: all 1s ease;
}

.actualites-title.visible {
  opacity: 1;
  transform: translateY(0);
}

.actualites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.actualites-item {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
}

.actualites-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 15px;
  transition: transform 0.4s ease;
}

.actualites-item:hover img {
  transform: scale(1.05);
}

.actualites-inner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2em;
  font-weight: bold;
  border-radius: 15px;
  text-align: center;
  opacity: 1;
}

.fade-in-actualites {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease;
}

.fade-in-actualites.visible {
  opacity: 1;
  transform: translateY(0);
}

.actualites-section a {
  text-decoration: none;
}

.actualites-section a:visited {
  text-decoration: none;
  color: white;
}




.footer-modern {
  background: linear-gradient(to right, #0077b6, #00a676);
  color: white;
  padding: 40px 20px 20px;
  font-family: 'Lato', sans-serif;
}

.footer-container {
  max-width: 1100px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
}

.footer-col h3,
.footer-col h4 {
  margin-bottom: 15px;
}

.footer-col p {
  font-size: 0.9rem;
  line-height: 1.5;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  color: white;
  text-decoration: none;
  transition: 0.3s;
}

.footer-col ul li a:hover {
  color: #ffeb3b;
}

.socials {
  display: flex;
  gap: 15px;
}

.socials a {
  color: white;
  font-size: 1.2rem;
  transition: 0.3s;
}

.socials a:hover {
  color: #ffeb3b;
  transform: scale(1.2);
}

.footer-bottom {
  text-align: center;
  margin-top: 30px;
  font-size: 0.85rem;
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 15px;
}