/* Variables */
:root {
  --primary-color: #2563eb;
  --primary-dark: #1d4ed8;
  --secondary-color: #3b82f6;
  --accent-color: #f59e0b;
  --text-color: #1f2937;
  --text-light: #6b7280;
  --light-bg: #f8fafc;
  --dark-bg: #1e293b;
  --transition-speed: 0.3s;
  --border-radius: 12px;
}

/* General Styles */
body {
  font-family: "Inter", "Segoe UI", sans-serif;
  color: var(--text-color);
  line-height: 1.7;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.py-8 {
  padding-top: 6rem;
  padding-bottom: 6rem;
}

.bg-gradient {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--primary-dark) 100%
  );
  color: white;
}

/* Hero Section */
.hero {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--dark-bg) 100%
  );
  color: white;
  position: relative;
  overflow: hidden;
  min-height: 100vh;
}

.hero p.lead {
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 1.2rem;
  max-width: 90%;
}

.hero-particles {
  opacity: 0.3;
}

.text-gradient {
  background: linear-gradient(
    to right,
    var(--accent-color),
    var(--secondary-color)
  );
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  padding-right: 5px; /* Pour éviter la troncature du gradient */
}

.hero-image {
  position: relative;
  z-index: 2;
}

.floating-elements {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.float-element {
  position: absolute;
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  animation: float 6s ease-in-out infinite;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.float-element:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.fe-1 {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.fe-2 {
  top: 50%;
  right: 15%;
  animation-delay: 2s;
}

.fe-3 {
  bottom: 20%;
  left: 20%;
  animation-delay: 4s;
}

.innovation-shape {
  bottom: 10%;
  right: -20px;
  z-index: 3;
  width: 120px;
  height: 120px;
  animation: float 8s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

.hero-tech {
  margin-top: 2rem;
}

.hero-tech span {
  opacity: 0.9;
  font-weight: 500;
}

.tech-stack img {
  filter: brightness(1.2);
  transition: all 0.3s ease;
}

.tech-stack img:hover {
  transform: scale(1.2);
}

/* Services Section */
.services-carousel-wrapper {
  overflow: hidden;
  margin-bottom: 3rem;
}

.services-carousel {
  display: flex;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  animation: autoSlide 20s infinite linear;
}

.services-carousel:hover {
  animation-play-state: paused;
}

.service-slide {
  flex: 0 0 350px;
  margin-right: 2rem;
}

.service-card {
  background: white;
  padding: 2.5rem;
  border-radius: var(--border-radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all var(--transition-speed) ease;
  position: relative;
  overflow: hidden;
  height: 100%;
  min-height: 500px;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(
    to right,
    var(--primary-color),
    var(--secondary-color)
  );
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-speed) ease;
}

.service-card:hover {
  transform: translateY(-10px);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  margin-bottom: 2rem;
}

.icon-wrapper {
  width: 70px;
  height: 70px;
  background: rgba(var(--bs-primary-rgb), 0.1);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--primary-color);
  transition: all var(--transition-speed) ease;
}

.service-card:hover .icon-wrapper {
  background: var(--primary-color);
  color: white;
  transform: rotateY(180deg);
}

.service-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.service-description {
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.service-features {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
}

.service-features li {
  display: flex;
  align-items: center;
  margin-bottom: 0.8rem;
  color: var(--text-light);
}

.service-features li i {
  color: var(--primary-color);
  margin-right: 0.8rem;
  font-size: 1.1rem;
}

.service-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  transition: all var(--transition-speed) ease;
}

.service-link:hover {
  color: var(--primary-dark);
  transform: translateX(5px);
}

/* Carousel Controls */
.carousel-controls {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  z-index: 10;
}

.carousel-btn {
  pointer-events: all;
  width: 50px;
  height: 50px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary-color);
  font-size: 1.2rem;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.8;
}

.carousel-btn:hover {
  background: var(--primary-color);
  color: white;
  transform: scale(1.1);
  opacity: 1;
}

.prev-btn {
  margin-left: -25px;
}

.next-btn {
  margin-right: -25px;
}

/* Carousel Indicators */
.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.3);
  cursor: pointer;
  transition: all var(--transition-speed) ease;
}

.indicator.active,
.indicator:hover {
  background: var(--primary-color);
  transform: scale(1.2);
}

/* Carousel Animation */
@keyframes autoSlide {
  0% {
    transform: translateX(0);
  }
  20% {
    transform: translateX(-372px);
  }
  40% {
    transform: translateX(-744px);
  }
  60% {
    transform: translateX(-1116px);
  }
  80% {
    transform: translateX(-1488px);
  }
  100% {
    transform: translateX(-1860px);
  }
}

/* Process Section */
.process-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: var(--border-radius);
  text-align: center;
  transition: all var(--transition-speed) ease;
}

.process-card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.15);
}

.process-number {
  font-size: 3rem;
  font-weight: 700;
  background: linear-gradient(
    to right,
    var(--accent-color),
    var(--secondary-color)
  );
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
}

.process-card h3 {
  color: white;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.process-card p {
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

/* Projects Section */
.projects-slider {
  margin: 0 -15px;
  padding: 1rem 0;
}

.project-card {
  padding: 15px;
}

.project-image {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.project-image img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: all var(--transition-speed) ease;
}

.project-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
  transform: translateY(100%);
  transition: all var(--transition-speed) ease;
}

.project-category {
  display: inline-block;
  background: var(--accent-color);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.project-title {
  color: white;
  margin-bottom: 1.5rem;
}

.project-image:hover img {
  transform: scale(1.1);
}

.project-image:hover .project-overlay {
  transform: translateY(0);
}

/* Stats Section */
.stat-card {
  text-align: center;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: var(--border-radius);
  transition: all var(--transition-speed) ease;
}

.stat-card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.15);
}

.stat-icon {
  font-size: 2.5rem;
  color: var(--accent-color);
  margin-bottom: 1rem;
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
}

/* Testimonials Section */
.testimonials-slider {
  margin: 0 -15px;
  padding: 1rem 0;
}

.testimonial-card {
  background: white;
  padding: 2.5rem;
  border-radius: var(--border-radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  margin: 15px;
  transition: all var(--transition-speed) ease;
}

.testimonial-card:hover {
  transform: translateY(-10px);
}

.testimonial-rating {
  color: var(--accent-color);
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.testimonial-content {
  font-size: 1.1rem;
  color: var(--text-color);
  font-style: italic;
  margin-bottom: 2rem;
  position: relative;
}

.testimonial-content::before {
  content: '"';
  font-size: 4rem;
  color: var(--primary-color);
  opacity: 0.1;
  position: absolute;
  top: -1rem;
  left: -1rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.author-image {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin-right: 1rem;
  border: 3px solid var(--light-bg);
}

.author-info h5 {
  margin: 0;
  color: var(--text-color);
  font-size: 1.1rem;
}

.author-info span {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* CTA Section */
.cta {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--dark-bg) 100%
  );
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("../images/pattern.svg") repeat;
  opacity: 0.1;
}

.btn {
  padding: 0.8rem 2rem;
  border-radius: 30px;
  font-weight: 500;
  transition: all var(--transition-speed) ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary {
  background: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-outline-light:hover {
  background: white;
  color: var(--primary-color);
  transform: translateY(-2px);
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
  .hero {
    text-align: center;
    padding: 6rem 0;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-tech {
    justify-content: center;
  }

  .process-card {
    margin-bottom: 2rem;
  }

  /* Responsive Services Carousel */
  .service-slide {
    flex: 0 0 300px;
  }

  .carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .prev-btn {
    margin-left: -20px;
  }

  .next-btn {
    margin-right: -20px;
  }

  @keyframes autoSlide {
    0% {
      transform: translateX(0);
    }
    20% {
      transform: translateX(-322px);
    }
    40% {
      transform: translateX(-644px);
    }
    60% {
      transform: translateX(-966px);
    }
    80% {
      transform: translateX(-1288px);
    }
    100% {
      transform: translateX(-1610px);
    }
  }
}

@media (max-width: 767.98px) {
  .py-8 {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  h1.display-2 {
    font-size: 2.5rem;
  }

  h2.display-5 {
    font-size: 2rem;
  }

  .service-card {
    padding: 2rem;
  }

  .stat-card {
    margin-bottom: 1rem;
  }

  .testimonial-card {
    padding: 1.5rem;
  }

  .hero-tech {
    justify-content: center;
    margin-top: 2rem;
    display: flex !important;
  }

  .tech-stack {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero p.lead {
    max-width: 100%;
  }

  /* Mobile Services Carousel */
  .service-slide {
    flex: 0 0 280px;
    margin-right: 1rem;
  }

  .service-card {
    padding: 1.5rem;
    min-height: 450px;
  }

  .carousel-controls {
    display: none;
  }

  .services-carousel {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  @keyframes autoSlide {
    0% {
      transform: translateX(0);
    }
    20% {
      transform: translateX(-292px);
    }
    40% {
      transform: translateX(-584px);
    }
    60% {
      transform: translateX(-876px);
    }
    80% {
      transform: translateX(-1168px);
    }
    100% {
      transform: translateX(-1460px);
    }
  }
}

/* Navigation */
.navbar {
  padding: 1rem 0;
  transition: all var(--transition-speed) ease;
  background: rgba(255, 255, 255, 0.98);
}

.navbar.scrolled {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand img {
  transition: transform var(--transition-speed) ease;
}

.navbar-brand img:hover {
  transform: scale(1.05);
}

.nav-link {
  font-weight: 500;
  color: var(--primary-color) !important;
  transition: color var(--transition-speed) ease;
  position: relative;
  padding: 0.5rem 1rem !important;
}

.nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background-color: var(--secondary-color);
  transition: all var(--transition-speed) ease;
  transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Why Choose Us Section */
.why-us-image {
  border-radius: 20px;
  overflow: hidden;
}

.experience-badge {
  position: absolute;
  bottom: 30px;
  right: -30px;
  background: var(--bs-primary);
  color: white;
  padding: 2rem;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.experience-badge .number {
  font-size: 2.5rem;
  font-weight: bold;
  display: block;
  line-height: 1;
}

.feature-item {
  background: white;
  padding: 1.5rem;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-5px);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: rgba(var(--bs-primary-rgb), 0.1);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.feature-icon i {
  font-size: 1.5rem;
  color: var(--bs-primary);
}

/* Stats Section */
.stats {
  background: linear-gradient(135deg, var(--bs-primary) 0%, #2c3e50 100%);
  color: white;
}

.stat-item {
  padding: 2rem;
}

.stat-number {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* Testimonials Section */
.testimonial-card {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  height: 100%;
}

.testimonial-content {
  font-style: italic;
  margin-bottom: 1.5rem;
  color: var(--bs-gray-700);
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.author-image {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin-right: 1rem;
}

.author-info h5 {
  margin: 0;
  color: var(--bs-gray-900);
}

.author-info span {
  color: var(--bs-gray-600);
  font-size: 0.9rem;
}

/* CTA Section */
.cta {
  background: linear-gradient(135deg, var(--bs-primary) 0%, #2c3e50 100%);
  color: white;
}

/* Portfolio Hero Section */
.portfolio-hero {
  background-color: var(--bs-light);
}

.portfolio-hero h1 {
  color: var(--primary-color);
}

.portfolio-hero .lead {
  color: #666;
  font-size: 1.2rem;
}

/* Portfolio Filters */
.portfolio-filters {
  background-color: #fff;
  margin-bottom: 2rem;
}

.portfolio-filters .btn-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.portfolio-filters .btn {
  border-radius: 30px;
  padding: 8px 20px;
  margin: 5px;
  transition: all 0.3s ease;
}

.portfolio-filters .btn.active {
  background-color: var(--bs-primary);
  color: white;
}

/* Portfolio Grid */
.portfolio-grid {
  padding: 2rem 0;
}

.portfolio-item {
  margin-bottom: 2rem;
  transition: all 0.3s ease;
}

.portfolio-item.hidden {
  display: none;
}

.portfolio-card {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.portfolio-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.portfolio-overlay {
  position: absolute;
  bottom: -100%;
  left: 0;
  width: 100%;
  padding: 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: white;
  transition: bottom 0.3s ease;
}

.portfolio-overlay h3 {
  color: white;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.portfolio-overlay p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.5rem;
  transform: translateY(20px);
  transition: all 0.3s ease 0.1s;
}

.portfolio-overlay .btn {
  transform: translateY(20px);
  transition: all 0.3s ease 0.2s;
  padding: 0.8rem 2rem;
  font-weight: 500;
}

.portfolio-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.portfolio-card:hover .portfolio-overlay {
  bottom: 0;
}

.portfolio-card:hover .portfolio-overlay h3,
.portfolio-card:hover .portfolio-overlay p,
.portfolio-card:hover .portfolio-overlay .btn {
  transform: translateY(0);
}

.portfolio-card:hover img {
  transform: scale(1.1);
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
  .portfolio-hero {
    margin-top: 2rem;
  }

  .portfolio-filters .btn {
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
  }

  .portfolio-card img {
    height: 250px;
  }
}

@media (max-width: 767.98px) {
  .portfolio-hero h1 {
    font-size: 2rem;
  }

  .portfolio-hero .lead {
    font-size: 1rem;
  }

  .portfolio-filters .btn-group {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 1rem;
  }

  .portfolio-card {
    margin-bottom: 1rem;
  }
}

/* Contact Section */
.contact-section {
  background-color: var(--light-bg);
}

.contact-section a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-section a:hover {
  color: var(--primary-color);
}

/* Contact Form */
.contact-form {
  background: white;
  padding: 3rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-control {
  padding: 12px;
  border-radius: 5px;
  border: 1px solid var(--bs-gray-300);
  transition: all var(--transition-speed) ease;
}

.form-control:focus {
  box-shadow: 0 0 0 0.2rem rgba(var(--bs-primary-rgb), 0.25);
  border-color: var(--primary-color);
}

.form-control.is-invalid {
  border-color: #dc3545;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.form-control.is-valid {
  border-color: #28a745;
  box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

/* Form validation feedback */
.form-group {
  position: relative;
  margin-bottom: 1.5rem;
}

.form-label {
  font-weight: 500;
  color: var(--text-color);
  margin-bottom: 0.5rem;
}

.form-label.required::after {
  content: " *";
  color: #dc3545;
}

/* Buttons */
.btn {
  padding: 0.8rem 2rem;
  border-radius: 25px;
  font-weight: 500;
  transition: all var(--transition-speed) ease;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  padding: 12px 30px;
  border-radius: 5px;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 1px;
}

.btn-primary:hover {
  background-color: var(--primary-color);
  transform: translateY(-2px);
}

/* WhatsApp Button */
.whatsapp-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
  transition: all 0.3s ease;
  z-index: 1000;
  transform: scale(0);
  opacity: 0;
}

.whatsapp-button:hover {
  transform: scale(1.1) !important;
  color: white;
  text-decoration: none;
}

/* Mobile CTA Buttons */
.mobile-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  padding: 1rem;
  display: flex;
  justify-content: space-around;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  z-index: 999;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.mobile-cta.visible {
  transform: translateY(0);
}

/* Mobile Navigation Improvements */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background-color: white;
    padding: 1rem;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-top: 1rem;
  }

  .navbar-nav {
    margin: 1rem 0;
  }

  .navbar-nav .nav-item {
    text-align: center;
    margin: 0.5rem 0;
  }

  .mobile-cta {
    display: flex;
  }

  .hero-section {
    padding-top: 8rem !important;
  }

  .main {
    padding-bottom: 4rem; /* Space for mobile CTA */
  }

  .hero {
    height: auto !important;
    min-height: 100vh;
  }
}

/* Ajustements pour l'accessibilité */
.btn::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.btn:active::after {
  width: 300px;
  height: 300px;
}

/* Ajustements pour les sliders */
.slick-dots {
  bottom: -40px;
}

.slick-dots li button:before {
  font-size: 10px;
  color: var(--primary-color);
  opacity: 0.3;
}

.slick-dots li.slick-active button:before {
  opacity: 1;
  color: var(--primary-color);
}

.slick-prev,
.slick-next {
  width: 40px;
  height: 40px;
  background: var(--primary-color);
  border-radius: 50%;
  z-index: 1;
  transition: all var(--transition-speed) ease;
}

.slick-prev:hover,
.slick-next:hover {
  background: var(--primary-dark);
}

.slick-prev:before,
.slick-next:before {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  font-size: 16px;
}

.slick-prev:before {
  content: "\f053";
}

.slick-next:before {
  content: "\f054";
}

.slick-track {
  display: flex !important;
}

.slick-slide {
  height: inherit !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
}

/* Animations d'entrée */
.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Ajustements pour les dimensions des images */
.project-image img,
.portfolio-card img {
  aspect-ratio: 16/9;
  object-fit: cover;
}

/* Fix pour les problèmes d'affichage particles.js */
#particles-js {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 0;
}

/* Footer */
footer {
  background-color: var(--primary-color);
}

footer a {
  color: white;
  transition: color 0.3s ease;
}

footer a:hover {
  color: var(--secondary-color);
}

/* Responsive Design */
@media (max-width: 991.98px) {
  .hero-section {
    height: auto;
    min-height: 100vh;
    padding: 6rem 0;
  }

  .hero-section h1 {
    font-size: 2.5rem;
  }

  .service-card {
    margin-bottom: 2rem;
  }
}

@media (max-width: 767.98px) {
  .section-padding {
    padding: 4rem 0;
  }

  .hero-section {
    height: auto;
    min-height: 100vh;
    padding: 6rem 0;
  }

  .portfolio-card img {
    height: 250px;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Modal Styles */
.modal-content {
  border-radius: 15px;
  overflow: hidden;
}

.modal-header {
  background-color: var(--bs-primary);
  color: white;
  border: none;
}

.modal-body {
  padding: 30px;
}

.modal-body img {
  border-radius: 10px;
  margin-bottom: 20px;
}

.modal-body h6 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.modal-body ul {
  list-style: none;
  padding-left: 0;
}

.modal-body ul li {
  padding: 5px 0;
  color: var(--bs-gray-700);
}

.modal-body ul li:before {
  content: "•";
  color: var(--bs-primary);
  font-weight: bold;
  margin-right: 10px;
}

/* CTA Section Enhancement */
.cta-section {
  background: linear-gradient(rgba(44, 62, 80, 0.95), rgba(44, 62, 80, 0.95)),
    url("https://images.pexels.com/photos/1181467/pexels-photo-1181467.jpeg");
  background-size: cover;
  background-position: center;
  color: white;
  padding: 6rem 0;
}

.cta-section h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.cta-section .btn-primary {
  background: white;
  color: var(--primary-color);
  border: none;
  padding: 1rem 3rem;
  font-size: 1.1rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.cta-section .btn-primary:hover {
  background: var(--secondary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Testimonial Cards */
.testimonial-card {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  height: 100%;
  transition: all var(--transition-speed) ease;
}

.testimonial-card:hover {
  transform: translateY(-10px);
}

.testimonial-content {
  position: relative;
}

.testimonial-content .fa-quote-left {
  font-size: 2rem;
  color: var(--secondary-color);
  opacity: 0.3;
}

.testimonial-author {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #eee;
}

/* Feature List */
.feature-list .feature-item {
  padding: 1.5rem;
  border-radius: 10px;
  transition: all var(--transition-speed) ease;
  background: white;
  margin-bottom: 1rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.feature-list .feature-item:hover {
  transform: translateX(10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.feature-list .feature-item i {
  font-size: 1.5rem;
  color: var(--secondary-color);
}

/* Contact Preview */
.contact-preview {
  background-color: var(--light-bg);
}

.contact-info i {
  font-size: 1.5rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(52, 152, 219, 0.1);
}

.contact-form {
  transition: all var(--transition-speed) ease;
}

.contact-form:hover {
  transform: translateY(-5px);
}

/* CTA Section */
.cta-section {
  background: linear-gradient(rgba(44, 62, 80, 0.95), rgba(44, 62, 80, 0.95)),
    url("https://images.pexels.com/photos/1181467/pexels-photo-1181467.jpeg");
  background-size: cover;
  background-position: center;
  color: white;
  position: relative;
}

.cta-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    45deg,
    var(--primary-color),
    var(--secondary-color)
  );
  opacity: 0.9;
}

.cta-section .container {
  position: relative;
  z-index: 1;
}

/* Footer Enhancement */
footer {
  background-color: var(--primary-color);
}

footer .social-links a {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transition: all var(--transition-speed) ease;
}

footer .social-links a:hover {
  background: var(--secondary-color);
  transform: translateY(-3px);
}

/* Project Page Styles */
.project-hero {
  background-color: var(--light-bg);
  border-radius: 15px;
  margin-bottom: 2rem;
}

.project-hero img {
  transform: translateY(20px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.project-details .card {
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.project-details .card:hover {
  transform: translateY(-5px);
}

.project-gallery img {
  transition: transform 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.project-gallery img:hover {
  transform: scale(1.05);
}

.testimonial-card {
  background: linear-gradient(145deg, #ffffff, #f8f9fa);
  border: none;
  transition: transform 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
}

.testimonial-card img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border: 5px solid white;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.testimonial-card .rating {
  margin-top: 1rem;
}

.testimonial-card .rating i {
  color: #ffc107;
  margin: 0 2px;
}

/* Responsive Adjustments for Project Pages */
@media (max-width: 991.98px) {
  .project-hero {
    text-align: center;
  }

  .project-hero img {
    margin-top: 2rem;
    transform: none;
  }
}

@media (max-width: 767.98px) {
  .project-gallery .col-md-4 {
    margin-bottom: 1.5rem;
  }
}

/* Contact Page Styles */
.contact-hero {
  background-color: var(--bs-light);
}

.contact-content {
  background-color: #fff;
}

.contact-info .info-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 30px;
}

.contact-info .info-item i {
  font-size: 24px;
  color: var(--bs-primary);
  margin-top: 5px;
}

.contact-info .info-item div {
  flex: 1;
}

.contact-info .info-item h5 {
  margin-bottom: 5px;
  color: var(--bs-dark);
}

.contact-info .info-item p {
  margin-bottom: 0;
  color: var(--bs-gray-600);
}

.map-container {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Logo */
.navbar-brand {
  padding: 0;
}

.navbar-brand .logo {
  height: 120px;
  width: auto;
  transition: all 0.3s ease;
}

.navbar-brand:hover .logo {
  transform: scale(1.05);
  filter: brightness(1.1);
}

/* Correction affichage texte descriptif */
@media (max-width: 767.98px) {
  .hero h1.display-2 {
    font-size: 2.5rem;
    line-height: 1.2;
  }

  .hero p.lead {
    font-size: 1.1rem;
    line-height: 1.5;
    color: white !important;
    margin-bottom: 2rem;
  }

  .hero .btn {
    margin-bottom: 0.5rem;
  }
}

/* Technologies Section */
.technologies {
  padding: 2rem 0;
  background-color: #f8f9fa;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.technologies-title {
  font-size: 1.5rem;
  color: var(--text-color);
  font-weight: 600;
  position: relative;
  display: inline-block;
  margin-bottom: 2rem;
}

.technologies-title:after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: var(--primary-color);
  border-radius: 3px;
}

.tech-icons {
  justify-content: center;
  align-items: center;
}

.tech-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.3s ease;
  padding: 1rem;
}

.tech-icon:hover {
  transform: translateY(-5px);
}

.tech-icon img {
  margin-bottom: 0.5rem;
  transition: all 0.3s ease;
}

.tech-icon:hover img {
  transform: scale(1.1);
}

.tech-icon span {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-color);
}

@media (max-width: 767.98px) {
  .technologies {
    padding: 1.5rem 0;
  }

  .tech-icons {
    gap: 2rem !important;
  }

  .tech-icon {
    padding: 0.5rem;
  }

  .tech-icon img {
    width: 40px;
  }
}
