/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* NAVBAR */

/* LOGO */
.logo {
    font-size: 20px;
    font-weight: bold;
    color: #C9A24A;
}

/* MENU */
.navbar nav {
    display: flex;
    gap: 20px;
}

.navbar nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    position: relative;
    transition: 0.3s;
}

.navbar {
  transition: all 0.3s ease;
}

/* Quand on scroll */
.navbar.scrolled {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(6px);
}

.navbar.scrolled a {
    color: #333;
}

/* HOVER OR */
.navbar nav a:hover {
    color: #C9A24A;
}

/* MENU BURGER */
.menu-toggle {
    display: none;
    font-size: 28px;
    cursor: pointer;
    color: #C9A24A;
}

/* =========================
   FIN NAV
========================= */


/* =========================
  HEADER
========================= */

/* HERO */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;

    background: url('Test_img.png') no-repeat center top;
    background-size: contain;
    background-color: #000;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;
}

/* OVERLAY */
.hero-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
}

/* CONTENT */
.hero-content {
    position: relative;
    text-align: center;
    color: white;
    max-width: 700px;
    padding: 20px;
    z-index: 2;
}

.hero-content h1 {
    font-size: 40px;
    margin-bottom: 15px;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 20px;
}

/* BUTTONS */
.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* BTN */
.btn {
    padding: 12px 20px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
}

.gold {
    background: #C9A24A;
    color: white;
}

.outline {
    border: 2px solid white;
    color: white;
}

.outline:hover {
    background: white;
    color: black;
}

/* =========================
  FIN HEADER
========================= */


/* =========================
  NOS MINISTERES
========================= */

.premium-section .container {
  max-width: 1200px;
  margin: auto;
  background: #ffffff;
  padding: 60px 40px;
  box-shadow: 0px 0px 1px 1px rgba(0,0,0,0.1);
  transform: translateY(-80px);
}

.premium-section h2 {
  text-align: center;
  font-size: 38px;
  margin-bottom: 50px;
  color: #111;
}

.premium-section .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

.premium-section .card {
  text-align: center;
  padding: 30px 20px;
  background: #ffffff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.premium-section .card:hover {
  transform: translateY(-8px);
}

.premium-section .icon {
  width: 60px;
  height: 60px;
  margin: auto;
  margin-bottom: 15px;
  background: #caa64b;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 24px;
}

.premium-section .card h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: #111;
}

.premium-section .card p {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  max-width: 260px;
  margin: auto;
}

/* =========================
  FIN NOS MINISTERES
========================= */


/* =========================
  GALLERIE
========================= */

.gallery-section {
  background: #dfdfdf;
  padding: 80px 20px;
  text-align: center;
}

.gallery-section h2 {
  font-size: 32px;
  margin-bottom: 40px;
  position: relative;
}

/* GRID MASONRY */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 15px;
}

/* ITEMS */
.gallery .item {
  overflow: hidden;
  position: relative;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #111;
  transition: 0.4s;
  cursor: pointer;
}

/* HOVER ZOOM */
.gallery .item:hover img {
  transform: scale(1.05);
}

/* VARIATIONS */
.large {
  grid-column: span 2;
  grid-row: span 2;
}

.tall {
  grid-row: span 2;
}

.wide {
  grid-column: span 2;
}

/* LIGHTBOX */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.95);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* IMAGE LIGHTBOX - ENTIERE */
.lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

/* CLOSE */
.close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: white;
  cursor: pointer;
}

/* NAVIGATION */
.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 40px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

.prev { left: 20px; }
.next { right: 20px; }

/* =========================
  FIN GALLERIE
========================= */


/* =========================
  ARTICLES - LIVRES
========================= */

.section {
  padding: 80px 10%;
  background: #fff;
}

.container {
  max-width: 1200px;
  margin: auto;
}

.row {
  max-width: 1200px;
  display: flex;
  align-items: center;
  margin-bottom: 60px;
  gap: 40px;
}

.row.reverse {
  flex-direction: row-reverse;
}

.text {
  flex: 1;
}

.text h2 {
  font-size: 28px;
  margin-bottom: 15px;
}

.text p {
  color: #555;
  line-height: 1.6;
  margin-bottom: 20px;
}

.text button {
  padding: 10px 20px;
  border: none;
  background: #000;
  color: #fff;
  cursor: pointer;
}

/* IMAGE LIVRES */
.image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.image img {
  width: 100%;
  max-width: 400px;
  height: auto;
  object-fit: contain;
  border-radius: 5px;
  display: block;
}

/* =========================
  FIN ARTICLES
========================= */


/* =========================
  NOS PARTENAIRES
========================= */

.partners {
  padding: 80px 10%;
  background: #f9f9f9;
  text-align: center;
}

.partners h2 {
  font-size: 28px;
  margin-bottom: 40px;
}

.partners-wrapper {
  overflow: hidden;
  position: relative;
}

.partners-track {
  display: flex;
  gap: 60px;
  animation: scroll 20s linear infinite;
}

.partners-track img {
  width: 120px;
  height: 60px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: 0.3s;
}

.partners-track img:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.1);
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* =========================
 FIN NOS PARTENAIRES
========================= */


/* =========================
   EVENEMENT A VENIR
========================= */

.events {
  padding: 80px 10%;
  background: linear-gradient(to bottom, #ffffff, #f5f7fa);
}

.events h2 {
  text-align: center;
  margin-bottom: 50px;
  font-size: 30px;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.event-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  transition: 0.4s;
}

.event-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.event-img {
  height: 180px;
  overflow: hidden;
  background: #f0f0f0;
}

.event-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: 0.4s;
}

.event-card:hover img {
  transform: scale(1.05);
}

.event-content {
  padding: 20px;
}

.event-content .date {
  color: #f5c518;
  font-weight: bold;
  font-size: 14px;
}

.event-content h3 {
  margin: 10px 0;
  font-size: 18px;
}

.event-content p {
  color: #555;
  font-size: 14px;
}

/* =========================
  NOS CONTACTS
========================= */

.contact-clean {
  padding: 100px 10%;
  background: linear-gradient(to bottom, #ffffff, #f5f7fa);
}

.contact-box {
  display: flex;
  gap: 50px;
  background: #fff;
  padding: 50px;
  border-radius: 15px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

.contact-info {
  flex: 1;
}

.contact-info h2 {
  font-size: 30px;
  margin-bottom: 15px;
}

.contact-info p {
  color: #555;
  margin-bottom: 20px;
}

.info-item {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.icon {
  width: 40px;
  height: 40px;
  background: #f5c518;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  font-size: 18px;
}

.contact-form {
  flex: 1;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
}

.contact-form button {
  width: 100%;
  padding: 12px;
  border: none;
  background: #f5c518;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.contact-form button:hover {
  background: #000;
  color: #fff;
}

/* =========================
  FIN NOS CONTACTS
========================= */


/* =========================
  FOOTER
========================= */

.footer-wave svg {
  display: block;
  width: 100%;
  height: 80px;
}

.footer-light {
  background: linear-gradient(to top, #f5f7fa, #ffffff);
  padding-top: 80px;
  position: relative;
  overflow: hidden;
  animation: fadeUp 1s ease;
}

.footer-light::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(270deg, #f5c518, #ff7b00, #f5c518);
  background-size: 400% 400%;
  animation: gradientMove 6s ease infinite;
}

.footer-light::before {
  content: "";
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(245,197,24,0.15), transparent);
  top: -100px;
  right: -100px;
}

.footer-container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 50px;
  padding: 0 10% 50px;
}

.footer-col h2 {
  margin-bottom: 15px;
}

.footer-col h3 {
  margin-bottom: 15px;
  position: relative;
}

.footer-col h3::after {
  content: "";
  width: 40px;
  height: 3px;
  background: #f5c518;
  position: absolute;
  bottom: -5px;
  left: 0;
  transition: 0.3s;
}

.footer-col:hover h3::after {
  width: 70px;
}

.footer-col p {
  color: #666;
  line-height: 1.6;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col a {
  color: #555;
  text-decoration: none;
  position: relative;
  transition: 0.3s;
}

.footer-col a::after {
  content: "";
  width: 0%;
  height: 2px;
  background: #f5c518;
  position: absolute;
  left: 0;
  bottom: -2px;
  transition: 0.3s;
}

.footer-col a:hover::after {
  width: 100%;
}

.socials a {
  display: block;
  margin-bottom: 8px;
}

.footer-col {
  transition: 0.3s;
}

.footer-col:hover {
  transform: translateY(-5px);
}

.footer-bottom {
  border-top: 1px solid #eee;
  text-align: center;
  padding: 25px;
  color: #777;
}

.footer-bottom .credit span {
  color: #f5c518;
  font-weight: bold;
}

.footer-bottom .credit span:hover {
  text-shadow: 0 0 8px rgba(245,197,24,0.8);
}

/* ANIMATIONS */

@keyframes gradientMove {
  0% { background-position: 0% }
  50% { background-position: 100% }
  100% { background-position: 0% }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* REVEAL EFFECT */

.reveal {
  opacity: 0;
  transform: translateY(60px);
  transition: all 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 992px) {

  .events-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {

    /* HERO MOBILE */
    .hero {
        height: 60vw;
        min-height: 300px;
        background-size: contain;
        background-position: center top;
        background-color: #000;
    }

    .hero-content h1 {
        font-size: 28px;
        line-height: 1.3;
    }

    .hero-content p {
        font-size: 16px;
        line-height: 1.5;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    /* NAVBAR */
    .navbar nav {
        position: absolute;
        top: 70px;
        right: 0;
        background: white;
        width: 200px;
        flex-direction: column;
        display: none;
        border-left: 2px solid #C9A24A;
        z-index: 999;
    }

    .navbar nav a {
        padding: 15px;
        border-bottom: 1px solid #eee;
    }

    .menu-toggle {
        display: block;
    }

    .navbar nav.active {
        display: flex;
    }

    /* GALLERY */
    .gallery {
      grid-template-columns: 1fr 1fr;
      grid-auto-rows: 160px;
    }

    .large,
    .tall,
    .wide {
      grid-column: span 1;
      grid-row: span 1;
    }

    /* ARTICLES */
    .row,
    .row.reverse {
      flex-direction: column;
    }

    .image img {
      max-width: 100%;
    }

    /* CONTACT */
    .contact-box {
      flex-direction: column;
      padding: 30px;
    }

    /* PARTNERS */
    .partners-track {
      gap: 30px;
    }

    .partners-track img {
      width: 80px;
      height: 40px;
    }

    /* EVENTS */
    .events-grid {
      grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {

    .hero {
        height: 70vw;
        min-height: 250px;
        background-position: center top;
    }

    .hero-content h1 {
        font-size: 22px;
    }

    .hero-content p {
        font-size: 14px;
    }

    /* GALLERY 1 COLONNE SUR PETIT ECRAN */
    .gallery {
      grid-template-columns: 1fr;
      grid-auto-rows: 220px;
    }

    .lightbox-img {
      max-width: 95vw;
      max-height: 85vh;
    }
}