/* RESET & BASE */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background: #0b1220;
  color: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

section {
  padding: 80px 8%;
  overflow: hidden;
}

/* HEADER & NAVIGATION */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 20px 8%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(11, 18, 32, 0.95);
  backdrop-filter: blur(12px);
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.nav {
  display: flex;
  gap: 30px;
}

.nav a {
  color: #94a3b8;
  font-size: 15px;
  font-weight: 500;
  transition: 0.3s ease;
}

.nav a:hover,
.nav a.active {
  color: #3b82f6;
}

/* BURGER MENU */
.burger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 6px;
  z-index: 1001;
}

.burger span {
  width: 28px;
  height: 2px;
  background: #ffffff;
  transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.burger.active span:nth-child(1) {
  transform: rotate(45deg) translateY(11.5px);
}

.burger.active span:nth-child(2) {
  opacity: 0;
}

.burger.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-11.5px);
}

/* HERO & PAGE HEADERS */
.hero,
.page-header {
  text-align: center;
  padding: 160px 8% 100px;
  background: radial-gradient(circle at top right, rgba(59, 130, 246, 0.08), transparent),
    radial-gradient(circle at bottom left, rgba(63, 95, 120, 0.05), transparent);
}

.hero h1,
.page-header h1 {
  font-size: 52px;
  line-height: 1.2;
  margin-bottom: 25px;
  font-weight: 700;
}

.hero p,
.page-header p {
  font-size: 18px;
  color: #94a3b8;
  max-width: 800px;
  margin: 0 auto;
}

/* BUTTONS */
.btn-primary {
  display: inline-block;
  background: #3b82f6;
  color: #fff;
  padding: 15px 35px;
  border-radius: 30px;
  font-weight: 600;
  transition: 0.3s;
  border: none;
}

.btn-secondary {
  display: inline-block;
  border: 2px solid #3b82f6;
  color: #fff;
  padding: 13px 33px;
  border-radius: 30px;
  font-weight: 600;
  transition: 0.3s;
}

.btn-primary:hover,
.btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(59, 130, 246, 0.2);
}

/* ICONS & ANIMATIONS */
.icon-box {
  width: 60px;
  height: 60px;
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 25px;
  transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.icon-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), transparent);
  opacity: 0;
  transition: 0.4s;
}

.service-card:hover .icon-box,
.pricing-card:hover .icon-box,
.info-item:hover .icon-box,
.why-feature:hover .icon-box {
  transform: scale(1.1) rotate(5deg);
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
  box-shadow: 0 10px 20px rgba(59, 130, 246, 0.15);
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

.animate-pulse {
  animation: pulse-soft 2.5s ease-in-out infinite;
}

.hero-img img {
  width: 200px;
  border-radius: 20px;
  margin: 0 auto 20px;
  display: block;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  animation: float 4s ease-in-out infinite;
}

.animate-spin-slow {
  animation: spin-slow 12s linear infinite;
}

@keyframes float {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }

  100% {
    transform: translateY(0);
  }
}

@keyframes pulse-soft {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.08);
    opacity: 0.9;
  }
}

@keyframes spin-slow {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.service-icon {
  font-size: 32px;
  color: #3b82f6;
  transition: 0.3s ease;
  display: inline-block;
}

.service-card:hover .service-icon {
  transform: scale(1.15);
  filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.5));
}

/* SECTION COMMON */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 36px;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
  padding-bottom: 15px;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: #3b82f6;
  border-radius: 2px;
}

/* GRIDS */
.stats {
  background: #111827;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.realisations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.why-us-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

/* CARDS */
.service-card,
.pricing-card,
.info-panel,
.contact-form-panel {
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  padding: 40px;
  transition: 0.4s ease;
}

.service-card:hover,
.pricing-card:hover {
  transform: translateY(-10px);
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* REALISATIONS CARDS */
.real-card {
  position: relative;
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  overflow: hidden;
  transition: 0.5s ease;
  aspect-ratio: 4 / 3;
}

.real-card a {
  display: block;
  width: 100%;
  height: 100%;
}

.real-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.real-card:hover {
  transform: translateY(-10px);
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(59, 130, 246, 0.2);
}

.real-card:hover img {
  transform: scale(1.1);
}

.real-card .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(2, 6, 23, 0.95) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
  transition: 0.5s ease;
}

.real-card:hover .overlay {
  background: linear-gradient(to top, rgba(2, 6, 23, 0.95) 0%, rgba(15, 23, 42, 0.6) 60%, transparent 100%);
}

.real-card h3 {
  color: #ffffff;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  transform: translateY(10px);
  transition: 0.5s ease;
  margin: 0;
  opacity: 0.9;
  text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.real-card:hover h3 {
  transform: translateY(0);
  opacity: 1;
}

.realisations-footer {
  text-align: center;
  margin-top: 50px;
}

/* TRUSTED BY LOGOS */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 25px;
  align-items: center;
  width: 100%;
}

.trust-logo {
  background: #ffffff !important;
  /* Force le fond blanc même si conflit */
  border-radius: 20px;
  padding: 20px;
  display: flex !important;
  justify-content: center;
  align-items: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  height: 140px;
  min-height: 140px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.trust-logo img {
  width: auto;
  height: auto;
  max-width: 90% !important;
  max-height: 100px !important;
  object-fit: contain !important;
  opacity: 1;
  filter: none;
  transition: all 0.4s ease;
  mix-blend-mode: multiply;
  display: block;
}

.trust-logo:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(59, 130, 246, 0.25);
}

.trust-logo:hover img {
  transform: scale(1.1);
}

/* FOOTER */
.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 60px;
  padding: 80px 8% 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  text-align: left;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #94a3b8;
  transition: 0.3s;
}

.footer-links a:hover {
  color: #3b82f6;
  padding-left: 5px;
}

.footer-links li i {
  transition: 0.3s ease;
}

.footer-links li:hover i {
  transform: scale(1.2);
}

.social-links a:hover {
  background: #3b82f6 !important;
  color: #fff !important;
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}

.bottom-footer {
  padding: 30px 8%;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: #64748b;
  font-size: 14px;
}

/* CTA BLOCK */
.cta {
  background: linear-gradient(135deg, #1e293b, #0b1220);
  padding: 80px 8%;
  text-align: center;
  border-radius: 30px;
  margin: 60px 8%;
}

/* RESPONSIVE QUERIES */
@media (max-width: 1100px) {

  .services-grid,
  .realisations-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .header {
    padding: 15px 5%;
  }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 80%;
    background: #020617;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
  }

  .nav.active {
    right: 0;
  }

  .burger {
    display: flex;
  }

  .hero h1,
  .page-header h1 {
    font-size: 36px;
  }

  section {
    padding: 60px 5%;
  }

  .stats,
  .services-grid,
  .realisations-grid,
  .why-us-grid,
  .footer-main {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .cta {
    margin: 40px 5%;
  }
}

@media (max-width: 500px) {

  .hero h1,
  .page-header h1 {
    font-size: 28px;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    text-align: center;
  }
}