
* {
    box-sizing: border-box;
}

body, html {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
    height: 100%;
}

/* ======== HEADER ======== */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    /* background: rgba(0,0,0,0.5); */
     background: #0D4A7A;
    z-index: 999;
    height: 60px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    width: 40px;
    height: 40px;
}

.logo h1 {
    color: white;
    font-size: 1.2em;
}

.navbar ul {
    list-style: none;
    display: flex;
    gap: 25px;
    margin: 0;
    padding: 0;
    
}

.navbar a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: 0.3s;
}

.navbar a:hover {
    color: #FFD700;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle span {
    background: white;
    height: 3px;
    width: 25px;
    margin: 4px;
    border-radius: 5px;
    transition: 0.3s;
}

/* ======== HERO ======== https://images.unsplash.com/photo-1507525428034-b723cf961d3e*/
.hero {
    position: relative;
    background: url('https://res.cloudinary.com/dczpzdw7y/image/upload/v1762084901/540514494_122112264338967875_3198462232955067745_n_ecsuzp.jpg') no-repeat center center/cover;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /*background: rgba(47, 46, 46, 0.6);  sombre sur TOUTE l’image */
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    text-align: center;
    padding: 20px;
    max-width: 700px;
}

.hero-content h2 {
    font-size: 2.5em;
    margin-bottom: 15px;
}

.hero-content p {
    font-size: 1.1em;
    margin-bottom: 25px;
}

.btn {
    background-color: #0D4A7A;
    color: #ffffff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 25px;
    transition: 0.3s;
}

.btn:hover {
    background-color: #fff;
    color: #000;
}

/* ======== SECTIONS ======== */
.fade-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

.section-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    text-align: center;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 30px;
    align-items: start;
}

.card {
    /* background: #ffffff; */
    background: #0D4A7A;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    text-align: left;
}

.card h3 {
    margin-top: 0;
    margin-bottom: 10px;
    /* color: #222; */
    color: white;
}

.card p {
    margin: 0;
    /* color: #444; */
    color: white;
    line-height: 1.5;
}

/* ======== FOOTER ======== */
footer {
    text-align: center;
    padding: 20px;
    background-color: #0D4A7A;
    color: white;
}

/* ======== MOBILE ======== */
@media (max-width: 768px) {
    .navbar {
        position: fixed;
        top: 60px;
        right: -100%;
        width: 200px;
        background-color: #0D4A7A;
        height: calc(100vh - 60px);
        transition: right 0.3s ease;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 999;
    }

    .navbar.active {
        right: 0;
    }

    .navbar ul {
        flex-direction: column;
        gap: 20px;
    }

    .menu-toggle {
        display: flex;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

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

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .card-grid {
        grid-template-columns: 1fr; /* ✅ une seule colonne sur mobile */
    }

    .hero-content h2 {
        font-size: 1.8em;
    }

    .hero-content p {
        font-size: 1em;
    }
}

/* ======== SCROLL GLOBAL ======== */
html, body {
    overflow-y: auto;
    height: 100%;
}




.sermon-section {
    padding: 40px 20px;
    max-width: 1200px;
    margin: auto;
    
}
.sermon{
  background:  #0D4A7A;
}

.sermon-section h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2em;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.video-card iframe {
    width: 100%;
    height: 200px;
}

.video-card h3 {
    text-align: center;
    margin-top: 10px;
    font-size: 1em;
}


@media (max-width: 768px) {
    .video-grid {
        grid-template-columns: 1fr;
    }

    .video-card iframe {
        height: 180px;
    }
}







/* === About Us Section === #f9fafb*/
.about-section {
  background:#f9fafb ;
  padding: 80px 20px;
  display: flex;
  justify-content: center;
}

.about-content {
  display: flex;
  align-items: flex-start;
  max-width: 1100px;
  width: 100%;
  gap: 25px;
}

.about-line {
  width: 6px;
  background: linear-gradient(180deg, #004aad, #007bff);
  border-radius: 3px;
  height: auto;
  min-height: 100%;
  flex-shrink: 0;
}

.about-text {
  flex: 1;
}

.about-text h2 {
  font-size: 2.2em;
  color: #004aad;
  margin-bottom: 20px;
  font-weight: 700;
}

.about-text p {
  font-size: 1.15em;
  line-height: 1.8;
  color: #333;
  text-align: justify;
  background: #ffffff;
  padding: 25px 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

/* === Responsive (mobile) === */
@media (max-width: 768px) {
  .about-section {
    padding: 60px 15px;
  }

  .about-content {
    flex-direction: row; /* on garde le trait à gauche */
    align-items: flex-start;
    gap: 15px;
  }

  .about-line {
    width: 5px;
    height: auto;
    background: linear-gradient(180deg, #004aad, #007bff);
  }

  .about-text {
    flex: 1;
  }

  .about-text h2 {
    font-size: 1.6em;
  }

  .about-text p {
    font-size: 1em;
    padding: 20px;
    text-align: left;
  }
}










/* === Our Belief Section === */
.belief-section {
  background: #f9fafb;
  padding: 80px 20px;
  display: flex;
  justify-content: center;
}

.belief-content {
  display: flex;
  align-items: flex-start;
  max-width: 1100px;
  width: 100%;
  gap: 25px;
}

.belief-line {
  width: 6px;
  background: linear-gradient(180deg, #004aad, #007bff);
  border-radius: 3px;
  height: auto;
  min-height: 100%;
  flex-shrink: 0;
}

.belief-text {
  flex: 1;
}

.belief-text h2 {
  font-size: 2.2em;
  color: #0D4A7A;
  margin-bottom: 20px;
  font-weight: 700;
}

.belief-text p {
  font-size: 1.15em;
  line-height: 1.8;
  color: #333;
  text-align: justify;
  background: #ffffff;
  padding: 25px 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

/* === Responsive (mobile) === */
@media (max-width: 768px) {
  .belief-section {
    padding: 60px 15px;
  }

  .belief-content {
    flex-direction: row; /* on garde le trait à gauche */
    align-items: flex-start;
    gap: 15px;
  }

  .belief-line {
    width: 5px;
    height: auto;
    background: linear-gradient(180deg, #004aad, #007bff);
  }

  .belief-text {
    flex: 1;
  }

  .belief-text h2 {
    font-size: 1.6em;
  }

  .belief-text p {
    font-size: 1em;
    padding: 20px;
    text-align: left;
  }
}


/* Section 1 */
#section1 {
  position: relative;
  background: linear-gradient(180deg, #a8eafc 0%, #eaf6ff 100%);
  padding: 100px 20px 0 20px;
  overflow: hidden;
}

#section1 .wave-separator {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 120px;
  line-height: 0;
  transform: translateY(1px);
}

#section1 .wave-separator svg {
  display: block;
  width: 100%;
  height: 100%;
}



#section3 {
  position: relative;
  background: linear-gradient(180deg, #a8eafc 0%, #eaf6ff 100%);
  padding: 100px 20px 0 20px;
  overflow: hidden;
}
.wave-separator {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 120px;
  line-height: 0;
  transform: translateY(1px);
}

.wave-separator svg {
  display: block;
  width: 100%;
  height: 100%;
}




/* Animation des vagues */
.wave-separator path {
  animation: waveMove 3s ease-in-out infinite;
}

@keyframes waveMove {
  0% { d: path("M0,160L60,149.3C120,139,240,117,360,122.7C480,128,600,160,720,170.7C840,181,960,171,1080,149.3C1200,128,1320,96,1380,80L1440,64L1440,320L0,320Z"); }
  50% { d: path("M0,170L60,160C120,150,240,130,360,135C480,140,600,170,720,180C840,190,960,180,1080,160C1200,140,1320,110,1380,90L1440,70L1440,320L0,320Z"); }
  100% { d: path("M0,160L60,149.3C120,139,240,117,360,122.7C480,128,600,160,720,170.7C840,181,960,171,1080,149.3C1200,128,1320,96,1380,80L1440,64L1440,320L0,320Z"); }
}







/* ======= Carousel Responsive ======= */
#section2{
  background:  #0D4A7A;
}
.carousel {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden; /* empêche le scroll horizontal */
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  
}

.carousel-track {
  display: flex;
  transition: transform 1s ease-in-out;
  width: 100%;
}

/* Chaque image prend 100% de la largeur du carousel */
.carousel-track img {
  width: 100%;
  height: 450px; /* taille fixe pour aligner toutes les images */
  object-fit: cover; /* évite la déformation */
  flex-shrink: 0; /* empêche le rétrécissement des images */

  
}

/* ======= Adaptation mobile ======= */
@media (max-width: 768px) {
  .carousel-track img {
    height: 300px; /* plus petit sur tablette */
  }
}

@media (max-width: 480px) {
  .carousel-track img {
    height: 220px; /* plus petit sur mobile */
  }
}

/* ======= Section title ======= */
.section-content h2 {
  text-align: center;
  color: #1d8af7;
  margin-bottom: 1rem;
  font-size: 2rem;
  font-weight: 700;
}

/* ======= Animation des vagues ======= */
.wave-separator path {
  animation: waveMove 6s ease-in-out infinite;
}

@keyframes waveMove {
  0% {
    d: path("M0,160L60,149.3C120,139,240,117,360,122.7C480,128,600,160,720,170.7C840,181,960,171,1080,149.3C1200,128,1320,96,1380,80L1440,64L1440,320L0,320Z");
  }
  50% {
    d: path("M0,170L60,160C120,150,240,130,360,135C480,140,600,170,720,180C840,190,960,180,1080,160C1200,140,1320,110,1380,90L1440,70L1440,320L0,320Z");
  }
  100% {
    d: path("M0,160L60,149.3C120,139,240,117,360,122.7C480,128,600,160,720,170.7C840,181,960,171,1080,149.3C1200,128,1320,96,1380,80L1440,64L1440,320L0,320Z");
  }
}








/* ===== Section carte ===== */
#church-map {
  position: relative;
  padding: 100px 20px;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(135deg, #a8eafc, #e0f7fa, #485f6a) ;
}

/* Titre */
#church-map h2 {
  color: #003366;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  font-weight: bold;
}

/* Conteneur principal */
.map-wrapper {
  position: relative;
  display: inline-block;
  border-radius: 20px;
  overflow: hidden;
  width: 90%;
  max-width: 800px;
  height: 450px;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.25);
}

/* Arrière-plan animé derrière la carte */
.map-background {
  position: absolute;
  inset: 0;
  z-index: 1;
  /* background: linear-gradient(135deg, #a8eafc, #e0f7fa, #b3e5fc); */
  background-size: 400% 400%;
}


/* Carte intégrée (vue satellite) */
.map-wrapper iframe {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 20px;
}

/* Mobile */
@media (max-width: 600px) {
  #church-map {
    padding: 60px 10px;
  }

  .map-wrapper {
    height: 300px;
  }
}

