body {
  margin: 0;
  min-height: 100vh;
  background: #10131a;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  position: relative;
}

.stars {
  position: fixed;
  width: 100vw;
  height: 100vh;
  top: 0; left: 0;
  z-index: 0;
  pointer-events: none;
  display: block;
}

.navbar {
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10;
  background: rgba(16, 19, 26, 0.85);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.7rem 2vw;
  box-shadow: 0 2px 12px 0 rgba(0,0,0,0.08);
  backdrop-filter: blur(4px);
  overflow-x: auto;
}

.navbar-logo {
  display: flex;
  align-items: center;
  font-weight: bold;
  font-size: 1.4rem;
  letter-spacing: 1px;
  color: #fff;
  background: linear-gradient(90deg, #00c3ff, #ff6ec4);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-img {
  height: 36px;
  width: 36px;
  margin-right: 0.7rem;
  object-fit: contain;
}

.navbar-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.navbar-links li a {
  color: #fff;
  text-decoration: none;
  font-size: 1.05rem;
  transition: color 0.2s;
  position: relative;
}

.navbar-links li a::after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #00c3ff, #ff6ec4);
  transition: width 0.3s;
  position: absolute;
  left: 0;
  bottom: -3px;
}

.navbar-links li a:hover::after {
  width: 100%;
}

.navbar-links li a:hover {
  color: #00c3ff;
}

.content {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 90px;
}

header h1 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  letter-spacing: 2px;
  background: linear-gradient(90deg, #fff, #00c3ff, #fff, #ff6ec4, #fff);
  background-size: 200% auto;
  color: #fff;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine 3s linear infinite;
}

@keyframes shine {
  to {
    background-position: 200% center;
  }
}

header p {
  font-size: 1.3rem;
  color: #b3b3b3;
}

/* Containers principaux */
.about,
.services,
.contact {
  max-width: 900px;
  width: 95vw;
  margin: 3rem auto 2rem auto;
  background: rgba(20, 23, 32, 0.92);
  border-radius: 18px;
  box-shadow: 0 4px 24px 0 rgba(0,0,0,0.10);
  padding: 2rem 1.5rem;
  color: #f3f3f3;
  font-size: 1.08rem;
  line-height: 1.7;
}

.about h2,
.services h2,
.contact h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(90deg, #00c3ff, #ff6ec4, #6effe7);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: center;
}

.about h3 {
  margin-top: 1.5rem;
  font-size: 1.15rem;
  color: #00c3ff;
}

.about ul {
  margin: 0.7rem 0 0.7rem 1.2rem;
  padding: 0;
}

.about li {
  margin-bottom: 0.5rem;
}

/* Équipe */
.about-team {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  margin-bottom: 2rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.team-member {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 18px 18px 12px 18px;
  margin: 0 10px;
}

.team-photo {
  width: 100%;
  max-width: 220px;
  height: auto;
  aspect-ratio: 220/290;
  object-fit: cover;
  border: 4px solid transparent;
  background: #181b24;
  margin-bottom: 0.7rem;
  position: relative;
  z-index: 1;
}

/* Animation effet lumière (exemple pour chaque membre) */
.team-member.mouhameth::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border-radius: 20px;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, transparent 40%, #00c3ff 50%, transparent 60%);
  background-size: 200% 200%;
  filter: blur(2px);
  opacity: 0.9;
  animation: flowing-light-mouhameth 2.5s linear infinite;
}
@keyframes flowing-light-mouhameth {
  0% { background-position: 200% 0; }
  100% { background-position: 0 200%; }
}
.team-member.abdoulaye::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border-radius: 20px;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(300deg, transparent 40%, #6effe4 50%, transparent 60%);
  background-size: 200% 200%;
  filter: blur(2px);
  opacity: 0.9;
  animation: flowing-light-abdoulaye 3s linear infinite;
}
@keyframes flowing-light-abdoulaye {
  0% { background-position: 0 200%; }
  100% { background-position: 200% 0; }
}

/* Services */
.services-list {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.service-card {
  background: rgba(16, 19, 26, 0.95);
  border-radius: 14px;
  box-shadow: 0 2px 12px 0 rgba(0,0,0,0.10);
  padding: 1.5rem 1.2rem;
  flex: 1 1 260px;
  max-width: 320px;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.service-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 8px 32px 0 #00c3ff44;
}

.service-icon {
  font-size: 2.2rem;
  margin-bottom: 0.7rem;
}

.service-card h3 {
  margin: 0.5rem 0 0.7rem 0;
  font-size: 1.18rem;
  color: #00c3ff;
  text-align: center;
}

.service-card p {
  text-align: center;
  color: #e0e0e0;
  font-size: 1rem;
}

/* Contact */
.contact-info {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 1.15rem;
  justify-content: center;
}
.contact-icon {
  font-size: 1.5rem;
}
.contact a {
  color: #00c3ff;
  text-decoration: none;
  transition: color 0.2s;
  word-break: break-all;
}
.contact a:hover {
  color: #6effe0;
}

/* Footer */
.footer {
  width: 100%;
  text-align: center;
  padding: 1.2rem 0 1rem 0;
  color: #b3b3b3;
  font-size: 1rem;
  background: transparent;
  letter-spacing: 1px;
}

/* Responsive global : réduire la taille mais garder la disposition en ligne */
@media (max-width: 700px) {
  .about,
  .services,
  .contact {
    padding: 0.7rem 0.2rem;
  }
  .about-team,
  .services-list,
  .contact-info,
  .navbar,
  .navbar-links {
    flex-direction: row !important; /* Force la ligne même sur mobile */
    gap: 0.7rem;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
  }
  .team-photo {
    max-width: 90px;
    min-width: 60px;
    height: auto;
  }
  .team-name,
  .team-role,
  .service-card h3,
  .service-card p,
  .contact-item {
    font-size: 0.95rem;
  }
  header h1 {
    font-size: 1.5rem;
  }
  .about h2,
  .services h2,
  .contact h2 {
    font-size: 1.2rem;
  }
  .service-icon,
  .contact-icon {
    font-size: 1.2rem;
  }
}

/* Supprime les flex-direction: column dans les media queries existantes pour .about-team, .services-list, .contact-info */
@media (max-width: 1100px) {
  .about, .services, .contact {
    max-width: 98vw;
    width: 98vw;
    padding: 1.2rem 0.5rem;
  }
  /* NE PAS changer flex-direction ici pour .about-team, .services-list, .contact-info */
  .team-photo {
    max-width: 90vw;
  }
}