/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* GLOBAL */
body {
  font-family: "Poppins", sans-serif;
  background: #02020a;
  color: #e8e8f0;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* CANVAS BACKGROUND */
#bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

/* HEADER */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 2rem;
  background: rgba(10, 10, 25, 0.8);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
}
.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #00c6ff;
}
.logo span {
  color: #7df9ff;
}
header nav a {
  margin-left: 20px;
  text-decoration: none;
  color: #d0d0ff;
  font-weight: 500;
  transition: 0.3s;
}
header nav a:hover {
  color: #00c6ff;
}

/* HERO */
.hero {
  position: relative;
  height: 100vh;
  background: url("images/hero.png") center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 20, 0.3); /* flou un peu + fort que tout à l'heure */
  backdrop-filter: blur(5px);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  color: #fff;
}
.hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.3rem);
  margin-bottom: 1rem;
}
.hero p {
  font-size: 1.15rem;
  margin-bottom: 2rem;
  color: #d6dcff;
}
.btn {
  background: linear-gradient(90deg, #00c6ff, #0072ff);
  color: white;
  padding: 0.8rem 1.8rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.25s;
}
.btn:hover {
  transform: translateY(-2px);
}

/* OFFSET POUR ANCRE */
:target {
  scroll-margin-top: 100px;
}

/* SECTIONS */
section {
  padding: 100px 10%;
  text-align: center;
}
h2 {
  font-size: 2rem;
  color: #7df9ff;
  margin-bottom: 40px;
}
p {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ÉTAPES */
.step-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
}
.step {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 15px;
  width: 280px;
  padding: 25px;
}

/* === SECTION SERVICES === */
.services {
  background: linear-gradient(180deg, #070720, #050510);
  padding: 60px 6%; /* réduit légèrement pour tout faire tenir */
  text-align: center;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 colonnes */
  gap: 25px; /* espace régulier entre les blocs */
  justify-items: center;
  align-items: start;
}

.service-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 15px;
  width: 290px; /* ajuste pour que 3 tiennent par ligne */
  padding-bottom: 10px;
  transition: 0.3s;
}

.service-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 20px rgba(0, 198, 255, 0.2);
}

.service-item img {
  width: 100%;
  height: 140px; /* même taille pour toutes */
  object-fit: cover; /* remplissage harmonieux */
  border-radius: 15px 15px 0 0;
  display: block;
}

.service-item h3 {
  margin-top: 12px;
  color: #00c6ff;
  font-size: 1.2rem;
}

.service-item p {
  padding: 0 12px 15px;
  font-size: 0.9rem;
  color: #ccc;
}

.extra {
  margin-top: 25px;
  color: #7df9ff;
  font-style: italic;
}


/* OUTILS */
#tools {
  position: relative;
}
.tools-logos {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 40px;
}
.tools-logos img {
  height: 80px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 7px rgba(0, 198, 255, 0.35));
}

/* AVIS */
.reviews-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
}
.review {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 15px;
  width: 280px;
  padding: 20px;
}
.review img {
  width: 130px;              
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto 10px;
  border: 3px solid rgba(0, 200, 255, 0.25);
  box-shadow: 0 0 15px rgba(0, 200, 255, 0.15);

  /* --- Recadrage interne de l'image --- */
  object-position: 80% 15%; /* horizontal / vertical */
}

.review h3 {
  color: #00c6ff;
}
.review .role {
  color: #aaa;
  margin-bottom: 10px;
}

/* TEAM */
.team-members {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
}
.member {
  width: 260px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 15px;
  padding: 20px;
}
.member img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 10px;
}
.member h3 {
  color: #00c6ff;
}

/* CONTACT */
.contact {
  background: linear-gradient(90deg, #001d3d, #000814);
  color: #fff;
}
.contact .email {
  margin-top: 15px;
  font-weight: 600;
  color: #7df9ff;
}
.email a {
  color: #7df9ff;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.email a:hover {
  color: #00c6ff;
  text-shadow: 0 0 10px rgba(0, 200, 255, 0.8);
}

/* FOOTER */
footer {
  background: #01010a;
  text-align: center;
  padding: 20px;
  color: #888;
}

/* Apparition */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.6s ease-out;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
  header nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
  }
  section {
    padding: 80px 6%;
  }
  .tools-logos img {
    height: 65px;
  }
}
