/* Variables CSS pour faciliter les modifications */
:root {
    --primary-orange: #FF6B35;
    --primary-blue: #1E3A8A;
    --light-orange: #FFB59A;
    --light-blue: #3B82F6;
    --dark-blue: #1E40AF;
    --white: #FFFFFF;
    --light-gray: #F8FAFC;
    --text-gray: #64748B;
    --shadow: 0 10px 30px rgba(0,0,0,0.1);
    --border-radius: 15px;
}

/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    scroll-behavior: smooth;
}

/* ====================================== 
   ANIMATIONS
   ====================================== */

/* Animations de base */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes rotateIn {
    from {
        opacity: 0;
        transform: rotate(-180deg) scale(0.5);
    }
    to {
        opacity: 1;
        transform: rotate(0deg) scale(1);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

/* Classes d'animation générales */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-on-scroll.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Updated Navigation Styles - Add this to your styles.css to replace the existing navigation section */

/* ====================================== 
   NAVIGATION - UPDATED ORANGE/BLUE THEME
   ====================================== */

/* Navigation principale */
/* Update the existing .navbar class with smooth transitions */
.navbar {
    background: linear-gradient(135deg, var(--primary-blue), #2e4a9a);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(30, 58, 138, 0.3);
    
    /* Add smooth transitions for the fade effect */
    transition: opacity 0.3s ease-in-out, 
                transform 0.3s ease-in-out,
                background-color 0.3s ease-in-out,
                box-shadow 0.3s ease-in-out;
    
    /* Ensure the navbar stays on top during transitions */
    will-change: opacity, transform;
}

/* Optional: Alternative styling when navbar becomes transparent */
.navbar.fading {
    background: linear-gradient(135deg, 
        rgba(30, 58, 138, 0.8), 
        rgba(46, 74, 154, 0.8));
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(30, 58, 138, 0.2);
}
/* Ensure content behind the navbar is visible when it fades */
.hero {
    /* Make sure hero content is not blocked by transparent navbar */
    position: relative;
    z-index: 1;
}

.navbar.scrolled {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.95), rgba(46, 74, 154, 0.95));
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 30px rgba(30, 58, 138, 0.4);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    height: 70px;
}

.logo {
    text-decoration: none;
}

.logo-img {
    height: 50px;
    width: auto;
    filter: brightness(1.1);
    transition: all 0.3s ease;
}

.logo:hover .logo-img {
    filter: brightness(1.3);
    transform: scale(1.05);
}

/* Menu principal - Desktop */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
    height: 100%;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    display: flex;
    align-items: center;
    height: 100%;
    position: relative;
}

/* Style uniforme pour TOUS les liens */
.nav-menu > li > a,
.dropdown-toggle {
    color: var(--white);
    text-decoration: none;
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 45px;
    box-sizing: border-box;
    white-space: nowrap;
    cursor: pointer;
    background: none;
    border: none;
    font-family: inherit;
    font-size: inherit;
    position: relative;
    overflow: hidden;
}

/* Effet hover orange */
.nav-menu > li > a::before,
.dropdown-toggle::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-orange);
    transition: left 0.3s ease;
    z-index: -1;
    border-radius: 8px;
}

.nav-menu > li > a:hover::before,
.dropdown-toggle:hover::before {
    left: 0;
}

.nav-menu > li > a:hover,
.dropdown-toggle:hover {
    color: var(--white);
    transform: translateY(-2px);
}

/* Dropdown toggle specific */
.dropdown-toggle {
    gap: 0.5rem;
}

.dropdown-arrow {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
    margin-left: 0.3rem;
}

.dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

/* Menu déroulant - Desktop */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 15px);
    left: 50%;
    transform: translateX(-50%) translateY(-10px) scale(0.95);
    background: var(--white);
    min-width: 280px;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 2000;
    overflow: hidden;
    border: 2px solid var(--primary-orange);
    padding: 0;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0) scale(1);
}

.dropdown-menu li {
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
    width: 100%;
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 1.5rem;
    color: var(--primary-blue);
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid #f1f5f9;
    font-weight: 500;
    position: relative;
    z-index: 10;
    background: white;
    width: 100%;
    box-sizing: border-box;
}

.dropdown-menu a:last-child {
    border-bottom: none;
}

/* Effet hover dropdown avec dégradé orange/bleu */
.dropdown-menu a:hover {
    background: linear-gradient(135deg, var(--primary-orange), #e55a2b);
    color: var(--white);
    padding-left: 2rem;
}

/* Pour le premier et dernier élément au hover */
.dropdown-menu a:first-child:hover {
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.dropdown-menu a:last-child:hover {
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

/* Bordure gauche animée */
.dropdown-menu a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--primary-blue);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.dropdown-menu a:hover::before {
    transform: scaleY(1);
    background: var(--white);
}

/* Icônes pour les liens avec couleur orange */
.dropdown-menu a::after {
    font-size: 1.2rem;
    transition: all 0.3s ease;
    opacity: 0.8;
    margin-left: auto;
    flex-shrink: 0;
}

.dropdown-menu a[href*="panneaux"]::after { content: '🔆'; }
.dropdown-menu a[href*="bornes"]::after { content: '🔌'; }
.dropdown-menu a[href*="pompes"]::after { content: '🏠'; }

.dropdown-menu a:hover::after {
    opacity: 1;
    transform: scale(1.2);
}

/* Hamburger menu avec couleur blanche */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    background: none;
    border: none;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--white);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Mobile Navigation Styles */
@media (max-width: 768px) {
    .nav-container {
        height: 60px;
        padding: 0 1rem;
    }

    .hamburger {
        display: flex;
    }

    /* Menu mobile avec thème orange/bleu */
    .nav-menu {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 60px);
        background: linear-gradient(135deg, var(--primary-blue), #2e4a9a);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: 2rem 1rem;
        transition: left 0.3s ease;
        z-index: 999;
        overflow-y: auto;
    }

    .nav-menu.active {
        left: 0;
    }

    /* Items du menu mobile */
    .nav-menu li {
        margin: 0.8rem 0;
        width: 100%;
        max-width: 300px;
        display: flex;
        flex-direction: column;
        align-items: center;
        height: auto;
    }

    /* Animation mobile menu */
    .nav-menu.active li {
        animation: slideInFromTop 0.5s ease forwards;
    }

    /* Liens principaux mobile */
    .nav-menu > li > a,
    .dropdown-toggle {
        width: 100%;
        max-width: 250px;
        text-align: center;
        justify-content: center;
        font-size: 1.1rem;
        padding: 1rem 1.5rem;
        border-radius: 25px;
        height: auto;
        min-height: 50px;
        border: 2px solid rgba(255, 255, 255, 0.3);
        background: rgba(255, 255, 255, 0.1);
    }

    .nav-menu > li > a:hover,
    .dropdown-toggle:hover {
        background: var(--primary-orange);
        border-color: var(--primary-orange);
    }

    .dropdown-toggle {
        justify-content: space-between;
    }

    /* Menu déroulant mobile */
    .dropdown-menu {
        position: static;
        opacity: 0;
        visibility: hidden;
        transform: none;
        box-shadow: none;
        border: 2px solid var(--primary-orange);
        background: rgba(255, 255, 255, 0.95);
        margin: 0.5rem 0 0 0;
        border-radius: var(--border-radius);
        max-height: 0;
        overflow: hidden;
        transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        width: 100%;
        max-width: 250px;
        backdrop-filter: blur(10px);
    }
    
    .dropdown:hover .dropdown-menu,
    .dropdown.active .dropdown-menu {
        opacity: 1;
        visibility: visible;
        max-height: 250px;
    }
    
    .dropdown-menu a {
        padding: 1rem 1.2rem;
        color: var(--primary-blue);
        background: transparent;
        border-bottom: 1px solid rgba(30, 58, 138, 0.1);
        font-size: 1rem;
    }
    
    .dropdown-menu a:hover {
        background: linear-gradient(135deg, var(--primary-orange), #e55a2b);
        color: var(--white);
        padding-left: 1.8rem;
    }

    .dropdown-menu a::before {
        background: var(--primary-orange);
    }

    .dropdown-arrow {
        font-size: 0.9rem;
    }

    .logo-img {
        height: 45px;
    }
}

/* ====================================== 
   HERO SECTION
   ====================================== */

.hero {
    background-image: 
        linear-gradient(rgba(30, 58, 138, 0.6), rgba(30, 58, 138, 0.4)),
        url('images/hero.avif');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white);
    padding: 120px 0 80px;
    text-align: center;
    min-height: 50vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(30, 58, 138, 0.1) 0%, 
        rgba(255, 107, 53, 0.1) 50%, 
        rgba(30, 58, 138, 0.1) 100%);
    animation: shimmer 3s infinite;
    pointer-events: none;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    font-weight: bold;
    animation: slideInFromTop 1.2s ease-out 0.3s both;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease-out 0.6s both;
}

/* ====================================== 
   BUTTONS
   ====================================== */

.cta-button {
    background: var(--primary-orange);
    color: var(--white);
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    font-weight: 600;
    position: relative;
    overflow: hidden;
    animation: fadeInScale 0.8s ease-out 0.9s both;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, 
        rgba(255, 255, 255, 0.3), 
        transparent);
    transition: all 0.4s ease;
    transform: translate(-50%, -50%);
    border-radius: 50%;
}

.cta-button:hover {
    background: #e55a2b;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.cta-button:hover::before {
    width: 300px;
    height: 300px;
}

.cta-button:active {
    transform: translateY(-2px) scale(0.98);
}

/* ====================================== 
   SECTIONS
   ====================================== */

.section {
    padding: 80px 0;
}

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

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-blue);
    font-weight: bold;
}

/* About Section */
.about-section {
    background: var(--light-gray);
}

.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: center;
}

.text-content h2 {
    color: var(--primary-blue);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

.text-content h2::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        var(--primary-orange), 
        transparent);
    animation: shimmer 2s ease-in-out infinite;
}

.text-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--text-gray);
}

.highlight-box {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-orange);
    margin-top: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.highlight-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, 
        rgba(255, 107, 53, 0.1) 0%, 
        transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    animation: float 4s ease-in-out infinite;
}

.highlight-box:hover::before {
    opacity: 1;
}

.highlight-box h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
}
/* —————————————————————————————
   Services Section: modern cards
   ————————————————————————————— */

.services-modern {
  background: var(--light-gray);
  padding: 100px 0;
}

.services-modern .section-subtitle {
  color: var(--primary-orange);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  font-size: 0.9rem;
}

.services-modern .section-title {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: var(--primary-blue);
  font-weight: 800;
}

.services-modern .section-line {
  width: 60px;
  height: 4px;
  background: linear-gradient(135deg, var(--primary-orange), var(--light-orange));
  border-radius: 2px;
  margin-top: 0.5rem;
}

.services-modern-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.service-modern-card {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 2.5rem 1.5rem;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-modern-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.icon-wrapper {
  width: 70px;
  height: 70px;
  margin: 0 auto 1rem;
  background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.service-icon {
  font-size: 2rem;
  color: var(--white);
}

.service-modern-card h3 {
  font-size: 1.3rem;
  margin: 0.8rem 0;
  color: var(--dark-blue);
}

.service-modern-card p {
  color: var(--text-gray);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.btn-link {
  color: var(--primary-orange);
  font-weight: 600;
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease;
}

.btn-link::after {
  content: '→';
  margin-left: 0.3rem;
  transition: transform 0.3s ease;
}

.btn-link:hover {
  color: var(--dark-blue);
}

.btn-link:hover::after {
  transform: translateX(4px);
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .services-modern {
    padding: 60px 0;
  }
  .services-modern .section-title {
    font-size: 2rem;
  }
}

    /* Professional Certifications Section */
        .certifications-section {
            background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
            position: relative;
            overflow: hidden;
            padding: 100px 0;
        }

        /* Subtle background pattern */
        .certifications-section::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-image: 
                radial-gradient(circle at 1px 1px, rgba(30, 58, 138, 0.05) 1px, transparent 1px);
            background-size: 40px 40px;
        }

        .cert-grid {
            display: grid;
            grid-template-columns: 1.2fr 1fr;
            gap: 5rem;
            align-items: center;
            position: relative;
            z-index: 1;
        }

        /* Header styling */
        .cert-content h2 {
            color: var(--primary-blue);
            font-size: 2.8rem;
            margin-bottom: 1.5rem;
            font-weight: 800;
            line-height: 1.1;
            position: relative;
            letter-spacing: -1px;
        }

        .cert-content > p {
            font-size: 1.2rem;
            color: #64748b;
            line-height: 1.8;
            margin-bottom: 3rem;
            max-width: 90%;
        }

        /* Certification box container */
        .cert-highlight {
            background: white;
            padding: 0;
            border-radius: 24px;
            box-shadow: 
                0 4px 6px -1px rgba(0, 0, 0, 0.05),
                0 10px 15px -3px rgba(0, 0, 0, 0.08),
                0 20px 25px -5px rgba(0, 0, 0, 0.05);
            position: relative;
            overflow: hidden;
        }

        /* Header with gradient */
        .cert-highlight-header {
            background: linear-gradient(135deg, var(--primary-blue), #2e4a9a);
            padding: 2rem 2.5rem;
            position: relative;
            overflow: hidden;
        }

        .cert-highlight-header::after {
            content: '';
            position: absolute;
            top: -50%;
            right: -50%;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
            animation: rotate 30s linear infinite;
        }

        @keyframes rotate {
            from { transform: rotate(0deg); }
            to { transform: rotate(360deg); }
        }

        .cert-highlight h3 {
            color: white;
            font-size: 1.4rem;
            margin: 0;
            font-weight: 700;
            letter-spacing: -0.5px;
            position: relative;
            z-index: 1;
        }

        /* Certifications list */
        .cert-list {
            list-style: none;
            padding: 2rem 2.5rem 2.5rem;
            margin: 0;
            display: grid;
            gap: 1.5rem;
        }

        .cert-list li {
            display: flex;
            align-items: center;
            gap: 1.5rem;
            padding: 1.5rem;
            background: #f8fafc;
            border-radius: 16px;
            position: relative;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            border: 2px solid transparent;
        }

        .cert-list li:hover {
            background: white;
            border-color: var(--primary-orange);
            transform: translateX(8px);
            box-shadow: 
                0 10px 15px -3px rgba(255, 107, 53, 0.1),
                0 4px 6px -2px rgba(255, 107, 53, 0.05);
        }

        /* Icon container */
        .cert-icon {
            width: 60px;
            height: 60px;
            background: linear-gradient(135deg, var(--primary-orange), #e55a2b);
            border-radius: 16px;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            box-shadow: 0 8px 16px -4px rgba(255, 107, 53, 0.3);
            position: relative;
            overflow: hidden;
        }

        .cert-icon::after {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), transparent);
            transform: rotate(45deg);
        }

        .cert-icon svg {
            width: 32px;
            height: 32px;
            color: white;
            position: relative;
            z-index: 1;
        }

        /* Text content */
        .cert-text {
            flex: 1;
        }

        .cert-text strong {
            display: block;
            color: var(--primary-blue);
            font-size: 1.1rem;
            font-weight: 700;
            margin-bottom: 0.3rem;
            letter-spacing: -0.3px;
        }

        .cert-text span {
            color: #64748b;
            font-size: 0.95rem;
            line-height: 1.5;
        }

        /* Image section */
        .cert-image-wrapper {
            position: relative;
            border-radius: 24px;
            overflow: hidden;
            box-shadow: 
                0 10px 15px -3px rgba(0, 0, 0, 0.1),
                0 4px 6px -2px rgba(0, 0, 0, 0.05);
            background: white;
            padding: 8px;
        }

        .cert-image-inner {
            position: relative;
            border-radius: 16px;
            overflow: hidden;
            background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
        }

        .cert-badge {
            position: absolute;
            top: 20px;
            right: 20px;
            background: white;
            padding: 0.8rem 1.5rem;
            border-radius: 50px;
            box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
            display: flex;
            align-items: center;
            gap: 0.5rem;
            z-index: 10;
            animation: float 3s ease-in-out infinite;
        }

        @keyframes float {
            0%, 100% { transform: translateY(0px); }
            50% { transform: translateY(-10px); }
        }

        .cert-badge-icon {
            width: 24px;
            height: 24px;
            background: linear-gradient(135deg, var(--primary-orange), #e55a2b);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .cert-badge-icon svg {
            width: 14px;
            height: 14px;
            color: white;
        }

        .cert-badge span {
            font-weight: 700;
            color: var(--primary-blue);
            font-size: 0.9rem;
            letter-spacing: -0.3px;
        }

        .cert-stats {
            position: absolute;
            bottom: 20px;
            left: 20px;
            right: 20px;
            background: white;
            padding: 1.5rem;
            border-radius: 16px;
            box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
            display: flex;
            justify-content: space-around;
            gap: 1rem;
        }

        .cert-stat {
            text-align: center;
        }

        .cert-stat-value {
            display: block;
            font-size: 1.8rem;
            font-weight: 800;
            color: var(--primary-orange);
            line-height: 1;
            margin-bottom: 0.3rem;
        }

        .cert-stat-label {
            font-size: 0.85rem;
            color: #64748b;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        /* Responsive */
        @media (max-width: 1024px) {
            .cert-grid {
                grid-template-columns: 1fr;
                gap: 4rem;
            }
            
            .cert-image-wrapper {
                max-width: 600px;
                margin: 0 auto;
            }
        }

        @media (max-width: 768px) {
            .certifications-section {
                padding: 80px 0;
            }
            
            .cert-content h2 {
                font-size: 2rem;
            }
            
            .cert-content > p {
                font-size: 1.1rem;
            }
            
            .cert-highlight-header {
                padding: 1.5rem 2rem;
            }
            
            .cert-highlight h3 {
                font-size: 1.2rem;
            }
            
            .cert-list {
                padding: 1.5rem;
                gap: 1rem;
            }
            
            .cert-list li {
                padding: 1rem;
                gap: 1rem;
            }
            
            .cert-icon {
                width: 50px;
                height: 50px;
            }
            
            .cert-icon svg {
                width: 24px;
                height: 24px;
            }
            
            .cert-text strong {
                font-size: 1rem;
            }
            
            .cert-text span {
                font-size: 0.9rem;
            }
            
            .cert-badge {
                transform: scale(0.85);
                top: 10px;
                right: 10px;
            }
            
            .cert-stats {
                padding: 1rem;
                gap: 0.5rem;
            }
            
            .cert-stat-value {
                font-size: 1.5rem;
            }
            
            .cert-stat-label {
                font-size: 0.75rem;
            }
        }


/* Projects Section */
.projects-section {
    background: var(--light-gray);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.320, 1);
    position: relative;
    opacity: 0.9;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    opacity: 1;
}

.project-card img {
    transition: transform 0.6s ease;
}

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

.project-card h3 {
    color: var(--primary-blue);
    padding: 1rem 1.5rem 0.5rem;
    font-size: 1.2rem;
    transition: all 0.4s ease;
}

.project-card:hover h3 {
    color: var(--primary-orange);
    transform: translateY(-2px);
}

.project-card p {
    color: var(--text-gray);
    padding: 0 1.5rem 1.5rem;
    transition: all 0.4s ease;
}

.project-card:hover p {
    color: var(--primary-blue);
}

/* Contact Section */
.contact-section {
    background: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-icon {
    font-size: 2rem;
    color: var(--primary-orange);
}

.contact-item h3 {
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: var(--text-gray);
    margin: 0;
}

.contact-item a {
    color: var(--primary-orange);
    text-decoration: none;
    font-weight: 600;
}

.contact-item a:hover {
    color: var(--primary-blue);
}

/* Contact Form */
.contact-form {
    background: linear-gradient(135deg, 
        var(--light-gray), 
        rgba(255, 107, 53, 0.05));
    padding: 2rem;
    border-radius: var(--border-radius);
    position: relative;
    backdrop-filter: blur(10px);
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-orange);
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.3);
    transform: translateY(-2px);
}

.form-group::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 107, 53, 0.1), 
        transparent);
    transition: left 0.6s ease;
    z-index: 1;
}

.form-group:focus-within::before {
    left: 100%;
}

.form-group textarea {
    resize: vertical;
}

/* Footer */
.footer {
    background: var(--primary-blue);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: var(--primary-orange);
}

.footer-section p {
    margin-bottom: 0.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--primary-orange);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1rem;
    text-align: center;
    color: rgba(255,255,255,0.7);
}
.whatsapp-link {
  color: #25D366;   /* WhatsApp green */
  font-weight: 600;
  text-decoration: none;
}

.whatsapp-link:hover {
  text-decoration: underline;
}
/* Image Placeholders */
.image-placeholder {
    background: transparent;
    border-radius: var(--border-radius);
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    overflow: hidden;
    position: relative;
}

.image-placeholder img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    object-fit: cover;
    display: block;
}

.placeholder-content {
    text-align: center;
    color: var(--text-gray);
    font-size: 1.1rem;
    display: none;
}

.image-placeholder:not(:has(img)) {
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    border: 2px dashed #cbd5e1;
}

.image-placeholder:not(:has(img)) .placeholder-content {
    display: block;
}

/* Alternative pour les navigateurs qui ne supportent pas :has() */
.image-placeholder.empty {
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    border: 2px dashed #cbd5e1;
}

.image-placeholder.empty .placeholder-content {
    display: block;
}

.image-placeholder.has-image {
    background: transparent;
    border: none;
}

.image-placeholder.has-image .placeholder-content {
    display: none;
}

/* Service Pages */
.service-page {
    padding: 100px 0 50px;
    background: var(--white);
}

.service-page h1 {
    color: var(--primary-blue);
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.service-page h2 {
    color: var(--primary-blue);
    font-size: 1.8rem;
    margin: 2rem 0 1rem;
}

.service-page p {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.quote {
    background: var(--light-gray);
    border-left: 4px solid var(--primary-orange);
    padding: 2rem;
    margin: 2rem 0;
    font-style: italic;
    font-size: 1.1rem;
    color: var(--primary-blue);
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

/* Loading Effect */
.loading-effect {
    position: relative;
    overflow: hidden;
}

.loading-effect::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.4), 
        transparent);
    animation: shimmer 1.5s infinite;
}

/* Parallax Effect */
.parallax-element {
    transform: translateY(0);
    transition: transform 0.1s ease-out;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

/* ====================================== 
   RESPONSIVE - MOBILE
   ====================================== */
@media (max-width: 768px) {
    .nav-container {
        height: 60px;
        padding: 0 1rem;
    }

    .hamburger {
        display: flex;
    }

    /* Menu mobile */
    .nav-menu {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 60px);
        background: var(--primary-blue);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: 2rem 1rem;
        transition: left 0.3s ease;
        z-index: 999;
        overflow-y: auto;
    }

    .nav-menu.active {
        left: 0;
    }

    /* Items du menu mobile */
    .nav-menu li {
        margin: 0.8rem 0;
        width: 100%;
        max-width: 300px;
        display: flex;
        flex-direction: column;
        align-items: center;
        height: auto;
    }

    /* Animation mobile menu */
    .nav-menu.active li {
        animation: slideInFromTop 0.5s ease forwards;
    }

    /* Liens principaux mobile */
    .nav-menu > li > a,
    .dropdown-toggle {
        width: 100%;
        max-width: 250px;
        text-align: center;
        justify-content: center;
        font-size: 1.1rem;
        padding: 1rem 1.5rem;
        border-radius: 25px;
        height: auto;
        min-height: 50px;
    }

    .dropdown-toggle {
        justify-content: space-between;
    }

    /* Menu déroulant mobile */
    .dropdown-menu {
        position: static;
        opacity: 0;
        visibility: hidden;
        transform: none;
        box-shadow: none;
        border: none;
        background: rgba(255, 255, 255, 0.1);
        margin: 0.5rem 0 0 0;
        border-radius: var(--border-radius);
        max-height: 0;
        overflow: hidden;
        transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        width: 100%;
        max-width: 250px;
        backdrop-filter: blur(10px);
    }
    
    .dropdown:hover .dropdown-menu,
    .dropdown.active .dropdown-menu {
        opacity: 1;
        visibility: visible;
        max-height: 250px;
    }
    
    .dropdown-menu a {
        padding: 1rem 1.2rem;
        color: var(--white);
        background: transparent;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        font-size: 1rem;
    }
    
    .dropdown-menu a:hover {
        background: rgba(255, 107, 53, 0.4);
        color: var(--white);
        padding-left: 1.8rem;
    }

    .dropdown-menu a::before {
        background: rgba(255, 255, 255, 0.5);
    }

    .dropdown-arrow {
        font-size: 0.9rem;
    }

    /* Hero mobile */
    .hero {
        padding: 100px 0 60px;
    }
    .hero h1 {
        font-family: 'Playfair Display', serif;  /* Police élégante */
        font-size: 3rem;
        margin-bottom: 1rem;
        text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
        font-weight: 700;
        animation: slideInFromTop 1.2s ease-out 0.3s both;
        letter-spacing: 1px;   /* optionnel */
    }
    .hero p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    .cta-button {
        padding: 12px 24px;
        font-size: 1rem;
    }

    /* Sections mobile */
    .section {
        padding: 60px 0;
    }
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
    .content-grid,
    .cert-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .services-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }
    .service-features {
        grid-template-columns: 1fr;
    }
    
    /* Ajustements animations mobile */
    .service-card:hover {
        transform: translateY(-10px);
    }
    
    .project-card:hover {
        transform: translateY(-5px);
    }
    
    .feature:hover {
        transform: translateY(-5px) scale(1.01);
    }
    
    .feature-icon::after {
        display: none;
    }
    
    .service-card,
    .project-card {
        margin-bottom: 1rem;
    }
    .service-card h3,
    .feature h3 {
        font-size: 1.2rem;
    }
    .contact-form {
        padding: 1.5rem;
        margin-top: 2rem;
    }
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.8rem;
        font-size: 1rem;
    }
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    .footer-section {
        padding: 1rem 0;
    }
    .container {
        padding: 0 1rem;
    }
    .text-content h2 {
        font-size: 1.5rem;
    }
    .text-content p,
    .cert-content p,
    .feature p {
        font-size: 1rem;
    }
    .highlight-box,
    .cert-highlight {
        padding: 1.5rem;
        margin-top: 1.5rem;
    }
    .service-page {
        padding: 80px 0 30px;
    }
    .service-page h1 {
        font-size: 1.8rem;
        padding: 0 1rem;
    }
    .service-page h2 {
        font-size: 1.4rem;
    }
    .service-page p {
        font-size: 1rem;
    }
    .quote {
        padding: 1.5rem;
        font-size: 1rem;
    }
    .logo-img {
        height: 45px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.5rem;
    }
    .hero p {
        font-size: 0.9rem;
    }
    .section-title {
        font-size: 1.6rem;
    }
    .service-card,
    .project-card,
    .feature {
        padding: 1.5rem;
    }
    .service-icon,
    .feature-icon {
        font-size: 2.5rem;
    }
    .contact-icon {
        font-size: 1.5rem;
    }
    .nav-menu > li > a,
    .dropdown-toggle {
        font-size: 1rem;
        padding: 0.9rem 1.2rem;
        max-width: 220px;
    }
    .dropdown-menu {
        max-width: 220px;
    }
    .dropdown-menu a {
        padding: 0.9rem 1rem;
        font-size: 0.95rem;
    }
    .cta-button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    .contact-icon {
        align-self: center;
    }
    .form-group {
        margin-bottom: 1rem;
    }
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.7rem;
        font-size: 0.9rem;
    }
    .logo-img {
        height: 40px;
    }
    .service-page h1 {
        font-size: 1.4rem;
        line-height: 1.3;
    }
    .service-page h2 {
        font-size: 1.2rem;
    }
    .image-placeholder {
        min-height: 120px;
    }
    .placeholder-content {
        font-size: 0.9rem;
        padding: 1rem;
    }
}

/* Touch devices optimizations */
@media (hover: none) and (pointer: coarse) {
    .service-card:hover,
    .project-card:hover {
        transform: none;
        box-shadow: var(--shadow);
    }
    .nav-menu > li > a:hover,
    .dropdown-toggle:hover {
        transform: none;
        background-color: rgba(255, 255, 255, 0.1);
    }
    .cta-button:hover {
        transform: none;
    }
    .dropdown-menu a:hover {
        transform: none;
    }
    .nav-menu > li > a,
    .dropdown-toggle,
    .cta-button,
    .service-link {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        padding: 80px 0 40px;
    }
    .hero h1 {
        font-size: 1.6rem;
    }
    .nav-menu {
        height: calc(100vh - 60px);
        top: 60px;
    }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
/* —————————————————————————————
   SECTION SPACING & TRANSITIONS
   ————————————————————————————— */
.section {
  /* reduce vertical padding from 80px top/bottom to 50px */
  padding: 50px 0;
  /* ease any background- or color-changes */
  transition: background-color 0.5s ease-in-out,
              color 0.5s ease-in-out,
              padding 0.5s ease-in-out;
}

/* If you have alternating section backgrounds, this will fade between them */
.section:nth-child(even) {
  transition: background-color 0.5s ease-in-out;
}

/* tighten up headings so they sit closer to their section content */
.section .section-title {
  margin-bottom: 1.5rem; /* was 3rem or similar */
  transition: color 0.3s ease-in-out;
}
.section .section-subtitle {
  margin-bottom: 0.5rem; /* was perhaps 1rem */
  transition: color 0.3s ease-in-out;
}

/* globally smooth out hover, focus and transform effects */
*,
*::before,
*::after {
  transition: all 0.3s ease-in-out !important;
}

/* example: buttons and links */
a,
button,
.cta-button,
.service-card,
.solution-card-modern {
  transition: background-color 0.3s ease,
              color 0.3s ease,
              transform 0.3s ease,
              box-shadow 0.3s ease;
}

/* Hero & background shimmer */
.hero,
.hero::before {
  transition: background-position 2s ease-in-out,
              background-color 0.5s ease-in-out;
}

