/********** Template CSS **********/
:root {
  --bs-tertiary: #fff;
}

:root {
  /* On dit à Bootstrap : "Ta police par défaut, c'est Open Sans" */
  --bs-body-font-family: 'Open Sans', sans-serif !important;

  /* On définit une variable pour nos titres */
  --font-heading: 'Josefin Sans', sans-serif !important;
}

/* Application globale */
body {
  font-family: var(--bs-body-font-family);
}

/* Application aux titres et éléments forts */
h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6,
.display-1,
.display-2,
.display-3,
.display-4,
.display-5,
.display-6,
.navbar-nav .nav-link,
.btn {
  font-family: var(--font-heading);
  font-weight: 700;
}

.back-to-top {
  position: fixed;
  display: none;
  right: 30px;
  bottom: 30px;
  z-index: 99;
}

.fw-bold {
  font-weight: 700 !important;
}

.fw-medium {
  font-weight: 600 !important;
}

.fw-normal {
  font-weight: 400 !important;
}

/*** Spinner ***/
#spinner {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease-out, visibility 0s linear 0.5s;
  z-index: 99999;
}

#spinner.show {
  transition: opacity 0.5s ease-out, visibility 0s linear 0s;
  visibility: visible;
  opacity: 1;
}

/*** Button ***/
.btn {
  transition: 0.5s !important;
}

.btn-square {
  width: 38px !important;
  height: 38px !important;
}

.btn-sm-square {
  width: 32px !important;
  height: 32px !important;
}

.btn-lg-square {
  width: 48px !important;
  height: 48px !important;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-weight: normal !important;
}

/*** Top Bar ***/
.top-bar {
  height: 90px !important;
  padding: 0 90px !important;
}

.top-bar h6 {
  letter-spacing: 1px !important;
}

/*** Nav Bar ***/
.nav-bar {
  padding: 0 90px;
  transition: 0.5s;
}

.navbar .navbar-nav .nav-link {
  margin-right: 30px;
  padding: 20px 0;
  color: var(--bs-dark);
  font-size: 18px;
  outline: none;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
  color: var(--bs-white);
}

.navbar .dropdown-toggle::after {
  border: none;
  content: '\f107';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  vertical-align: middle;
  margin-left: 8px;
}

@media (max-width: 991.98px) {
  .navbar .navbar-nav .nav-link {
    margin-right: 0;
    padding: 10px 0;
  }

  .navbar .navbar-nav {
    margin-top: 20px;
    border-top: 1px solid var(--bs-white);
  }
}

@media (min-width: 992px) {
  .navbar .nav-item .dropdown-menu {
    display: block;
    border: none;
    margin-top: 0;
    top: 150%;
    opacity: 0;
    visibility: hidden;
    transition: 0.5s;
  }

  .navbar .nav-item:hover .dropdown-menu {
    top: 100%;
    visibility: visible;
    transition: 0.5s;
    opacity: 1;
  }
}

/*** Header Carousel ***/
.header-carousel {
  position: relative;
  background: url(../img/bg.jpg) center center no-repeat;
  background-size: cover;
}

.header-carousel .carousel-img {
  position: relative;
}

.header-carousel .owl-nav {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}

.header-carousel .owl-nav .owl-prev,
.header-carousel .owl-nav .owl-next {
  width: 45px;
  height: 45px;
  margin: 10px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--bs-dark);
  background: var(--bs-primary);
}

.page-header {
  background: url(../img/bg.jpg) center center no-repeat;
  background-size: cover;
}

.page-header .breadcrumb-item + .breadcrumb-item::before {
  color: var(--bs-tertiary);
}

.page-header .breadcrumb-item,
.page-header .breadcrumb-item a {
  font-size: 18px;
  color: var(--bs-primary);
}

.page-header .breadcrumb-item.active {
  color: var(--bs-dark);
}

/*** Video ***/
.btn-play {
  position: relative;
  display: block;
  box-sizing: content-box;
  width: 16px;
  height: 26px;
  border: none;
  outline: none !important;
  padding: 18px 20px 20px 28px;
  background: var(--bs-dark);
}

.btn-play:before {
  content: '';
  position: absolute;
  z-index: 0;
  left: 50%;
  top: 50%;
  transform: translateX(-50%) translateY(-50%);
  display: block;
  width: 60px;
  height: 60px;
  background: var(--bs-dark);
  animation: pulse-border 1500ms ease-out infinite;
}

.btn-play:after {
  content: '';
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 50%;
  transform: translateX(-50%) translateY(-50%);
  display: block;
  width: 60px;
  height: 60px;
  background: var(--bs-dark);
  transition: all 200ms;
}

.btn-play span {
  display: block;
  position: relative;
  z-index: 3;
  width: 0;
  height: 0;
  left: -1px;
  border-left: 16px solid var(--bs-white);
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
}

@keyframes pulse-border {
  0% {
    transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1);
    opacity: 1;
  }

  100% {
    transform: translateX(-50%) translateY(-50%) translateZ(0) scale(2);
    opacity: 0;
  }
}

#videoModal .modal-dialog {
  position: relative;
  max-width: 800px;
  margin: 60px auto 0 auto;
}

#videoModal .modal-body {
  position: relative;
  padding: 0px;
}

#videoModal .close {
  position: absolute;
  width: 30px;
  height: 30px;
  right: 0px;
  top: -30px;
  z-index: 999;
  font-size: 30px;
  font-weight: normal;
  color: var(--bs-white);
  background: #000000;
  opacity: 1;
}

/*** Section Title ***/
.section-title {
  position: relative;
  display: inline-block;
  text-transform: uppercase;
}

.section-title::before {
  position: absolute;
  content: '';
  width: calc(100% + 80px);
  height: 0px;
  top: 5px;
  left: -40px;
  border-top: 2px solid var(--bs-primary);
  z-index: -1;
}

.section-title::after {
  position: absolute;
  content: '';
  width: calc(100% + 120px);
  height: 0px;
  bottom: 6px;
  left: -60px;
  border-bottom: 2px solid var(--bs-primary);
  z-index: -1;
}

.section-title.text-start::before {
  width: calc(100% + 40px);
  left: 0;
}

.section-title.text-start::after {
  width: calc(100% + 60px);
  left: 0;
}

/*** About ***/
.about-img {
  position: relative;
}

.about-img::before,
.about-img::after {
  position: absolute;
  content: '';
  width: 33%;
  height: 90px;
  background: var(--bs-white);
}

.about-img::before {
  top: 0px;
  left: 0px;
}

.about-img::after {
  right: 0px;
  bottom: 0px;
}

/*** Service ***/
.service-title {
  height: 100%;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: url(../img/bg.jpg) center center no-repeat;
  background-size: cover;
}

.service-item {
  overflow: hidden;
}

.service-item .btn-square {
  width: 65px;
  height: 65px;
}

.service-item a {
  position: relative;
  padding: 0;
  font-size: 14px;
  line-height: 14px;
  text-transform: uppercase;
  transition: 0.5s;
}

.service-item a::after {
  position: absolute;
  content: '';
  width: 500%;
  height: 0;
  left: 100%;
  bottom: 3px;
  margin-left: 10px;
  border-bottom: 2px solid var(--bs-primary);
}

/*** Donation ***/
.donation-item {
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.05);
  transition: 0.5s;
}

.donation-item:hover {
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
}

.donation-item .donation-progress {
  width: 80px;
}

.donation-item .progress .progress-bar {
  height: 20px;
  overflow: visible;
  transition: 3s;
}

/*** Banner ***/
.banner .banner-inner {
  position: relative;
  background: url(../img/bg.jpg) center center no-repeat;
  background-size: cover;
}

.banner .banner-inner::before,
.banner .banner-inner::after {
  position: absolute;
  content: '';
  width: 0;
  height: 0;
}

.banner .banner-inner::before {
  top: 0;
  left: 0;
  border-top: 150px solid var(--bs-primary);
  border-right: 150px solid transparent;
}

.banner .banner-inner::after {
  right: 0;
  bottom: 0;
  border-bottom: 150px solid var(--bs-secondary);
  border-left: 150px solid transparent;
}

/*** Event ***/
.event-item {
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.05);
  transition: 0.5s;
}

.event-item:hover {
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
}

/*** Donate ***/
.donate .donate-text {
  position: relative;
  background: url(../img/bg.jpg) center center no-repeat;
  background-size: cover;
}

.donate .donate-text::before,
.donate .donate-text::after {
  position: absolute;
  content: '';
  width: 0;
  height: 0;
}

.donate .donate-text::before {
  top: 0;
  left: 0;
  border-top: 150px solid var(--bs-primary);
  border-right: 150px solid transparent;
}

.donate .donate-text::after {
  right: 0;
  bottom: 0;
  border-bottom: 150px solid var(--bs-secondary);
  border-left: 150px solid transparent;
}

.donate .donate-form .form-control {
  border: none;
  background: rgba(255, 255, 255, 0.5);
}

.donate .donate-form .btn-group {
  display: flex;
}

.donate .donate-form .btn-group .btn {
  margin: 0;
  padding: 0;
  height: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  color: var(--bs-tertiary);
  background: rgba(255, 255, 255, 0.5);
}

.donate .donate-form .btn-group .btn-check:checked + .btn {
  border: none;
  background: var(--bs-white);
}

/*** Team ***/
.team-item {
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.05);
  transition: 0.5s;
}

.team-item:hover {
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
}

.team-item .team-detail span {
  letter-spacing: 2px;
}

/*** Testimonial ***/
.testimonial-title {
  height: 100%;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: url(../img/bg.jpg) center center no-repeat;
  background-size: cover;
}

.testimonial-img {
  position: relative;
  padding: 45px 0 45px 90px;
}

.testimonial-img::before {
  position: absolute;
  content: '';
  top: 0;
  left: 0;
  width: calc(50% + 45px);
  height: 100%;
  background: var(--bs-primary);
  z-index: -1;
}

.testimonial-carousel .owl-nav {
  position: absolute;
  top: 50%;
  left: 1.5rem;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
}

.testimonial-carousel .owl-prev,
.testimonial-carousel .owl-next {
  width: 45px;
  height: 45px;
  margin: 10px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--bs-white);
  background: var(--bs-secondary);
  transition: 0.5s;
}

.testimonial-carousel .owl-prev:hover,
.testimonial-carousel .owl-next:hover {
  color: var(--bs-secondary);
  background: var(--bs-white);
}

@media (max-width: 768px) {
  .testimonial-carousel .owl-nav {
    top: 6.3rem;
  }
}

/*** Footer ***/
.footer {
  border-top: 5px solid var(--bs-primary);
  color: var(--bs-tertiary);
  background: linear-gradient(rgba(93, 64, 55, 0.95), rgba(93, 64, 55, 0.95)),
    url(../img/bg-footer.jpg) center center no-repeat;
  background-size: cover;
}

.footer .btn.btn-link {
  display: block;
  margin-bottom: 5px;
  padding: 0;
  text-align: left;
  color: var(--bs-tertiary);
  font-weight: normal;
  text-transform: capitalize;
  transition: 0.3s;
}

.footer .btn.btn-link::before {
  position: relative;
  content: '\f105';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  margin-right: 10px;
}

.footer .btn.btn-link:hover {
  color: var(--bs-light);
  letter-spacing: 1px;
  box-shadow: none;
}

.footer .copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- Design Page 404  --- */

.error-page {
  padding: 80px 0 100px; /* Donne de l'espace en haut et en bas */
  background-color: #fff; /* Un fond très légèrement gris pour détacher du blanc */
  text-align: center; /* Centre tout le contenu */
}

/* Le grand titre 404 */
.error-page .header {
  font-size: 10rem; /* Très gros */
  font-weight: 900;
  line-height: 1;
  color: #5d4037; /* Le rouge de votre entête */
  position: relative;
  display: inline-block;
  margin-bottom: 10px;

  /* Petit effet d'ombre portée pour donner du volume */
  text-shadow: 4px 4px 0px #c89d28; /* Le bleu foncé du footer */

  /* Animation subtile de "battement" pour attirer l'oeil */
  animation: heartbeat 3s infinite ease-in-out;
}

/* Le sous-titre "Oups..." */
.error-page h4 {
  font-size: 2rem;
  font-weight: 700;
  color: #c89d28; /* Bleu foncé */
  margin-bottom: 20px;
  text-transform: uppercase;
}

/* Le paragraphe de texte */
.error-page p {
  font-size: 1.1rem;
  color: #666;
  max-width: 600px; /* Empêche le texte d'être trop large sur grand écran */
  margin: 0 auto 40px auto; /* Centre le bloc de texte */
  line-height: 1.6;
}

/* Les boutons */
.error-page .btns {
  display: flex;
  justify-content: center;
  gap: 20px; /* Espace entre les deux boutons */
  flex-wrap: wrap;
}

/* Style spécifique pour tes boutons (surchage bootstrap si nécessaire) */
.error-page .btn-mnbf-primary {
  background-color: #5d4037;
  color: #fff !important;
  padding: 12px 30px;
  border-radius: 50px; /* Boutons arrondis plus modernes */
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid #c89d28;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.error-page .btn-mnbf-primary:hover {
  background-color: #c89d28; /* Devient bleu au survol */
  border-color: #c89d28;
  transform: translateY(-2px); /* Monte légèrement au survol */
}

/* Animation Heartbeat (optionnel, donne vie à la page) */
@keyframes heartbeat {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* --- Responsive pour mobile --- */
@media (max-width: 768px) {
  .error-page .header {
    font-size: 6rem; /* Plus petit sur mobile */
  }
  .error-page h4 {
    font-size: 1.5rem;
  }
  .error-page .btns {
    flex-direction: column;
    gap: 10px;
  }
}

/* --- Affichage des partenaires --- *
/* Le conteneur du logo */
.vendor-item {
  height: 150px; /* Ajustez cette hauteur selon vos besoins */
  display: flex;
  align-items: center; /* Centre verticalement */
  justify-content: center; /* Centre horizontalement */
  background: #fff; /* Fond blanc propre */
  overflow: hidden; /* Cache ce qui dépasse au cas où */
}

/* L'image du logo elle-même */
.vendor-item img {
  max-width: 100%; /* Ne jamais dépasser la largeur du cadre */
  max-height: 100px; /* Limite la hauteur du logo pour qu'il respire */
  width: auto !important; /* IMPORTANT: Annule le width:100% par défaut d'OwlCarousel */
  display: block;

  /* Effets visuels (optionnel) */
  opacity: 0.7;
  filter: grayscale(100%);
  transition: 0.5s;
}

/* Effet au survol */
.vendor-item:hover img {
  opacity: 1;
  filter: grayscale(0);
  transform: scale(1.1); /* Petit effet de zoom sympa */
}

img {
  object-fit: cover;
}

/* Effet hover sur les cartes zones et objectifs */
.transition-hover:hover,
.shadow-sm:hover {
  transform: translateY(-3px);
  transition: transform 0.3s ease;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

/* Utile pour le titre souligné */
.z-n1 {
  z-index: -1;
}

/* --- Single Project Carousel --- */
.project-carousel-img {
  height: 500px; /* Hauteur fixe pour le carousel */
  object-fit: cover; /* Recadre l'image sans la déformer */
  width: 100%;
}

/* Flèches de navigation rondes et plus esthétiques */
.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: rgba(0, 0, 0, 0.5); /* Fond sombre semi-transparent */
  background-size: 50%;
}

/* --- Sidebar --- */
.project-sidebar {
  /* Le sticky-top est géré par Bootstrap class 'sticky-lg-top' */
  background: #fff;
  /* Optionnel : ajouter un fond blanc si la page est grise */
}

.ls-1 {
  letter-spacing: 1px;
}

/* Typography Content */
.content-text {
  font-size: 0.95rem;
  line-height: 1.7;
  text-align: justify;
}
.content-text p {
  margin-bottom: 1.5rem;
}

/* Responsive : Sur mobile, réduire la hauteur du carousel */
@media (max-width: 768px) {
  .project-carousel-img {
    height: 300px;
  }
}

/* .wp-core-ui a.ytprefs_media_link, a.ytprefs_media_link {
  display: none !important;
} */