/**
* Magloire Generation Ministries - Custom Layout
* This file contains custom styles for header, footer and common layout elements
*/

/* Import custom colors */
@import url('custom-colors.css');

/*--------------------------------------------------------------
# Header Customization
--------------------------------------------------------------*/
.header {
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.header .logo h1.sitename {
  color: var(--accent-color);
  font-weight: 700;
  transition: all 0.3s ease;
}

.header .logo img {
  max-height: 45px;
  transition: all 0.3s ease;
}

/* Navigation Menu Customization */
.navmenu ul li a {
  font-weight: 600;
  position: relative;
  transition: all 0.3s ease;
}

.navmenu ul li a:after {
  content: '';
  position: absolute;
  width: 0;
  height: 3px;
  bottom: 10px;
  left: 15px;
  background: linear-gradient(to right, var(--accent-color), var(--nav-hover-color));
  transition: width 0.3s ease;
  border-radius: 2px;
}

.navmenu ul li a:hover:after,
.navmenu ul li a.active:after {
  width: calc(100% - 30px);
}

.navmenu ul li a:hover,
.navmenu ul li a.active {
  color: var(--accent-color);
}

.navmenu .dropdown ul {
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-top: 3px solid var(--accent-color);
}

.navmenu .dropdown ul li a {
  font-weight: 500;
}

.navmenu .dropdown ul li a:hover {
  color: var(--accent-color);
  background-color: rgba(171, 31, 128, 0.05);
}

/* Mobile Navigation */
@media (max-width: 1199px) {
  .mobile-nav-toggle {
    color: var(--accent-color);
  }
  
  .navmenu ul {
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  }
  
  .navmenu a:hover,
  .navmenu .active,
  .navmenu .active:focus {
    color: var(--accent-color);
  }
  
  .navmenu a i,
  .navmenu a:focus i {
    background-color: rgba(171, 31, 128, 0.1);
  }
  
  .navmenu a i:hover,
  .navmenu a:focus i:hover {
    background-color: var(--accent-color);
  }
  
  .navmenu .active i,
  .navmenu .active:focus i {
    background-color: var(--accent-color);
  }
  
  /* Afficher les dropdowns directement sur mobile */
  .navmenu .dropdown ul {
    position: static;
    display: block !important; /* Force l'affichage */
    visibility: visible !important;
    opacity: 1 !important;
    margin: 10px 20px;
    padding: 10px 0;
    border: 1px solid rgba(171, 31, 128, 0.1);
    border-radius: 10px;
    box-shadow: none;
    background-color: var(--nav-dropdown-background-color);
  }

  /* Cacher les icônes de toggle sur mobile car les menus sont toujours ouverts */
  .navmenu .dropdown > a > i.bi-chevron-down {
    display: none !important;
  }
  
  /* Ajuster le style des liens parents */
  .navmenu .dropdown > a {
    color: var(--accent-color);
    font-weight: 700;
  }
}

/*--------------------------------------------------------------
# Footer Customization
--------------------------------------------------------------*/
.footer {
  /* background: linear-gradient(to right, rgba(254, 45, 192, 0.537), rgba(44, 160, 231, 0.535)); */
  /* background-color: wheat; */
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.footer .footer-top {
  border-top: 1px solid rgba(171, 31, 128, 0.1);
  padding-top: 60px;
}

.footer .footer-about .logo span {
  color: var(--accent-color);
  font-weight: 700;
}

.footer .social-links a {
  border: 1px solid rgba(171, 31, 128, 0.2);
  color: var(--accent-color);
  transition: all 0.3s ease;
}

.footer .social-links a:hover {
  background-color: var(--accent-color);
  color: #ffffff;
  transform: translateY(-3px);
}

.footer h4 {
  color: var(--accent-color);
  font-weight: 700;
  position: relative;
  padding-bottom: 15px;
  margin-bottom: 20px;
}

.footer h4:after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 3px;
  background: linear-gradient(to right, var(--accent-color), var(--nav-hover-color));
  border-radius: 2px;
}

.footer .footer-links ul li {
  padding: 8px 0;
  transition: all 0.3s ease;
}

.footer .footer-links ul li:first-child {
  padding-top: 0;
}

.footer .footer-links ul li a {
  color: var(--default-color);
  transition: all 0.3s ease;
  display: inline-block;
  position: relative;
}

.footer .footer-links ul li a:before {
  content: "\f105";
  font-family: "bootstrap-icons";
  position: absolute;
  left: -15px;
  color: var(--accent-color);
  font-size: 14px;
  opacity: 0;
  transition: all 0.3s ease;
}

.footer .footer-links ul li a:hover {
  color: var(--accent-color);
  padding-left: 15px;
}

.footer .footer-links ul li a:hover:before {
  opacity: 1;
  left: 0;
}

.footer .footer-newsletter h4 {
  margin-bottom: 25px;
}

.footer .footer-newsletter .newsletter-form {
  position: relative;
  overflow: hidden;
  border-radius: 50px;
}

.footer .footer-newsletter .newsletter-form input[type="email"] {
  border: 0;
  padding: 12px 25px;
  width: 100%;
  background: rgba(171, 31, 128, 0.05);
  border-radius: 50px;
  color: var(--default-color);
}

.footer .footer-newsletter .newsletter-form input[type="submit"] {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  border: 0;
  background: var(--accent-color);
  color: #fff;
  padding: 0 25px;
  border-radius: 0 50px 50px 0;
  transition: all 0.3s ease;
}

.footer .footer-newsletter .newsletter-form input[type="submit"]:hover {
  background: var(--nav-hover-color);
}

.footer .copyright {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(171, 31, 128, 0.1);
  margin-top: 30px;
}

.footer .copyright p {
  font-size: 15px;
}

.footer .copyright .sitename {
  color: var(--accent-color);
  font-weight: 700;
}

.footer .credits a {
  color: var(--accent-color);
  transition: all 0.3s ease;
}

.footer .credits a:hover {
  color: var(--nav-hover-color);
  text-decoration: underline;
}

/* Scroll Top Button */
.scroll-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: 15px;
  z-index: 99999;
  background: var(--accent-color);
  width: 44px;
  height: 44px;
  border-radius: 50px;
  transition: all 0.4s;
}

.scroll-top i {
  font-size: 24px;
  color: #fff;
  line-height: 0;
}

.scroll-top:hover {
  background: var(--nav-hover-color);
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(32, 146, 219, 0.3);
}

.scroll-top.active {
  visibility: visible;
  opacity: 1;
}