* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333;
}

header {
  background-color: #2c3e50;
  color: white;
  padding: 1rem 0;
  position: relative;
  z-index: 10;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0 auto;
  text-align: center;
  flex: 1;
  padding-right: 4rem;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: white;
  text-decoration: none;
  transition: color 0.3s;
   text-align: center;
   white-space: normal;
   display: inline-block;
}

.nav-links a:hover {
  color: #3498db;
}

.hero {
  background-size: cover;
  background-position: center;
  color: white;
  text-align: center;
  position: relative;
  padding-top: 6rem;
}

.hero-content-with-logo {
  position: relative;
  padding: 4rem 2rem 2rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-logo {
  flex-shrink: 0;
}

.hero-logo img {
  width: 200px;
  height: auto;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.hero-text {
  text-align: left;
}

.hero-text h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero-text p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.marc-photo-container {
  position: relative;
  text-align: center;
  margin: -100px 0 0 0;
  z-index: 20;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
}

.post-it-green {
  width: 260px;
  height: 260px;
  background-color: #00CC66;
  padding: 2rem;
  border-radius: 4px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  font-weight: bold;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.75rem;
  font-size: 1.05rem;
  line-height: 1.4;
  transform: rotate(-5deg);
}

.post-it-green p {
  margin: 0;
}

.marc-photo {
  width: 400px;
  height: 400px;
  border-radius: 50%;
  border: 5px solid white;
  object-fit: cover;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.hero-content {
  position: relative;
  padding: 4rem 2rem 2rem;
}

.hero-content h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.section {
  padding: 4rem 2rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.video-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin-top: 2rem;
}

.video-item {
  background: #f8f9fa;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  padding: 1rem;
  text-align: center;
  width: 340px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Espacement et séparateur entre les articles du blog */
.blog-article {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  position: relative;
}
.blog-article:not(:last-child)::after {
  content: "";
  display: block;
  width: 100%;
  height: 2px;
  background: #e0e0e0;
  margin: 2rem 0 0 0;
  border-radius: 1px;
}

/* Préserve le ratio des images du blog */
.blog-images img {
  width: 100%;
  max-width: 300px;
  height: auto;
  aspect-ratio: 4/3;
  object-fit: contain;
  border-radius: 8px;
  display: block;
}

.video-item video {
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  width: 100%;
  height: auto;
  margin-bottom: 1rem;
}

.video-item p {
  margin: 0;
  font-weight: bold;
  color: #2c3e50;
}

.section h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #2c3e50;
  text-align: center;
}

#a-propos p {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 1rem auto;
}

.bg-light {
  background-color: #f8f9fa;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(52, 152, 219, 0.1), transparent);
  transition: left 0.5s ease;
}

.service-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
  border: 2px solid #3498db;
}

.service-card:hover::before {
  left: 100%;
}

.service-card h3 {
  margin-bottom: 1rem;
  color: #2c3e50;
  transition: color 0.3s ease;
}

.service-card:hover h3 {
  color: #3498db;
}

.btn {
  display: inline-block;
  background-color: #3498db;
  color: white;
  padding: 0.8rem 2rem;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.3s;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn:hover {
  background-color: #2980b9;
}

footer {
  background-color: #2c3e50;
  color: white;
  text-align: center;
  padding: 2rem;
  margin-top: 2rem;
}

#contact p {
  font-size: 1.1rem;
}

#contact a {
  color: #3498db;
  text-decoration: none;
}

#contact a:hover {
  text-decoration: underline;
}

.team-member {
  display: flex;
  gap: 2rem;
  margin-bottom: 3rem;
  align-items: flex-start;
}

.team-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 5px solid white;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.team-text h3 {
  margin-bottom: 0.5rem;
  color: #2c3e50;
}

.team-text p {
  margin-bottom: 0.5rem;
}

.video-container {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.video-container iframe {
  max-width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Center text specifically in the Rejoignez-nous section */
#Rejoignez-nous .services-grid {
  justify-items: center;
}

#Rejoignez-nous .service-card {
  text-align: center;
}

/* Center text specifically in the Notre Vision section */
#services .services-grid {
  justify-items: center;
}

#services .service-card {
  text-align: center;
}
/* ===== RESPONSIVE - MOBILE OPTIMIZATION ===== */

/* Tablette et petits écrans */
@media (max-width: 768px) {
  nav {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }

  .logo {
    font-size: 1.2rem;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    font-size: 0.9rem;
  }

  .hero-content-with-logo {
    flex-direction: column;
    gap: 1.5rem;
    padding: 2rem 1rem;
  }

  .hero-logo img {
    width: 120px;
  }

  .hero-text {
    text-align: center;
  }

  .hero-text h1 {
    font-size: 1.8rem;
  }

  .hero-text p {
    font-size: 1rem;
  }

  .marc-photo-container {
    flex-direction: column;
    margin: -50px 0 0 0;
    gap: 1.5rem;
  }

  .marc-photo {
    width: 250px;
    height: 250px;
  }

  .post-it-green {
    width: 220px;
    height: 220px;
    padding: 1.5rem;
    font-size: 0.9rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .team-member {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
  }

  .team-photo {
    width: 120px;
    height: 120px;
  }

  .section {
    padding: 2rem 1rem;
  }

  .section h2 {
    font-size: 1.5rem;
  }

  .video-container iframe {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
  }
}

/* Smartphones */
@media (max-width: 480px) {
  .hero-text h1 {
    font-size: 1.5rem;
  }

  .hero-text p {
    font-size: 0.9rem;
  }

  .nav-links {
    gap: 0.5rem;
    font-size: 0.85rem;
  }

  .marc-photo {
    width: 200px;
    height: 200px;
  }

  .post-it-green {
    width: 180px;
    height: 180px;
    padding: 1rem;
    font-size: 0.8rem;
  }

  .service-card {
    padding: 1.5rem;
  }

  .section h2 {
    font-size: 1.3rem;
  }
}

/* Petits Projets Gallery */
.projects-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.project-item {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.project-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

.project-photo {
  width: 100%;
  height: auto;
  display: block;
}