* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background: #050505;
  color: white;
  overflow-x: hidden;
  margin: 0;
}

/* ANIMATIONS PAGE */
body.fade-in {
  animation: pageFadeIn 0.8s ease;
}

body.fade-out {
  animation: pageFadeOut 0.5s ease forwards;
}

@keyframes pageFadeIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pageFadeOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(15px);
  }
}
nav a.active {
  opacity: 0.4;
}

/* HERO */
.hero-page {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: flex-end;
  padding: 150px 40px 60px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("/amis.jpg"); /* ✅ CORRIGÉ */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0; /* ✅ derrière overlay */
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 1;
}

.hero-text {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.section-label {
  display: inline-block;
  margin-bottom: 67px;
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero-text h1 {
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 1;
  margin-bottom: 20px;
}

.hero-text p {
  max-width: 650px;
  color: rgba(255,255,255,0.78);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 45px;
}

/* SERVICES */
.services-section {
  padding: 80px 40px 100px;
}

.services-intro {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 50px;
}

.services-intro h2 {
  font-size: 2.4rem;
  margin-bottom: 16px;
}

.services-intro p {
  color: #bdbdbd;
  line-height: 1.8;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.service-card {
  background: rgba(255,255,255,0.03);
  border-radius: 20px;
  padding: 28px;
  transition: transform 0.4s ease, background 0.4s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  background: rgba(255,255,255,0.05);
}

.service-card h3 {
  font-size: 1.4rem;
  margin-bottom: 14px;
}

.service-card p {
  color: #c7c7c7;
  line-height: 1.8;
}

/* CTA */
.cta-section {
  padding: 0 40px 100px;
}

.cta-box {
  text-align: center;
  background: rgba(255,255,255,0.03);
  border-radius: 24px;
  padding: 50px 30px;
}

.cta-box h2 {
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.cta-box p {
  max-width: 650px;
  margin: 0 auto 24px;
  color: #c7c7c7;
  line-height: 1.8;
}

.cta-button {
  display: inline-block;
  padding: 14px 24px;
  background: white;
  color: black;
  text-decoration: none;
  border-radius: 999px;
  transition: 0.3s;
}

.cta-button:hover {
  transform: translateY(-3px);
}

/* FOOTER */
footer {
  text-align: center;
  padding: 20px;
  background: black;
  color: #aaa;
}

/* RESPONSIVE */
@media (max-width: 1000px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 800px) {
  .hero-page,
  .services-section,
  .cta-section {
    padding-left: 24px;
    padding-right: 24px;
  }

  .hero-page {
    padding-top: 170px;
  }
}

@media (max-width: 700px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}