
/* 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: "Poppins",  sans-serif;
}

:root { 
  --background-color: #172c23; /* vert du site (admin un cran plus clair) */ 
  --default-color: #272829;
  --heading-color: #172c23; 
  --accent-color: #9dc66b; 
  --surface-color: #ffffff;
  --contrast-color: #ffffff; 
}

:root {
  --nav-color: #a8a9b4; 
  --nav-hover-color: #ffffff; 
  --nav-mobile-background-color: #10201a; 
  --nav-dropdown-background-color: #10201a; 
  --nav-dropdown-color: #a8a9b4; 
  --nav-dropdown-hover-color: #ffffff;
}

.light-background {
  --background-color: #f4f2ec;
  --surface-color: #ffffff;
}

.dark-background {
  --background-color: #172c23;
  --default-color: #ffffff;
  --heading-color: #ffffff;
  --surface-color: #1f3d2b;
  --contrast-color: #ffffff;
}

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

/*--------------------------------------------------------------
# General Styling & Shared Classes
--------------------------------------------------------------*/
body {
  color: var(--default-color);
  background-color: var(--background-color);
  font-family: var(--default-font);
}

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,
p,
span,
strong {
  color: var(--surface-color);
  font-family: var(--surface-color);
}

/*--------------------------------------------------------------
# Global Header
--------------------------------------------------------------*/
.header {
  color: var(--default-color);
  background-color: var(--background-color);
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  padding: 0 15px;
  width: 300px;
  transition: all ease-in-out 0.3s;
  overflow-y: auto;
  z-index: 997;
  border-right: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

.header .profile-img img {
  margin: 15px auto;
  display: block;
  width: 120px;
  border: 8px solid color-mix(in srgb, var(--default-color), transparent 85%);
}

.header .logo {
  line-height: 1;
  margin-bottom: 15px;
}

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

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

.header .social-links {
  margin: 0 0 20px 0;
}

.header .social-links a {
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--default-color), transparent 90%);
  color: var(--default-color);
  margin: 0 2px;
  border-radius: 50%;
  text-align: center;
  width: 40px;
  height: 40px;
  transition: 0.3s;
}

.header .social-links a:hover {
  color: var(--contrast-color);
  background: var(--accent-color);
}

@media (min-width: 1200px) {

  .header~main,
  .header~#footer {
    margin-left: 300px;
  }
}

@media (max-width: 1199px) {
  .header {
    left: -100%;
  }
}

.header.header-show {
  left: 0;
}

.header .header-toggle {
  color: var(--contrast-color);
  background-color: var(--accent-color);
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  position: fixed;
  top: 15px;
  right: 15px;
  z-index: 9999;
  transition: background-color 0.3s;
}

.header .header-toggle:hover {
  color: var(--contrast-color);
  background-color: color-mix(in srgb, var(--accent-color) 90%, white 15%);
}

/*--------------------------------------------------------------
# Navigation Menu
--------------------------------------------------------------*/
.mobile-nav-toggle {
  display: none;
}

.navmenu {
  padding: 0;
  z-index: 9997;
  margin-top: 60px;
}

.navmenu ul {
  list-style: none;
  padding: 0 0 20px 0;
  margin: 0;
}

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

.navmenu a .navicon,
.navmenu a:focus .navicon {
  font-size: 20px;
  margin-right: 10px;
}

.navmenu a .toggle-dropdown,
.navmenu a:focus .toggle-dropdown {
  font-size: 12px;
  line-height: 0;
  margin-left: auto;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: 0.3s;
  flex-shrink: 0;
  background-color: color-mix(in srgb, var(--accent-color), transparent 90%);
}

.navmenu a .toggle-dropdown:hover,
.navmenu a:focus .toggle-dropdown:hover {
  background-color: var(--accent-color);
  color: var(--contrast-color);
}

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

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

.navmenu .active .toggle-dropdown,
.navmenu .active:focus .toggle-dropdown {
  background-color: var(--accent-color);
  color: var(--contrast-color);
  transform: rotate(180deg);
}

.navmenu .dropdown {
  display: block;
}

.navmenu .dropdown a,
.navmenu .dropdown a:focus {
  color: --nav-dropdown-color;
}

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

.navmenu .dropdown ul {
  position: static;
  display: none;
  z-index: 99;
  padding: 5px 10px;
  margin: 5px 10px;
  background-color: var(--nav-dropdown-background-color);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  box-shadow: none;
  transition: all 0.5s ease-in-out;
}

.navmenu .dropdown ul ul {
  background-color: rgba(33, 37, 41, 0.1);
}

.navmenu .dropdown>.dropdown-active {
  display: block;
  background-color: rgba(33, 37, 41, 0.03);
}

/*--------------------------------------------------------------
# Global Footer
--------------------------------------------------------------*/
.footer {
  color: var(--default-color);
  background-color: var(--background-color);
  font-size: 14px;
  padding: 60px 0 30px;
  position: relative;
  border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

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

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

.footer-description {
  margin-bottom: 20px;
  line-height: 1.6;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
}

/* Liens réseaux sociaux */
.footer .social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--default-color), transparent 92%);
  color: var(--default-color);
  font-size: 18px;
  transition: all 0.3s ease;
}

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

/* Listes de liens */
.footer-links,
.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li,
.footer-contact li {
  padding: 8px 0;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
}

.footer-links li a {
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  position: relative;
}

.footer-links li a::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-color);
  transition: width 0.3s ease;
}

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

.footer-links li a:hover::before {
  width: 100%;
}

/* Contact */
.footer-contact li {
  display: flex;
  align-items: center;
}

.footer-contact li i {
  color: var(--accent-color);
}

/* Copyright */
.footer .copyright {
  padding-top: 20px;
  margin-top: 30px;
}

.footer .copyright p {
  margin-bottom: 0;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
}

.footer .copyright strong{
 color: var(--heading-color);
}

.footer .credits {
  margin-top: 8px;
  font-size: 13px;
}

.footer .credits a {
    color: color-mix(in srgb, var(--default-color), transparent 30%);
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 0 3px;
}

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

/* Responsive */
@media (max-width: 768px) {
  .footer {
    padding: 40px 0 20px;
  }
  
  .footer h4 {
    margin-top: 20px;
  }
  
  .footer .col-md-6:first-child h4 {
    margin-top: 0;
  }
}

/*--------------------------------------------------------------
# Preloader
--------------------------------------------------------------*/
#preloader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  overflow: hidden;
  background: #050d18;
  transition: all 0.6s ease-out;
}

#preloader:before {
  content: "";
  position: fixed;
  top: calc(50% - 30px);
  left: calc(50% - 30px);
  border: 6px solid #ffffff;
  border-color: var(--accent-color) transparent var(--accent-color) transparent;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: animate-preloader 1.5s linear infinite;
}

@keyframes animate-preloader {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}


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

.scroll-top i {
  font-size: 24px;
  color: var(--contrast-color);
  line-height: 0;
}

.scroll-top:hover {
  background-color: color-mix(in srgb, var(--accent-color), transparent 20%);
  color: var(--contrast-color);
}

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

/*--------------------------------------------------------------
# Disable aos animation delay on mobile devices
--------------------------------------------------------------*/
@media screen and (max-width: 768px) {
  [data-aos-delay] {
    transition-delay: 0 !important;
  }
}

/*--------------------------------------------------------------
# Global Page Titles & Breadcrumbs
--------------------------------------------------------------*/
.page-title {
  color: var(--default-color);
  background-color: var(--background-color);
  padding: 25px 0;
  position: relative;
}

.page-title h1 {
  font-size: 24px;
  font-weight: 700;
}

.page-title .breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 14px;
  font-weight: 400;
}

.page-title .breadcrumbs ol li+li {
  padding-left: 10px;
}

.page-title .breadcrumbs ol li+li::before {
  content: "/";
  display: inline-block;
  padding-right: 10px;
  color: color-mix(in srgb, var(--default-color), transparent 70%);
}

/*--------------------------------------------------------------
# Global Sections
--------------------------------------------------------------*/
section,
.section {
  color: var(--default-color);
  background-color: var(--background-color);
  padding: 60px 0;
  overflow: clip;
}

/*--------------------------------------------------------------
# Global Section Titles
--------------------------------------------------------------*/
.section-title {
  padding-bottom: 40px;
  position: relative;
}

.section-title h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 20px;
  position: relative;
}

.section-title h2:after {
  content: "";
  position: absolute;
  display: block;
  width: 50px;
  height: 3px;
  background: var(--accent-color);
  left: 0;
  bottom: 0;
}

.section-title p {
  margin-bottom: 0;
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
.hero {
  width: 100%;
  min-height: 100vh;
  position: relative;
  padding: 80px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-title {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease-out 0.3s forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero:before {
  content: "";
  background: color-mix(in srgb, var(--background-color), transparent 70%);
  position: absolute;
  inset: 0;
  z-index: 2;
}

.hero .container {
  position: relative;
  z-index: 3;
}

.hero h2 {
  margin: 0;
  font-size: 64px;
  font-weight: 700;
}

.hero p {
  margin: 5px 0 0 0;
  font-size: 26px;
}

.hero p span {
  letter-spacing: 1px;
  border-bottom: 2px solid var(--accent-color);
}

.hero .social-links {
  margin-top: 25px;
}

.hero .social-links a {
  font-size: 24px;
  display: inline-block;
  color: color-mix(in srgb, var(--default-color), transparent 50%);
  line-height: 1;
  margin-right: 20px;
  transition: 0.3s;
}

.hero .social-links a:hover {
  color: var(--accent-color);
}

@media (max-width: 768px) {
  .hero h2 {
    font-size: 32px;
  }

  .hero p {
    font-size: 20px;
  }
}

/*--------------------------------------------------------------
# About Section - Premium Design (Fond sombre) - 100vh fixe
--------------------------------------------------------------*/
.about.section {
    height: 100vh; 
    display: flex;
    align-items: center;
    padding: 40px 0; 
    background: var(--background-color);
    overflow: hidden; 
}

/* Title - Plus compact */
.about .section-title {
    margin-bottom: 30px;  
}

.about .section-title h2 {
    font-size: 2.3rem; 
    font-weight: 300;
    color: #fff;
    margin-bottom: 6px;
    letter-spacing: -0.02em;
}

.about .section-title p {
    font-size: 0.75rem; 
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 2.5px;
    font-weight: 600;
}

/* Texte à gauche - Plus compact */
.about-content h3 {
    font-size: 1.5rem; 
    font-weight: 600;
    color: #fff;
    margin-bottom: 18px; 
    letter-spacing: -0.01em;
}

.about-intro {
    font-size: 1.1rem; 
    line-height: 1.7; 
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 18px; 
    font-weight: 400;
}

.about-content p {
    font-size: 0.90rem; 
    line-height: 1.7; 
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 15px;
}

.about-content strong {
    color: var(--accent-color);
    font-weight: 600;
}

/* Signature - Plus compacte */
.about-signature {
    margin-top: 25px; 
    padding-top: 20px;
    position: relative;
}

.signature-line {
    width: 50px; 
    height: 2px;
    background: linear-gradient(90deg, var(--accent-color), transparent);
    margin-bottom: 15px; 
}

.signature-text {
    font-size: 0.88rem; 
    font-style: italic;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
    margin: 0;
}

/* Grid Premium avec chevauchement */
.expertises-grid-premium {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px; 
    position: relative;
}

/* Carte premium */
.expertise-card-premium {
    position: relative;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.expertise-card-premium:hover {
    transform: translateY(-12px) scale(1.02);
    z-index: 10;
}

.card-inner {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.5s ease;
}

.expertise-card-premium:hover .card-inner {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(44, 95, 45, 0.2);
}

/* Image avec overlay - Plus compact */
.expertise-img-premium {
    position: relative;
    height: 220px; 
    overflow: hidden;
}

.expertise-img-premium img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.expertise-card-premium:hover .expertise-img-premium img {
    transform: scale(1.15);
}

/* Overlay gradient */
.img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.3) 50%,
        rgba(0, 0, 0, 0.8) 100%
    );
    transition: opacity 0.4s ease;
}

.expertise-card-premium:hover .img-overlay {
    opacity: 0.7;
}

/* Info - Plus compact */
.expertise-info-premium {
    padding: 18px;
    position: relative;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.4) 100%
    );
}

.expertise-number-premium {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--accent-color);
    margin-bottom: 8px;
    padding: 4px 12px;
    background: rgba(44, 95, 45, 0.2);
    border-radius: 20px;
    border: 1px solid rgba(44, 95, 45, 0.3);
}

.expertise-info-premium h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 5px;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.expertise-info-premium p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    font-weight: 300;
}

/* Effet de chevauchement subtil - Réduit */
.expertise-card-premium:nth-child(2) {
    margin-top: 15px;
}

.expertise-card-premium:nth-child(4) {
    margin-top: 15px; 
}

/* Responsive - Laisser respirer sur mobile */
@media (max-width: 992px) {
    .about.section {
        height: auto; 
        min-height: 100vh;
        padding: 60px 0;
        overflow-y: visible;
    }
    
    .expertises-grid-premium {
        margin-top: 40px;
    }
    
    .expertise-card-premium:nth-child(2),
    .expertise-card-premium:nth-child(4) {
        margin-top: 0;
    }
}

@media (max-width: 768px) {
    .about .section-title h2 {
        font-size: 2rem;
    }
    
    .expertises-grid-premium {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .expertise-img-premium {
        height: 250px;
    }
}


/* Lien invisible sur toute la carte */
.card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.card-link:hover {
    text-decoration: none;
}

/* Assurer que le hover fonctionne sur toute la carte */
.expertise-card-premium {
    cursor: pointer;
}

.expertise-card-premium:hover .card-link {
    color: inherit;
}

/*--------------------------------------------------------------
# Stats Section
--------------------------------------------------------------*/
.stats .stats-item {
  padding: 30px;
  width: 100%;
}

.stats .stats-item i {
  color: var(--accent-color);
  display: block;
  font-size: 44px;
  float: left;
  line-height: 0;
}

.stats .stats-item .purecounter {
  color: whitesmoke;
  font-size: 48px;
  line-height: 40px;
  display: block;
  font-weight: 700;
  margin-left: 60px;
}

.stats .stats-item p {
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  padding: 15px 0 0 0;
  margin: 0 0 0 60px;
  font-family: var(--heading-font);
  font-size: 14px;
}

/*--------------------------------------------------------------
# Projects Section - Grille compacte Bootstrap
--------------------------------------------------------------*/
.projects.section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 40px 0;
    background: var(--background-color);
}

/* Title */
.projects .section-title {
    margin-bottom: 20px;
}

.projects .section-title h2 {
    font-size: 1.8rem;
    font-weight: 300;
    color: #fff;
    margin-bottom: 3px;
    letter-spacing: -0.02em;
}

.projects .section-title p {
    font-size: 0.65rem;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

/* Filtres */
.projects-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.filter-btn.active {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #fff;
}

/* Grille */
.projects-grid {
    margin-bottom: 20px;
}

/* Carte projet */
.project-card {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
    transform: scale(1);
    height: 100%;
    max-height: 1000px;
}

/* Grille */
.projects-grid {
    margin-bottom: 20px;
}

.projects-grid > [class*="col-"] {
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(44, 95, 45, 0.2);
}

.project-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* Image */
.project-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover .project-image img {
    transform: scale(1.08);
}

/* Overlay */
.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.6) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-icon {
    font-size: 2rem;
    color: #fff;
    transform: scale(0.5);
    transition: transform 0.3s ease;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(44, 95, 45, 0.4);
    font-weight: 900;
}

.project-card:hover .project-icon {
    transform: scale(1);
}

/* Info projet */
.project-info {
    padding: 12px;
}

.project-category {
    display: inline-block;
    font-size: 0.6rem;
    font-weight: 600;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    padding: 2px 8px;
    background: rgba(44, 95, 45, 0.2);
    border-radius: 12px;
    border: 1px solid rgba(44, 95, 45, 0.3);
}

.project-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.project-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.meta-item {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    gap: 3px;
}

/* Bouton CTA */
.projects-cta {
    margin-top: 20px;
}

.btn-view-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-view-all:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(44, 95, 45, 0.4);
    color: #fff;
}

/* Responsive */
@media (max-width: 992px) {
    .projects.section {
        padding: 40px 0;
    }
    
    .project-image {
        height: 160px;
    }
}

@media (max-width: 768px) {
    .projects .section-title h2 {
        font-size: 1.6rem;
    }
    
    .project-image {
        height: 180px;
    }
}




/*--------------------------------------------------------------
# Books Section - Galeries photos
--------------------------------------------------------------*/
.books.section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 30px 0;
    background: var(--background-color);
}

/* Title */
.books .section-title {
    margin-bottom: 20px;
}

.books .section-title h2 {
    font-size: 1.8rem;
    font-weight: 300;
    color: #fff;
    margin-bottom: 3px;
    letter-spacing: -0.02em;
}

.books .section-title p {
    font-size: 0.65rem;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

/* Grille */
.books-grid {
    margin-bottom: 20px;
    min-height: 600px;
}

/* Carte book */
.book-card {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.book-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.6),
        0 0 40px rgba(44, 95, 45, 0.3);
}

.book-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* Image */
.book-image {
    position: relative;
    height: 320px;
    overflow: hidden;
}

.book-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.book-card:hover .book-image img {
    transform: scale(1.08);
}

/* Protection des images */
.book-image img,
.lg-img-wrap img {
    user-select: none;
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
    pointer-events: auto;
}

/* Overlay */
.book-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.3) 40%,
        rgba(0, 0, 0, 0.85) 100%
    );
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.book-card:hover .book-overlay {
    opacity: 1;
}

.book-info-overlay {
    width: 100%;
}

.book-category {
    display: inline-block;
    font-size: 0.6rem;
    font-weight: 600;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    padding: 2px 8px;
    background: rgba(44, 95, 45, 0.3);
    border-radius: 12px;
    border: 1px solid rgba(44, 95, 45, 0.4);
}

.book-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 6px;
    line-height: 1.3;
}

.book-count {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    gap: 5px;
}

.book-count i {
    font-size: 0.85rem;
}

/* Cacher les images de la gallery */
.hidden-gallery-item {
    display: none;
}

/* Bouton CTA */
.books-cta {
    margin-top: 20px;
}

/* Responsive */
@media (max-width: 992px) {
    .books.section {
        padding: 40px 0;
    }
    
    .book-image {
        height: 250px;
    }
}

@media (max-width: 768px) {
    .books .section-title h2 {
        font-size: 1.6rem;
    }
    
    .book-image {
        height: 220px;
    }

}

/*--------------------------------------------------------------
# Services Section - Design Premium
--------------------------------------------------------------*/
.services.section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 0;
    background: var(--background-color);
}

/* Title */
.services .section-title {
    margin-bottom: 20px;
}

.services .section-title h2 {
    font-size: 1.8rem;
    font-weight: 300;
    color: #fff;
    margin-bottom: 3px;
    letter-spacing: -0.02em;
}

.services .section-title p {
    font-size: 0.65rem;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

/* Grille */
.services-grid {
    margin-bottom: 20px;
    min-height: 600px;
}

/* Carte service */
.service-card {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.6),
        0 0 40px rgba(44, 95, 45, 0.3);
}

.service-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* Image */
.service-image {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

/* Overlay */
.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.6) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover .service-overlay {
    opacity: 1;
}

.service-icon {
    font-size: 2rem;
    color: #fff;
    transform: scale(0.5);
    transition: transform 0.3s ease;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(44, 95, 45, 0.4);
}

.service-card:hover .service-icon {
    transform: scale(1);
}

/* Info service */
.service-info {
    padding: 20px;
}

.service-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 10px;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.service-description {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    line-height: 1.5;
}

/* Bouton CTA */
.services-cta {
    margin-top: 20px;
}


/* Carte CTA spéciale (6ème carte) */
.service-card-cta {
    background: linear-gradient(
        135deg,
        rgba(44, 95, 45, 0.1) 0%,
        rgba(255, 255, 255, 0.03) 100%
    );
    border: 2px solid rgba(44, 95, 45, 0.3);
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-card-cta:hover {
    background: linear-gradient(
        135deg,
        rgba(44, 95, 45, 0.2) 0%,
        rgba(255, 255, 255, 0.05) 100%
    );
    border-color: var(--accent-color);
}

.service-cta-content {
    text-align: center;
    padding: 40px 30px;
}

.cta-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    box-shadow: 0 8px 25px rgba(44, 95, 45, 0.4);
    transition: all 0.3s ease;
}

.service-card-cta:hover .cta-icon {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(44, 95, 45, 0.6);
}

.cta-icon i {
    font-size: 2rem;
    color: #fff;
}

.cta-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 15px;
    line-height: 1.3;
}

.cta-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 25px;
    line-height: 1.6;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent-color);
    color: #fff;
    padding: 12px 28px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(44, 95, 45, 0.3);
}

.service-card-cta:hover .cta-button {
    background: color-mix(in srgb, var(--accent-color) 90%, white 15%);
    transform: translateX(5px);
    box-shadow: 0 6px 20px rgba(44, 95, 45, 0.5);
}

.cta-button i {
    transition: transform 0.3s ease;
}

.service-card-cta:hover .cta-button i {
    transform: translateX(5px);
}

/* Responsive */
@media (max-width: 992px) {
    .services.section {
        padding: 40px 0;
    }
    
    .service-image {
        height: 220px;
    }
}

@media (max-width: 768px) {
    .services .section-title h2 {
        font-size: 1.6rem;
    }
    
    .service-image {
        height: 200px;
    }
}

/*--------------------------------------------------------------
# Blog Section - Grille compacte Bootstrap (identique à Projects)
--------------------------------------------------------------*/
.blog.section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 40px 0;
    background: var(--background-color);
}

/* Title */
.blog .section-title {
    margin-bottom: 20px;
}

.blog .section-title h2 {
    font-size: 1.8rem;
    font-weight: 300;
    color: #fff;
    margin-bottom: 3px;
    letter-spacing: -0.02em;
}

.blog .section-title p {
    font-size: 0.65rem;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

/* Filtres */
.blog-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

/* Grille */
.blog-grid {
    margin-bottom: 20px;
}

.blog-grid > [class*="col-"] {
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Carte blog */
.blog-card {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
    transform: scale(1);
    max-height: 1000px;
}

.blog-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(44, 95, 45, 0.2);
}

.blog-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* Image */
.blog-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-card:hover .blog-image img {
    transform: scale(1.08);
}

/* Overlay */
.blog-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.6) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.blog-card:hover .blog-overlay {
    opacity: 1;
}

.blog-icon {
    font-size: 2rem;
    color: #fff;
    transform: scale(0.5);
    transition: transform 0.3s ease;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(44, 95, 45, 0.4);
    font-weight: 900;
}

.blog-card:hover .blog-icon {
    transform: scale(1);
}

/* Info blog */
.blog-info {
    padding: 12px;
}

.blog-category {
    display: inline-block;
    font-size: 0.6rem;
    font-weight: 600;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    padding: 2px 8px;
    background: rgba(44, 95, 45, 0.2);
    border-radius: 12px;
    border: 1px solid rgba(44, 95, 45, 0.3);
}

.blog-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.blog-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.meta-item {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    gap: 3px;
}

/* Bouton CTA */
.blog-cta {
    margin-top: 20px;
}

/* Responsive */
@media (max-width: 992px) {
    .blog.section {
        padding: 40px 0;
    }
    
    .blog-image {
        height: 160px;
    }
}

@media (max-width: 768px) {
    .blog .section-title h2 {
        font-size: 1.6rem;
    }
    
    .blog-image {
        height: 180px;
    }
}

/*--------------------------------------------------------------
# Stats Section - Responsive Mobile
--------------------------------------------------------------*/
@media (max-width: 768px) {
  .stats .stats-item i {
    font-size: 32px; /* 44px / 2 */
    margin-right:10px;
  }

  .stats .stats-item .purecounter {
    font-size: 34px; /* 48px / 2 */
    line-height: 30px; /* 40px / 2 */
    margin-left: 40px; /* 60px / 2 */
  }

  .stats .stats-item p {
    margin: 0 0 0 40px; /* 60px / 2 */
  }

    .section-title h2 {
    font-size: 25px;
    font-weight: 500;
    margin-bottom: 20px;
    padding-bottom: 20px;
    position: relative;
    }
}



/*--------------------------------------------------------------
# Footer - Responsive Mobile (Centrage complet)
--------------------------------------------------------------*/
@media (max-width: 768px) {
  /* Centrer tous les titres */
  .footer h4 {
    text-align: center;
  }

  /* Centrer le trait sous les titres */
  .footer h4::after {
    left: 50%;
    transform: translateX(-50%);
  }

  /* Centrer la description */
  .footer .footer-description {
    text-align: center;
  }

  /* Centrer les liens sociaux */
  .footer .social-links {
    justify-content: center !important;
  }

  /* Centrer les listes */
  .footer .footer-links,
  .footer .footer-contact {
    text-align: center;
    padding-left: 0;
  }

  /* Centrer les éléments de liste */
  .footer .footer-links li,
  .footer .footer-contact li {
    text-align: center;
    justify-content: center;
  }

  /* Ajuster l'espacement des colonnes */
  .footer .col-lg-4,
  .footer .col-lg-2,
  .footer .col-lg-3 {
    margin-bottom: 30px;
  }
}
/* Pied de page : pictogrammes des réseaux dessinés (SVG), comme la barre du haut */
.footer .social-links svg {
  width: 19px;
  height: 19px;
}
