/**
* Template Name: eNno adapté pour Ecivil
* Updated: Mai 27 2025
* Basé sur le template eNno de BootstrapMade.com
*/

/*--------------------------------------------------------------
# Font & Color Variables
--------------------------------------------------------------*/
/* Fonts */
:root {
  --default-font: "Roboto", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --heading-font: "Raleway", sans-serif;
  --nav-font: "Ubuntu", sans-serif;
}

/* Global Colors - Variables de couleur utilisées dans tout le site */
:root { 
  --background-color: #ffffff;
  --default-color: #444444;
  --heading-color: #5f687b;
  --accent-color: #0d6efd; /* Couleur principale d'accent - Bleu */
  --surface-color: #ffffff;
  --contrast-color: #ffffff;
}

/* Nav Menu Colors */
:root {
  --nav-color: #5f687b;
  --nav-hover-color: #0d6efd;
  --nav-mobile-background-color: #ffffff;
  --nav-dropdown-background-color: #ffffff;
  --nav-dropdown-color: #5f687b;
  --nav-dropdown-hover-color: #0d6efd;
}

/* Presets de couleurs pour les sections */
.light-background {
  --background-color: #f9f9f9;
  --surface-color: #ffffff;
}

.dark-background {
  --background-color: #060606;
  --default-color: #ffffff;
  --heading-color: #ffffff;
  --surface-color: #252525;
  --contrast-color: #ffffff;
}

.accent-background {
  --background-color: #10bc69;
  --default-color: #ffffff;
  --heading-color: #ffffff;
  --surface-color: #14eb83;
  --contrast-color: #ffffff;
}

/* Smooth scroll */
:root {
  scroll-behavior: smooth;
}

/*--------------------------------------------------------------
# Styles généraux
--------------------------------------------------------------*/
body {
  color: var(--default-color);
  background-color: var(--background-color);
  font-family: var(--default-font);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: 0.3s;
}

a:hover {
  color: color-mix(in srgb, var(--accent-color), transparent 25%);
  text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--heading-color);
  font-family: var(--heading-font);
}

.section {
  padding: 60px 0;
  overflow: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/*--------------------------------------------------------------
# Header et Navigation
--------------------------------------------------------------*/
.header {
  color: var(--default-color);
  background-color: var(--background-color);
  padding: 15px 0;
  transition: all 0.5s;
  z-index: 997;
  position: sticky;
  top: 0;
  box-shadow: 0px 0 18px rgba(0, 0, 0, 0.1);
}

.header .logo {
  line-height: 1;
}

.header .logo img {
  max-height: 36px;
  margin-right: 8px;
}

.header .logo h1 {
  font-size: 30px;
  margin: 0;
  font-weight: 700;
  color: var(--heading-color);
}

.header .btn-getstarted, .header.header-scrolled .btn-getstarted {
  color: #fff !important;
  background: #0d6efd !important;
  font-size: 14px;
  padding: 8px 25px;
  margin: 0 0 0 30px;
  border-radius: 50px;
  transition: 0.3s;
}

.header .btn-getstarted:hover, .header.header-scrolled .btn-getstarted:hover {
  color: #fff !important;
  background: #0b5ed7 !important;
}

/* Navigation menu */
.navmenu {
  padding: 0;
}

.navmenu ul {
  margin: 0;
  padding: 0;
  display: flex;
  list-style: none;
  align-items: center;
}

.navmenu li {
  position: relative;
}

.navmenu a {
  color: var(--nav-color);
  padding: 18px 15px;
  font-size: 16px;
  font-family: var(--nav-font);
  font-weight: 400;
  display: flex;
  align-items: center;
  white-space: nowrap;
  transition: 0.3s;
}

.navmenu a:hover, 
.navmenu .active {
  color: var(--nav-hover-color);
}

/* Mobile Navigation */
.mobile-nav-toggle {
  color: var(--nav-color);
  font-size: 28px;
  cursor: pointer;
  display: none;
  line-height: 0;
  transition: color 0.3s;
}

@media (max-width: 991px) {
  .mobile-nav-toggle {
    display: block;
  }

  .navmenu ul {
    display: none;
  }
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
.hero {
  width: 100%;
  min-height: 65vh;
  padding: 80px 0 40px;
  position: relative;
  background-color: rgba(242, 248, 252, 0.5);
}

.hero h1 {
  margin: 0;
  font-size: 38px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--heading-color);
  margin-bottom: 10px;
}

.hero h2 {
  font-size: 24px;
  font-weight: 600;
  color: var(--accent-color);
  margin-bottom: 15px;
}

.hero p {
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  margin: 15px 0 25px 0;
  font-size: 17px;
  line-height: 1.6;
}

.hero .btn-get-started {
  color: var(--contrast-color);
  background: var(--accent-color);
  font-family: var(--heading-font);
  font-weight: 500;
  font-size: 16px;
  padding: 12px 30px;
  border-radius: 30px;
  transition: 0.4s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  box-shadow: 0 4px 12px rgba(16, 188, 105, 0.2);
}

.hero .btn-get-started:hover {
  color: var(--contrast-color);
  background: color-mix(in srgb, var(--accent-color), transparent 15%);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(16, 188, 105, 0.3);
}

.hero .hero-img {
  max-width: 90%;
  margin: 0 auto;
}

.hero .animated {
  animation: up-down 2.5s ease-in-out infinite alternate-reverse both;
}

@keyframes up-down {
  0% {
    transform: translateY(8px);
  }
  100% {
    transform: translateY(-8px);
  }
}

/*--------------------------------------------------------------
# Sections générales
--------------------------------------------------------------*/
.section-bg {
  background-color: #f8f9fa;
}

.section-title {
  text-align: center;
  padding-bottom: 30px;
}

.section-title h2 {
  font-size: 16px;
  letter-spacing: 1px;
  font-weight: 500;
  padding: 0;
  margin: 0;
  color: #878787;
  text-transform: uppercase;
  font-family: var(--heading-font);
}

.section-title h3 {
  margin: 15px 0 0 0;
  font-size: 32px;
  font-weight: 700;
  color: var(--heading-color);
}

.section-title h3 span {
  color: var(--accent-color);
}

.section {
  padding: 80px 0;
  overflow: hidden;
}

/*--------------------------------------------------------------
# About Section
--------------------------------------------------------------*/
.about {
  padding: 60px 0;
}

.about .content {
  padding: 30px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.05);
}

.about .content h3 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--heading-color);
}

.about .content ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.about .content ul li {
  position: relative;
  padding: 0 0 20px 28px;
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
}

.about .content ul i {
  position: absolute;
  left: 0;
  top: 2px;
  font-size: 20px;
  color: var(--accent-color);
}

.about .content ul h5 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--heading-color);
}

.about .content ul div p {
  margin-bottom: 0;
  color: #555;
}

.about .content p.fst-italic {
  margin-bottom: 20px;
  font-size: 17px;
  color: #555;
}

/*--------------------------------------------------------------
# Services Section
--------------------------------------------------------------*/
.services {
  padding: 60px 0;
}

.services .service-item {
  padding: 25px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease-in-out;
  height: 100%;
}

.services .service-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.services .service-item .icon {
  margin-bottom: 15px;
}

.services .service-item .icon i {
  color: var(--accent-color);
  font-size: 42px;
  transition: 0.3s;
}

.services .service-item h4 {
  font-weight: 600;
  margin-bottom: 15px;
  font-size: 20px;
  color: var(--heading-color);
}

.services .service-item p {
  line-height: 1.6;
  font-size: 15px;
  margin-bottom: 0;
  color: #555;
}

.services .content {
  padding: 20px;
  border-radius: 8px;
}

.services .content h5 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--heading-color);
}

.services .content p {
  margin-bottom: 15px;
  color: #555;
  line-height: 1.6;
}

.services .content p.fst-italic {
  font-size: 17px;
  color: #555;
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.footer {
  color: var(--default-color);
  font-size: 14px;
  position: relative;
  padding-top: 60px;
  background-color: #f8f9fa;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(to right, transparent, var(--accent-color), transparent);
}

.footer-top {
  padding-bottom: 40px;
}

.footer h4 {
  font-size: 18px;
  font-weight: 600;
  position: relative;
  padding-bottom: 15px;
  margin-bottom: 20px;
  color: var(--heading-color);
}

.footer h4::after {
  content: '';
  position: absolute;
  display: block;
  width: 40px;
  height: 2px;
  background: var(--accent-color);
  bottom: 0;
  left: 0;
}

.footer .logo {
  margin-bottom: 15px;
}

.footer .logo span {
  font-size: 24px;
  font-weight: 700;
  color: var(--heading-color);
  font-family: var(--heading-font);
  margin-left: 10px;
}

.footer p {
  line-height: 1.6;
  margin-bottom: 20px;
}

.footer .footer-info {
  margin-bottom: 30px;
}

.footer .footer-links {
  margin-bottom: 30px;
}

.footer .footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer .footer-links ul i {
  margin-right: 8px;
  font-size: 14px;
  color: var(--accent-color);
}

.footer .footer-links ul li {
  padding: 8px 0;
  display: flex;
  align-items: center;
}

.footer .footer-links ul a {
  color: var(--default-color);
  transition: 0.3s;
  display: inline-block;
  line-height: 1;
}

.footer .footer-links ul a:hover {
  color: var(--accent-color);
  transform: translateX(5px);
}

.footer .footer-contact p {
  line-height: 26px;
}

.footer .footer-contact i {
  color: var(--accent-color);
  font-size: 16px;
  margin-right: 10px;
  display: inline-block;
  width: 20px;
}

.footer .social-links {
  display: flex;
  margin-top: 20px;
}

.footer .social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.1);
  font-size: 16px;
  color: var(--default-color);
  margin-right: 12px;
  transition: 0.3s;
  background-color: white;
}

.footer .social-links a:hover {
  color: white;
  border-color: var(--accent-color);
  background-color: var(--accent-color);
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.footer .copyright {
  padding: 25px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  text-align: center;
}

.footer .credits {
  padding-top: 5px;
  text-align: center;
  font-size: 13px;
}

.footer .credits a {
  color: var(--accent-color);
}

.back-to-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: 15px;
  z-index: 996;
  background: var(--accent-color);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: all 0.4s;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

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

.back-to-top:hover {
  background: color-mix(in srgb, var(--accent-color), transparent 15%);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

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

/* Custom footer styles for Ecivil */
.custom-footer {
  background-color: #f5f5f5;
  padding: 40px 0 20px;
  color: var(--default-color);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 30px;
}

.footer-col {
  flex: 1;
  min-width: 200px;
  margin-bottom: 20px;
  padding: 0 15px;
}

.footer-heading {
  color: var(--heading-color);
  font-family: var(--heading-font);
  font-size: 18px;
  margin-bottom: 15px;
  font-weight: 600;
}

.footer-text {
  margin-bottom: 15px;
  list-style: none;
  padding: 0;
}

.footer-text li {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.footer-text li i {
  color: var(--accent-color);
  margin-right: 8px;
  min-width: 16px;
}

.footerLogo {
  max-width: 120px;
  height: auto;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 80%);
}

.footer-bottom p {
  margin-bottom: 5px;
  font-size: 13px;
}

/*--------------------------------------------------------------
# Responsive Styles
--------------------------------------------------------------*/
@media (max-width: 991px) {
  .header .logo h1 {
    font-size: 26px;
  }
  
  .hero h1 {
    font-size: 32px;
  }
  
  .hero p {
    font-size: 16px;
  }
  
  .about .content {
    margin-top: 30px;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 40px 0;
  }
  
  .hero {
    padding: 40px 0;
  }
  
  .hero h1 {
    font-size: 28px;
  }
  
  .footer-col {
    flex: 0 0 100%;
    margin-bottom: 30px;
  }
}

@media (max-width: 575px) {
  .container {
    padding: 0 20px;
  }
  
  .hero h1 {
    font-size: 24px;
  }
  
  .footer-row {
    flex-direction: column;
  }
}
