/* Import des polices */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Montserrat:wght@400;500;600;700;800&display=swap');

/* Variables */
:root {
  --primary: rgb(0, 70, 103);           /* Bleu du logo */
  --primary-light: rgb(0, 100, 150);    /* Version plus claire */
  --primary-dark: rgb(0, 50, 75);
  --secondary: #ff9800;
  --secondary-light: #ffc947;
  --secondary-dark: #c66900;
  --dark: #212121;
  --light: #f5f5f5;
  --white: #ffffff;
  --grey: #9e9e9e;
  --success: #4caf50;
  --warning: #ff5722;
  --info: #2196f3;
}

/* Reset et styles de base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

html, body {
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  background-color: var(--light);
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-weight: 700;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1rem;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  position: relative;
}

/* Boutons et éléments communs */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  background-color: var(--secondary);
  color: var(--white);
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  border: 2px solid var(--secondary);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn:active {
  transform: translateY(0);
}

.btn::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: -100%;
  background: rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  z-index: -1;
}

.btn:hover::after {
  left: 0;
}

.btn-outline {
  background-color: var(--primary); /* Orange */
  color: var(--white);
  border: 2px solid var(--primary);
  margin-left: 1rem;
}

.btn-outline2 {
  margin-left: 1rem;
  background-color: var(--white);
  color: var(--primary-dark); /* Couleur bleue foncée */
  border: 2px solid var(--white);
}

.btn-outline:hover {
  background-color: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline2:hover {
  border-color: var(--white);
  background-color: transparent;
  color: var(--white);
}

.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
}

.btn-primary:hover {
  background-color: transparent;
  color: var(--primary);
}

/* Chargeur de page (Preloader) */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--white);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader {
  width: 50px;
  height: 50px;
  border: 5px solid var(--light);
  border-top: 5px solid var(--secondary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* En-tête (Header) avec logo */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: all 0.3s ease;
}

header.scrolled {
  padding: 0.5rem 0;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
}

.logo-container {
  display: flex;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  transition: all 0.3s ease;
  width: auto;
  max-height: 55px;
  object-fit: contain;
}

.logo-subtitle {
  margin-left: 10px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.5px;
  color: var(--dark);
}


header.scrolled .logo img {
  height: 50px; /* Logo légèrement plus petit quand on défile */
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 2rem;
}

nav ul li a {
  text-decoration: none;
  color: var(--dark);
  font-weight: 600;
  transition: color 0.3s ease;
  position: relative;
  padding: 0.5rem 0;
}

nav ul li a:after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--secondary);
  transition: width 0.3s ease;
}

nav ul li a:hover {
  color: var(--secondary);
}

nav ul li a:hover:after,
nav ul li a.active:after {
  width: 100%;
}

.mobile-toggle {
  display: none;
  cursor: pointer;
  z-index: 1001;
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  background-color: var(--dark);
  transition: all 0.3s ease;
}

.mobile-toggle.active .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.mobile-toggle.active .bar:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Adaptatif pour le logo */
@media (max-width: 768px) {
  .logo img {
    height: 50px;
  }
  
  header.scrolled .logo img {
    height: 45px;
  }
}

@media (max-width: 576px) {
  .logo img {
    height: 45px;
  }
  
  header.scrolled .logo img {
    height: 40px;
  }
}

/* Section Héro */
.hero {
  height: 100vh;
  background: linear-gradient(rgba(0, 70, 103, 0.85), rgba(0, 100, 150, 0.75)), url('/api/placeholder/1200/800') center/cover no-repeat;
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--white);
  margin-top: 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, transparent 20%, #000 150%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s forwards 0.5s;
}

.hero h1 span {
  color: var(--secondary);
  position: relative;
  display: inline-block;
}

.hero h1 span::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--secondary);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s forwards 0.7s;
}

.hero-btns {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s forwards 0.9s;
}

.scroll-down {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: bounce 2s infinite;
  cursor: pointer;
}

.scroll-down svg {
  width: 30px;
  height: 30px;
  color: var(--white);
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0) translateX(-50%);
  }
  40% {
    transform: translateY(-10px) translateX(-50%);
  }
  60% {
    transform: translateY(-5px) translateX(-50%);
  }
}

/* Styles communs des sections */
section {
  padding: 6rem 0;
  position: relative;
}

.section-bg {
  background-color: var(--white);
}

.section-title {
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
}

.section-title h2 {
  font-size: 2.5rem;
  color: var(--primary);
  position: relative;
  display: inline-block;
  margin-bottom: 1.5rem;
}

.section-title h2::after {
  content: '';
  position: absolute;
  width: 70px;
  height: 3px;
  background-color: var(--secondary);
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
}

.section-title p {
  max-width: 700px;
  margin: 0 auto;
  color: var(--grey);
}

/* Section À propos - Version adaptée */
.about-content {
  position: relative;
  margin-bottom: 3rem;
  text-align: justify;
}

/* Texte d'introduction - en haut */
.about-intro {
  width: 100%;
  margin-bottom: 2rem;
}

.about-intro p {
  margin-bottom: 1rem;
  color: var(--dark);
}

/* Conteneur principal pour l'image et la liste */
.about-main-content {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 2rem;
  text-align: justify;
}

/* Image à gauche */
.about-image {
  flex: 0 0 40%;
  max-width: 40%;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  line-height: 0; /* Supprime tout espace entre l'image et son conteneur */
  font-size: 0; /* Supprime tout espace qui pourrait être causé par le texte */
  height: auto;
  max-height: 450px;
}

.about-image:hover {
  transform: perspective(1000px) rotateY(5deg);
}

.about-image img {
  width: 100%;
  height: 100%; /* Force l'image à remplir toute la hauteur */
  display: block; /* Supprime l'espace sous l'image */
  object-fit: cover; /* Assure que l'image couvre tout son conteneur */
  max-height: 450px;
  transition: transform 0.5s ease;
}

.about-image:hover img {
  transform: scale(1.05);
}

/* Liste et texte à droite */
.about-list-container {
  flex: 1; /* Prendre le reste de l'espace */
}

/* Style pour l'icône de lien */
.link-icon {
  color: var(--primary);
  font-size: 0.8rem;
  vertical-align: super;
}

/* Liste de services */
.services-list {
  list-style-type: none; /* Supprime les puces par défaut */
  padding-left: 0; /* Supprime l'indentation par défaut */
  margin-bottom: 1.5rem;
}

.services-list li {
  position: relative;
  padding-left: 2rem; /* Espace pour la puce personnalisée */
  margin-bottom: 1rem;
}

.services-list li::before {
  content: '•'; /* Utilise un point comme puce */
  position: absolute;
  left: 0.5rem;
  font-size: 1.5rem; /* Rend le point plus gros */
  line-height: 1;
  color: var(--primary); /* Utilise la couleur primaire */
}

/* Texte descriptif */
.about-summary {
  margin-bottom: 1.5rem;
  font-weight: 500;
  color: var(--dark);
}


/* Caractéristiques */
.about-features {
  display: flex;
  justify-content: space-around;
  gap: 1rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.feature-item {
  background-color: var(--white);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  width: calc(33.333% - 1rem);
  min-width: 200px;
}

.feature-icon {
  width: 50px;
  height: 50px;
  background-color: #f0f4ff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
  color: var(--primary);
}

.feature-item h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.feature-item p {
  font-size: 0.9rem;
  color: var(--grey);
  margin-bottom: 0;
}

/* Bouton de contact */
.contact-btn-container {
  text-align: center;
  margin-top: 2rem;
}

/* Section compteurs */
.counter-section {
  background: linear-gradient(rgb(0, 70, 103), rgb(0, 70, 103)), url('/api/placeholder/1200/800') center/cover fixed;
  color: var(--white);
  text-align: center;
  padding: 5rem 0;
}

.counter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.counter-item {
  padding: 2rem;
}

.counter-icon {
  width: 70px;
  height: 70px;
  background-color: var(--secondary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  position: relative;
}

.counter-icon::after {
  content: '';
  position: absolute;
  width: 80px;
  height: 80px;
  border: 2px dashed var(--white);
  border-radius: 50%;
  animation: spin 10s linear infinite;
}

.counter-icon svg {
  width: 30px;
  height: 30px;
}

.counter-number {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--secondary);
}

.counter-text {
  font-size: 1.2rem;
  font-weight: 500;
}

/* Section Services */
.services {
  position: relative;
}

.services::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: url('/api/placeholder/1200/800') center/cover fixed;
  opacity: 0.02;
  z-index: -1;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  background-color: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  z-index: 1;
}

.service-card:hover {
  transform: translateY(-15px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.service-card::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 5px;
  bottom: 0;
  left: 0;
  background-color: var(--secondary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
  z-index: -1;
}

.service-card:hover::after {
  transform: scaleX(1);
}

.service-img {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-img img {
  transform: scale(1.1);
}

.service-img::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.7));
}

.service-content {
  padding: 1.5rem;
  position: relative;
}

.service-icon {
  width: 60px;
  height: 60px;
  background-color: var(--secondary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  position: absolute;
  top: -30px;
  right: 20px;
  z-index: 2;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.service-card:hover .service-icon {
  transform: rotateY(180deg);
}

.service-icon svg {
  width: 30px;
  height: 30px;
}

.service-content h3 {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
  transition: color 0.3s ease;
}

.service-card:hover .service-content h3 {
  color: var(--secondary);
}

.service-content p {
  margin-bottom: 1.5rem;
  color: var(--grey);
}

.read-more {
  display: inline-flex;
  align-items: center;
  color: var(--secondary);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.read-more svg {
  width: 18px;
  height: 18px;
  margin-left: 5px;
  transition: transform 0.3s ease;
}

.read-more:hover {
  color: var(--primary);
}

.read-more:hover svg {
  transform: translateX(5px);
}

/* Section Projets */
.projects {
  background-color: var(--light);
  position: relative;
  z-index: 1;
}

.projects::before {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  background-color: var(--secondary);
  opacity: 0.1;
  top: 0;
  left: 0;
  border-radius: 0 0 50% 0;
  z-index: -1;
}

.projects::after {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  background-color: var(--primary);
  opacity: 0.1;
  bottom: 0;
  right: 0;
  border-radius: 50% 0 0 0;
  z-index: -1;
}

.project-filters {
  display: flex;
  justify-content: center;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-btn {
  background-color: var(--white);
  border: none;
  padding: 0.8rem 1.5rem;
  margin: 0.2rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.filter-btn::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: -100%;
  background: linear-gradient(to right, transparent, rgba(255, 152, 0, 0.1), transparent);
  transition: all 0.5s ease;
}

.filter-btn:hover::before {
  left: 100%;
}

.filter-btn.active,
.filter-btn:hover {
  background-color: var(--secondary);
  color: var(--white);
  box-shadow: 0 5px 15px rgba(255, 152, 0, 0.3);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.project-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  height: 300px;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  cursor: pointer;
}

.project-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.project-img {
  width: 100%;
  height: 100%;
}

.project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-img img {
  transform: scale(1.1);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-overlay h3 {
  color: var(--white);
  margin-bottom: 0.5rem;
  transform: translateY(20px);
  transition: transform 0.3s ease 0.1s;
}

.project-card:hover .project-overlay h3 {
  transform: translateY(0);
}

.project-overlay p {
  color: var(--light);
  margin-bottom: 1rem;
  transform: translateY(20px);
  transition: transform 0.3s ease 0.2s;
}

.project-card:hover .project-overlay p {
  transform: translateY(0);
}

.project-overlay .btn {
  align-self: flex-start;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  transform: translateY(20px);
  transition: transform 0.3s ease 0.3s;
}

.project-card:hover .project-overlay .btn {
  transform: translateY(0);
}

.view-all-projects {
  text-align: center;
  margin-top: 3rem;
}

/* Modal de projet */
.project-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.project-modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background-color: var(--white);
  max-width: 900px;
  width: 90%;
  max-height: 90vh;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.project-modal.active .modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 40px;
  height: 40px;
  background-color: var(--secondary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 1;
  transition: all 0.3s ease;
}

.modal-close:hover {
  background-color: var(--primary);
  transform: rotate(90deg);
}

.modal-body {
  padding: 2rem;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-image {
  height: 400px;
  overflow: hidden;
  border-radius: 10px;
  margin-bottom: 2rem;
}

.modal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-title {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.modal-description {
  margin-bottom: 2rem;
}

.project-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.detail-item {
  padding: 1rem;
  background-color: var(--light);
  border-radius: 10px;
}

.detail-item h4 {
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.detail-item p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* Section Témoignages */
.testimonials {
  background-color: var(--white);
  position: relative;
  overflow: hidden;
}

.testimonials::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background-color: var(--secondary);
  opacity: 0.05;
  border-radius: 50%;
  top: -150px;
  left: -150px;
}

.testimonials::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background-color: var(--primary);
  opacity: 0.05;
  border-radius: 50%;
  bottom: -150px;
  right: -150px;
}

.testimonials-slider {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  padding: 2rem 0;
}

.testimonials-track {
  display: flex;
  transition: transform 0.5s ease;
}

.testimonial {
  min-width: 100%;
  padding: 1rem;
  text-align: center;
}

.testimonial-content {
  background-color: var(--light);
  padding: 2.5rem;
  border-radius: 15px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  margin-bottom: 2.5rem;
  position: relative;
  text-align: left;
}

.testimonial-content::before {
  content: '"';
  position: absolute;
  top: 15px;
  left: 15px;
  font-size: 5rem;
  color: var(--secondary);
  opacity: 0.2;
  line-height: 1;
}

.testimonial-content::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-top: 15px solid var(--light);
}

.testimonial-content p {
  font-style: italic;
  position: relative;
  z-index: 1;
}

.client-info {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.client-image {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 1rem;
  border: 5px solid var(--white);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.client-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.client-info h4 {
  margin-bottom: 0.3rem;
  color: var(--primary);
}

.client-info p {
  color: var(--grey);
  font-size: 0.9rem;
}

.slider-nav {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.slider-dot {
  width: 12px;
  height: 12px;
  background-color: var(--grey);
  border-radius: 50%;
  margin: 0 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.slider-dot.active {
  background-color: var(--secondary);
  transform: scale(1.3);
}

.slider-arrows {
  position: absolute;
  width: 100%;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 1rem;
  z-index: 1;
}

.slider-arrow {
  width: 50px;
  height: 50px;
  background-color: var(--white);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.slider-arrow:hover {
  background-color: var(--secondary);
  color: var(--white);
}

.slider-arrow svg {
  width: 20px;
  height: 20px;
}

/* Section Contact */
.contact {
  background-color: var(--light);
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background-color: var(--secondary);
  opacity: 0.05;
  border-radius: 50%;
  top: -150px;
  right: -150px;
}

.contact::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background-color: var(--primary);
  opacity: 0.05;
  border-radius: 50%;
  bottom: -150px;
  left: -150px;
}

.contact-content {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.contact-info {
  flex: 1;
  min-width: 300px;
}

.info-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  background-color: var(--white);
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.info-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.info-icon {
  width: 50px;
  height: 50px;
  background-color: var(--secondary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 1rem;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.info-item:hover .info-icon {
  background-color: var(--primary);
  transform: rotate(360deg);
}

.info-icon svg {
  width: 24px;
  height: 24px;
}

.info-details h4 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.info-details p {
  color: var(--grey);
  margin-bottom: 0.3rem;
}

.info-details a {
  color: var(--grey);
  text-decoration: none;
  transition: color 0.3s ease;
}

.info-details a:hover {
  color: var(--secondary);
}

.contact-form {
  flex: 1;
  min-width: 300px;
  background-color: var(--white);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
  position: relative;
  z-index: 1;
}

.contact-form::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 5px;
  top: 0;
  left: 0;
  background: linear-gradient(to right, var(--secondary), var(--primary));
  border-radius: 15px 15px 0 0;
  z-index: -1;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--primary);
}

.form-control {
  width: 100%;
  padding: 0.8rem 1.2rem;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background-color: #f9f9f9;
}

.form-control:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(255, 152, 0, 0.1);
  background-color: var(--white);
}

textarea.form-control {
  resize: vertical;
  min-height: 150px;
}

.submit-btn {
  background: linear-gradient(to right, var(--secondary), var(--secondary-dark));
  color: var(--white);
  border: none;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  box-shadow: 0 5px 15px rgba(255, 152, 0, 0.3);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.submit-btn::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: -100%;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: all 0.5s ease;
  z-index: -1;
}

.submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(255, 152, 0, 0.4);
}

.submit-btn:hover::after {
  left: 100%;
}

.form-status {
  padding: 1rem;
  border-radius: 5px;
  margin-bottom: 1.5rem;
  display: none;
}

.form-status.success {
  background-color: rgba(76, 175, 80, 0.1);
  color: var(--success);
  border: 1px solid var(--success);
  display: block;
}

.form-status.error {
  background-color: rgba(255, 87, 34, 0.1);
  color: var(--warning);
  border: 1px solid var(--warning);
  display: block;
}

/* Map */
.map-container {
  margin-top: 4rem;
  height: 400px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  position: relative;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Footer */
footer {
  background-color: var(--primary-dark);
  color: var(--white);
  padding: 4rem 0 0;
  position: relative;
}

.footer-pattern {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: url('/api/placeholder/100/100') repeat;
  opacity: 0.05;
  z-index: 0;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  position: relative;
  z-index: 1;
  padding-bottom: 3rem;
}

.footer-logo h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--white);
}

.footer-logo span {
  color: var(--secondary);
}

.footer-logo p {
  margin-bottom: 1.5rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-links h3 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 1rem;
  color: var(--white);
}

.footer-links h3::after {
  content: '';
  position: absolute;
  width: 50px;
  height: 2px;
  background-color: var(--secondary);
  bottom: 0;
  left: 0;
}

.footer-links ul {
  list-style: none;
}

.footer-links ul li {
  margin-bottom: 0.8rem;
}

.footer-links ul li a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
}

.footer-links ul li a:hover {
  color: var(--secondary);
  transform: translateX(5px);
}

.footer-links ul li a svg {
  width: 16px;
  height: 16px;
  margin-right: 5px;
  opacity: 0.7;
}

.social-links {
  display: flex;
  margin-top: 1.5rem;
  gap: 1rem;
}

.footer-social {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
  color: var(--white);
  text-decoration: none;
}

.footer-social:hover {
  background-color: var(--secondary);
  transform: translateY(-5px);
}

.footer-social svg {
  width: 20px;
  height: 20px;
}

.footer-form {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-form input {
  padding: 0.8rem 1.2rem;
  border-radius: 50px;
  border: none;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
  transition: all 0.3s ease;
}

.footer-form input:focus {
  outline: none;
  background-color: rgba(255, 255, 255, 0.2);
}

.footer-form input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.footer-form .btn {
  background-color: var(--secondary);
  color: var(--white);
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
}

.footer-form .btn:hover {
  background-color: var(--secondary-dark);
}

.copyright {
  background-color: rgba(0, 0, 0, 0.2);
  padding: 1.5rem 0;
  text-align: center;
  position: relative;
  z-index: 1;
}

.copyright p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.7);
}

/* Retour en haut */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--secondary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--primary);
  transform: translateY(-5px);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.animate-fadeInUp {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-fadeInUp.active {
  opacity: 1;
  transform: translateY(0);
}

.animate-fadeIn {
  opacity: 0;
  transition: opacity 0.8s ease;
}

.animate-fadeIn.active {
  opacity: 1;
}

.animate-rotate {
  animation: rotate 10s linear infinite;
}

/* Media Queries pour la Responsivité */

/* Grand écran et écrans larges */
@media (min-width: 1400px) {
  .container {
    max-width: 1340px;
  }
  
  .hero h1 {
    font-size: 4rem;
  }
  
  .section-title h2 {
    font-size: 3rem;
  }
}

/* Ordinateurs portables et MacBook (Écrans medium) */
@media (min-width: 992px) and (max-width: 1399px) {
  .container {
    max-width: 960px;
  }
  
  .hero h1 {
    font-size: 3.2rem;
  }
  
  .section-title h2 {
    font-size: 2.3rem;
  }
  
  .service-card {
    min-height: 450px;
  }
  
  .project-card {
    height: 280px;
  }
  
  .about-image {
    flex: 0 0 45%;
    max-width: 45%;
  }
  
  .counter-number {
    font-size: 2.7rem;
  }
}

/* Tablettes et petits ordinateurs portables */
@media (min-width: 768px) and (max-width: 991px) {
  .container {
    max-width: 720px;
  }
  
  .hero h1 {
    font-size: 2.8rem;
  }
  
  .hero p {
    font-size: 1.1rem;
  }
  
  .about-content {
    flex-direction: column;
  }
  
  .about-image {
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 2rem;
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .counter-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .feature-item {
    width: calc(50% - 1rem);
  }
  
  .section-title h2 {
    font-size: 2.2rem;
  }
  
  .cta-section .btn-outline {
    margin-left: 0;
    margin-top: 1rem;
  }
  
  .slider-arrows {
    padding: 0;
  }
  
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Téléphones en mode paysage et petites tablettes */
@media (min-width: 576px) and (max-width: 767px) {
  .container {
    max-width: 540px;
  }
  
  .hero h1 {
    font-size: 2.4rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .hero-btns {
    flex-direction: column;
    align-items: center;
  }
  
  .hero-btns .btn {
    margin: 0.5rem 0;
  }
  
  .btn-outline {
    margin-left: 0;
  }
  
  .mobile-toggle {
    display: block;
  }
  
  nav {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 80%;
    height: calc(100vh - 70px);
    background-color: var(--white);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: left 0.3s ease;
    z-index: 999;
    overflow-y: auto;
  }
  
  nav.active {
    left: 0;
  }
  
  nav ul {
    flex-direction: column;
    padding: 2rem;
  }
  
  nav ul li {
    margin: 1rem 0;
  }
  
  .about-content {
    flex-direction: column;
  }
  
  .about-image {
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 2rem;
  }
  
  .about-main-content {
    flex-direction: column;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
  }
  
  .counter-grid {
    grid-template-columns: 1fr;
  }
  
  .counter-item {
    padding: 1.5rem;
  }
  
  .feature-item {
    width: 100%;
  }
  
  .section-title h2 {
    font-size: 2rem;
  }
  
  .slider-arrows {
    display: none;
  }
  
  .contact-content {
    flex-direction: column;
  }
  
  .contact-info, .contact-form {
    width: 100%;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
  
  .project-details {
    grid-template-columns: 1fr;
  }
  
  .cta-section .btn-outline {
    margin-left: 0;
    margin-top: 1rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .cta-buttons .btn {
    margin: 0.5rem 0;
  }
}

/* Téléphones en mode portrait */
@media (max-width: 575px) {
  .container {
    width: 100%;
    padding: 0 1.25rem;
  }
  
  .hero {
    height: 90vh;
  }
  
  .hero h1 {
    font-size: 2rem;
    line-height: 1.3;
  }
  
  .hero p {
    font-size: 0.95rem;
  }
  
  .hero-btns {
    flex-direction: column;
    align-items: center;
  }
  
  .hero-btns .btn {
    margin: 0.5rem 0;
    width: 100%;
  }
  
  .btn {
    padding: 0.7rem 1.5rem;
  }
  
  .btn-outline {
    margin-left: 0;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .section-title h2 {
    font-size: 1.8rem;
  }
  
  .section-title p {
    font-size: 0.9rem;
  }
  
  .mobile-toggle {
    display: block;
  }
  
  nav {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 80%;
    height: calc(100vh - 70px);
    background-color: var(--white);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: left 0.3s ease;
    z-index: 999;
    overflow-y: auto;
  }
  
  nav.active {
    left: 0;
  }
  
  nav ul {
    flex-direction: column;
    padding: 1.5rem;
  }
  
  nav ul li {
    margin: 0.8rem 0;
  }
  
  .about-content {
    margin-bottom: 1.5rem;
  }
  
  .about-main-content {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .about-image {
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 1.5rem;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .project-card {
    height: 250px;
  }
  
  .project-filters {
    overflow-x: auto;
    padding-bottom: 1rem;
    justify-content: flex-start;
    margin-bottom: 2rem;
  }
  
  .filter-btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    white-space: nowrap;
  }
  
  .counter-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .counter-item {
    padding: 1.5rem 1rem;
  }
  
  .counter-number {
    font-size: 2.5rem;
  }
  
  .counter-text {
    font-size: 1rem;
  }
  
  .feature-item {
    width: 100%;
    margin-bottom: 1rem;
  }
  
  .testimonial-content {
    padding: 1.5rem;
  }
  
  .client-image {
    width: 60px;
    height: 60px;
  }
  
  .slider-arrows {
    display: none;
  }
  
  .contact-content {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .contact-info, .contact-form {
    width: 100%;
  }
  
  .info-item {
    padding: 1.2rem;
    margin-bottom: 1rem;
  }
  
  .modal-image {
    height: 200px;
  }
  
  .modal-title {
    font-size: 1.5rem;
  }
  
  .project-details {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .detail-item {
    padding: 0.8rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .footer-links {
    margin-top: 1rem;
  }
  
  .footer-form {
    margin-top: 1rem;
  }
  
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
  }
  
  .cta-section {
    padding: 3rem 0;
  }
  
  .cta-title {
    font-size: 1.8rem;
  }
  
  .cta-text {
    font-size: 0.95rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .cta-buttons .btn {
    width: 100%;
    margin: 0.5rem 0;
  }
  
  .cta-section .btn-outline {
    margin-left: 0;
  }
  
  .map-container {
    height: 300px;
    margin-top: 2rem;
  }
}

/* Pour les très petits téléphones */
@media (max-width: 375px) {
  .hero h1 {
    font-size: 1.7rem;
  }
  
  .section-title h2 {
    font-size: 1.6rem;
  }
  
  .btn {
    padding: 0.6rem 1.3rem;
  }
  
  .counter-number {
    font-size: 2.2rem;
  }
  
  .project-card {
    height: 220px;
  }
  
  .modal-image {
    height: 180px;
  }
}

/* Correction spécifique pour Safari */
@media not all and (min-resolution:.001dpcm) { 
  @supports (-webkit-appearance:none) {
    .about-image {
      height: auto !important;
      min-height: 0 !important;
      max-height: 450px !important;
    }
    
    .about-image img {
      height: auto !important;
      max-height: 450px !important;
    }
    
    /* Fix pour le menu de navigation sur Chrome */
    .header-content {
      display: flex;
      align-items: center;
      justify-content: space-between;
      height: auto;
      min-height: 70px;
    }
    
    nav ul {
      height: auto;
    }
  }
}

/* Fix pour l'affichage sur mobile */
@media (max-width: 767px) {
  .container {
    width: 100%;
    max-width: 100%;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
  }
  
  /* Empêcher le débordement des éléments */
  .projects-grid, .services-grid {
    width: 100%;
    max-width: 100%;
  }
  
  /* Correction spécifique pour la navbar sur mobile */
  .header-content {
    padding: 0.5rem 0;
    width: 100%;
  }
  
  .mobile-toggle {
    right: 15px;
  }
  
  /* Ajustement pour les cartes de projet */
  .project-card {
    width: 100%;
  }
  
  /* Correction pour la section héro sur mobile */
  .hero-content {
    width: 100%;
    padding: 0 15px;
  }
  
  /* Empêcher les boutons de déborder */
  .btn {
    max-width: 100%;
    white-space: normal;
  }
  
  /* Fix pour la navigation mobile */
  nav.active {
    width: 80%;
    max-width: 300px;
  }
}

/* Fix pour les très petits écrans */
@media (max-width: 375px) {
  .hero h1 {
    font-size: 1.6rem;
  }
  
  .logo img {
    height: 45px;
    max-height: 45px;
  }
  
  /* Réduire la taille des éléments qui pourraient déborder */
  .section-title h2 {
    font-size: 1.5rem;
  }
  
  .project-card, .service-card {
    height: auto;
    min-height: 250px;
  }
}

/* Correction pour l'affichage en mode paysage sur mobile */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    height: auto;
    min-height: 100vh;
    padding: 80px 0;
  }
  
  .about-image {
    max-height: 300px;
  }
}

/* Correction spécifique pour le viewport mobile */
@viewport {
  width: device-width;
  zoom: 1.0;
}

@-ms-viewport {
  width: device-width;
}

/* Correction pour la compatibilité des propriétés flexbox */
.about-main-content, .header-content, .contact-content, .hero-btns {
  display: -webkit-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  -webkit-flex-wrap: wrap;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
}

/* Correction des animations pour Safari */
@-webkit-keyframes fadeInUp {
  from {
    opacity: 0;
    -webkit-transform: translateY(30px);
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    -webkit-transform: translateY(0);
    transform: translateY(0);
  }
}

.animate-fadeInUp {
  -webkit-transition: opacity 0.8s ease, -webkit-transform 0.8s ease;
  transition: opacity 0.8s ease, -webkit-transform 0.8s ease;
  transition: opacity 0.8s ease, transform 0.8s ease;
  transition: opacity 0.8s ease, transform 0.8s ease, -webkit-transform 0.8s ease;
}

/* Fix pour le formulaire sur différents navigateurs */
input, textarea, button {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border-radius: 5px;
}

/* Empêcher les débordements problématiques dans les sections */
section {
  width: 100%;
  overflow-x: hidden;
}