/* ==============================
   🌟 VARIABLES GLOBALES
============================== */
:root {
  --accent-dark: #c22b86;
  --white: #ffffff;
  --overlay: rgba(18, 18, 30, 0.55);
  --muted: rgba(255, 255, 255, 0.85);
  --nav-height: 72px;
}

/* ==============================
   🌍 RESET & BASE
============================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  color: var(--white);
  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
/* header */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  z-index: 10;
  background: linear-gradient(0deg, rgba(0,0,0,0.25), rgba(0,0,0,0.08));
  backdrop-filter: blur(6px);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  height: 70px;
  width: auto;
  display: block;
}

/* ======================== */
/*       MENU BURGER        */
/* ======================== */
.menu-toggle {
  font-size: 30px;
  cursor: pointer;
  color: #fff;
  padding: 10px;
  display: none; /* visible seulement sur mobile */
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 9999;
}

/* Menu latéral */
#navMenu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 260px;
  height: 100%;
  background: linear-gradient(165deg, #111 0%, #222 100%);
  padding: 30px 25px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  transition: 0.35s ease-in-out;
  z-index: 9998;
  box-shadow: -8px 0 20px rgba(0,0,0,0.45);
  border-left: 2px solid rgba(255,255,255,0.06);
}

#navMenu.open {
  right: 0;
}

/* Liens */
#navMenu a {
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  background: rgba(255,255,255,0.05);
  padding: 12px 18px;
  border-radius: 10px;
  transition: 0.25s ease;
  backdrop-filter: blur(3px);
  border: 1px solid transparent;
}

#navMenu a:hover {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  transform: translateX(6px);
}

/* Bouton fermer */
.close-menu {
  margin-top: auto;
  color: #fff;
  cursor: pointer;
  font-size: 1rem;
  padding: 12px 18px;
  text-align: center;
  transition: 0.25s ease;
  
}

.close-menu:hover {
  background-color: #ddd;
  color: #000;
  transform: translateX(6px);
}

/* ======================== */
/*   LANGUAGE SWITCHER      */
/* ======================== */

/* Version desktop → switcher en haut à droite */
.language-switcher {
  position: absolute;
  top: 18px;
  right: 100px;
  display: flex;
  gap: 10px;
  z-index: 1000;
}

.language-switcher button {
  background: #fff;
  color: #333;
  border: 2px solid #007bff;
  border-radius: 25px;
  padding: 6px 14px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.language-switcher button:hover {
  background: #007bff;
  color: white;
  transform: scale(1.05);
}

.language-switcher button.active {
  background: #007bff;
  color: white;
  border-color: #0056b3;
}

/* ======================== */
/*        RESPONSIVE        */
/* ======================== */

@media (max-width: 768px) {

  /* Montrer le menu burger */
  .menu-toggle {
    display: block;
  }

  /* Désactiver le switcher externe en mobile */
  .language-switcher {
    display: none;
  }

  /* Style du language switcher à l'intérieur du menu burger */
  #navMenu .language-switcher {
    display: flex;
    position: static;
    margin-top: 10px;
    justify-content: center;
  }
}

/* Version desktop */
@media (min-width: 768px) {
  #navMenu {
    position: static;
    right: 0;
    width: auto;
    height: auto;
    background: transparent;
    box-shadow: none;
    border: none;
    flex-direction: row;
    gap: 25px;
    padding: 0;
  }

  #navMenu a {
    background: transparent;
    color: #fff;
    padding: 0;
    border-radius: 0;
    border: none;
  }

  #navMenu a:hover {
    transform: none;
    color: #7cd0ff;
  }

  .close-menu {
    display: none;
  }
}


/* hero  */
.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-image: url('images/backi.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  padding-top: var(--nav-height);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  padding: 60px 24px;
}

.subtitle {
  font-size: 30px;
  font-weight: 600;
  color: #7cd0ff;
  margin-bottom: 6px;
  font-family: "Playfair Display", serif;
  letter-spacing: 0.5px;
  transition: transform 0.4s ease;
}

.subtitle:hover {
  transform: scale(1.05);
}

.title {
  font-size: clamp(20px, 5vw, 50px); /* S’adapte à toutes les tailles d’écran */
  font-weight: bold;
  display: inline-block;
  text-align: center;
  line-height: 1.2; /* Évite les sauts bizarres de ligne */
  max-width: 95%; /* Empêche le texte de dépasser de l’écran */
  word-break: break-word; /* Coupe les mots trop longs si nécessaire */
  overflow-wrap: anywhere;
  letter-spacing: 0.5px;
}

/* Animation des lettres */
.title span {
  display: inline-block;
  opacity: 0;
  transform: translateY(30px) scale(0.8);
  transition: transform 0.5s ease, opacity 0.5s ease;
}

/* Lettre visible après animation */
.title span.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}


.bible-ref {
  font-size: 20px;
  font-weight: 600;
  color: #7cd0ff;
  margin-left: 15px;
  background: #333;
  padding: 4px 10px;
  border-radius: 6px;
  vertical-align: middle;
  text-align: justify;
}

.meta {
  font-size: 16px;
  color: var(--muted);
  margin-top: 30px;
  margin-bottom: 38px;
}

/* COMPTE À REBOURS */
.countdown {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.box {
  background-color: #7cd0ff;
  border-radius: 8px;
  padding: 25px 20px;
  width: 100px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  height: 90px;
}

.box span {
  display: block;
  font-size: 2.2rem;
  font-weight: 700;
  color: #fff;
}

.box small {
  font-size: 1rem;
  color: #fff;
  opacity: 0.9;
}

/* Responsive */

@media (max-width: 600px) {
  .title {
    font-size: clamp(16px, 6vw, 35px);
    line-height: 1.3;
  }
}

@media (max-width: 768px) {
  .subtitle {
     font-size: 24px; 
    }
  .box { 
    width: 90px; 
    padding: 20px 10px;
   }
  .box span { 
    font-size: 1.8rem;
   }
  .title {
    font-size: 2x; 
     line-height: 1; /* ajuste l'espacement */
     padding: 0 10px; /* espace horizontal */
     font-weight: bold;
   }
}

@media (max-width: 480px) {
  .subtitle { 
    font-size: 20px;
   }
  .box { 
    width: 75px; 
    padding: 15px 8px;
   }
  .box span {
     font-size: 1.4rem;
     }
  .box small { 
    font-size: 0.8rem;
   }
   .title {
    font-size: clamp(14px, 7vw, 28px); /* Police plus petite mais responsive */
    line-height: 1.35; /* Légèrement plus d’espace entre les lignes */
    max-width: 90%; /* Évite que le titre dépasse de l’écran */
    letter-spacing: 0.3px; /* Ajuste l’espacement pour petit écran */
  }
}

/* MOT DU SURINTENDANT*/
.surintendant-section {
  background: #fff;
  padding: 80px 20px;
  text-align: center;
}

.surintendant-section h2 {
  font-size: 26px;
  color: #333;
  margin-bottom: 50px;
}

.surintendant-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  max-width: 1000px;
  margin: 0 auto;
}

.surintendant-photo img {
  width: 250px;
  height: 250px;
  object-fit: cover;
  border-radius: 50%;
  border: 6px solid #7cd0ff;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.surintendant-photo img:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
}

.surintendant-texte {
  max-width: 550px;
  text-align: justify;
}

.surintendant-texte h3 {
  font-size: 22px;
  color: #333;
  margin-bottom: 5px;
}

.surintendant-texte .role {
  color: #333;
  font-weight: 600;
  margin-bottom: 20px;
}

.surintendant-texte .message {
  color: #333;
  line-height: 1.8;
  font-size: 16px;
  text-align: justify;
  box-shadow: 0 0 10px rgba(255,255,255,0.1);
  border-left: 5px solid #333;
  padding: 20px;
}

/* Responsive */
@media (max-width: 768px) {
  .surintendant-container {
    flex-direction: column;
    text-align: center;
  }

  .surintendant-photo img {
    width: 200px;
    height: 200px;
  }
}

@media (max-width: 480px) {
  .surintendant-section {
    padding: 50px 15px;
  }

  .surintendant-photo img {
    width: 180px;
    height: 180px;
  }

  .surintendant-texte .message {
    font-size: 14px;
  }
}
