:root {
    --primary: #d00000; /* Rouge GS */
    --secondary: #333333; /* Gris foncé */
    --tertiary: #0a1045; /* Bleu foncé */
    --accent: #ffb400; /* Jaune accent */
    --light: #f5f5f5; /* Gris clair */
  }
  
  body {
    font-family: "Montserrat", sans-serif;
    color: #333;
    background-color: #fafafa;
    overflow-x: hidden;
  }
  
  .bg-primary {
    background-color: var(--primary);
  }
  .bg-secondary {
    background-color: var(--secondary);
  }
  .bg-tertiary {
    background-color: var(--tertiary);
  }
  .bg-accent {
    background-color: var(--accent);
  }
  .text-primary {
    color: var(--primary);
  }
  .text-secondary {
    color: var(--secondary);
  }
  .text-tertiary {
    color: var(--tertiary);
  }
  .text-accent {
    color: var(--accent);
  }
  .border-primary {
    border-color: var(--primary);
  }
  
  .hero-section {
    position: relative;
    background-position: center;
    background-size: cover;
    height: 85vh;
  }
  
  .hero-overlay {
    background: rgba(0, 0, 0, 0.5);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }
  
  .nav-link {
    position: relative;
    padding: 0.5rem 1rem;
    margin: 0 0.5rem;
    color: #fff;
    font-weight: 500;
    transition: all 0.3s ease;
  }
  
  .nav-link:after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--accent);
    transition: all 0.3s ease;
  }
  
  .nav-link:hover:after,
  .nav-link.active:after {
    width: 80%;
    left: 0;
  }
  
  .service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  }
  
  .section-heading {
    position: relative;
    margin-bottom: 3rem;
  }
  
  .section-heading:after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -10px;
    width: 80px;
    height: 4px;
    background-color: var(--primary);
  }
  
  .testimonial-card {
    position: relative;
    padding: 2.5rem 1.5rem 1.5rem;
  }
  
  .testimonial-card::before {
    content: "\f10d";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    font-size: 2rem;
    top: 10px;
    left: 20px;
    color: rgba(208, 0, 0, 0.2);
  }
  
  .btn-primary {
    background-color: var(--primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
  }
  
  .btn-primary:hover {
    background-color: #b00000; /* Slightly darker red */
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(208, 0, 0, 0.3);
  }
  
  .btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
  }
  
  .btn-outline:hover {
    background-color: var(--primary);
    color: white;
  }
  
  .team-member {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  }
  
  .team-member img {
    transition: transform 0.5s ease;
  }
  
  .team-member:hover img {
    transform: scale(1.05);
  }
  
  .team-overlay {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 2rem 1rem;
    transition: bottom 0.3s ease;
  }
  
  .team-member:hover .team-overlay {
    bottom: 0;
  }
  
  .contact-info {
    position: relative;
    padding-left: 3rem;
    margin-bottom: 1.5rem;
  }
  
  .contact-info i {
    position: absolute;
    left: 0;
    top: 0.25rem;
    font-size: 1.5rem;
    color: var(--primary);
  }
  
  .contact-form input,
  .contact-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    transition: border-color 0.3s ease;
  }
  
  .contact-form input:focus,
  .contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
  }
  
  .project-card {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
  }
  
  .project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 16, 69, 0.8);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    padding: 1.5rem;
  }
  
  .project-card:hover .project-overlay {
    opacity: 1;
  }
  
  /* Modèle numérique de terrain animation */
  .terrain-bg {
    background: linear-gradient(45deg, var(--primary) 0%, var(--tertiary) 100%);
    background-size: 200% 200%;
    animation: gradientBG 15s ease infinite;
  }
  
  @keyframes gradientBG {
    0% {
      background-position: 0% 50%;
    }
    50% {
      background-position: 100% 50%;
    }
    100% {
      background-position: 0% 50%;
    }
  }
  
  /* Counter animation */
  .counter-value {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 0.5rem;
  }  

  .service-card {
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 20px rgba(0, 0, 0, 0.1);
}

/* Nouvelle approche pour la timeline */
.timeline-step {
    position: relative;
    padding-left: 3rem;
    margin-bottom: 3rem;
}
.timeline-step:last-child {
    margin-bottom: 0;
}
.timeline-step::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #d00000, #ffb400);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    z-index: 2;
}
.timeline-step::after {
    content: "";
    position: absolute;
    left: 0.9rem;
    top: 2rem;
    width: 2px;
    height: calc(100% + 1rem);
    background: linear-gradient(to bottom, #d00000, #ffb400);
    z-index: 1;
}
.timeline-step:last-child::after {
    display: none;
}

/* Icônes animées */
.icon-bounce {
    animation: bounce 6s infinite;
}
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Optimisations responsive */
@media (max-width: 768px) {
    .mobile-stack {
        flex-direction: column;
    }
    .mobile-center {
        text-align: center;
    }
    .mobile-full {
        width: 100%;
    }
    .mobile-mb-4 {
        margin-bottom: 1rem;
    }
    .timeline-step {
        padding-left: 2.5rem;
    }
    .timeline-step::before {
        width: 1.8rem;
        height: 1.8rem;
        left: 0.1rem;
    }
    .timeline-step::after {
        left: 0.8rem;
    }
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}
.step-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, #d00000, #ffb400);
    z-index: 0;
}
.sector-badge {
    transition: all 0.3s ease;
}
.sector-badge:hover {
    transform: scale(1.05);
}
.guarantee-card {
    transition: all 0.3s ease;
}
.guarantee-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}
@media (max-width: 768px) {
    .step-container::before {
        left: 30px;
    }
}

.topo-gradient {
    background: linear-gradient(135deg, #2c5282 0%, #1a936f 100%);
}
.service-card {
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.1);
}
.step-card {
    transition: all 0.3s ease;
}
.step-card:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}
.tech-icon {
    animation: float 6s ease-in-out infinite;
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
.sector-badge {
    transition: all 0.3s ease;
}
.sector-badge:hover {
    transform: scale(1.05);
}
.why-card:hover .why-icon {
    transform: rotate(5deg) scale(1.1);
}

body {
    font-family: 'Montserrat', sans-serif;
    color: #333;
    line-height: 1.6;
}

.bg-primary {
    background-color: #e1261c;
}

.text-primary {
    color: #e1261c;
}

.border-primary {
    border-color: #e1261c;
}

.banner {
    background: linear-gradient(rgba(225, 38, 28, 0.85), rgba(225, 38, 28, 0.85)), url('https://images.unsplash.com/photo-1565816329301-934a7b00c01a?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80') center/cover no-repeat;
    height: 300px;
}

.value-card {
    transition: transform 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.stats-item {
    border-left: 4px solid #e1261c;
}

.count-container .count {
    font-size: 3rem;
    font-weight: 700;
}

.pdca-step {
    position: relative;
}

.pdca-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -15px;
    width: 30px;
    height: 2px;
    background-color: #e1261c;
}

@media (max-width: 768px) {
    .pdca-step:not(:last-child)::after {
        top: auto;
        right: 50%;
        bottom: -15px;
        width: 2px;
        height: 30px;
    }
}

/* Navbar */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-link {
    position: relative;
    text-align: center;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent);
    transition: width 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active {
    color: var(--accent);
    font-weight: 600;
}

.nav-link.active::after {
    width: 100%;
}

/* Footer */
.footer {
    background-color: #333;
    color: white;
}