
/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* === PALETTE OFFICIELLE DEVPIONEERS === */
  --accent: #1D3A6E;        /* Bleu marine (remplace #6366f1) */
  --accent-dark: #0A1A3A;   /* Bleu nuit profond (remplace #1e1b4b) */
  --bg-light: #F7F4EE;      /* Crème très doux (remplace #f5f7fb) */
  --bg-dark: #0A1A3A;       /* Bleu nuit (remplace #0f0f13) */
  --text-dark: #0F1E3C;     /* Bleu très foncé (remplace #1a1a2e) */
  --text-muted: #8A99B5;    /* Bleu grisé (remplace #aaa) */
  --white: #ffffff;
  --card-shadow: 0 4px 24px rgba(29,58,110,0.08); /* Ombre bleue marine */
  --radius: 20px;
  --max-width: 1200px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  background: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

/* =============================================
   UTILITIES
   ============================================= */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  margin-bottom: 16px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 16px;
  max-width: 560px;
  margin: 0 auto 50px;
}

.btn {
  padding: 14px 32px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
  display: inline-block;
  margin: 8px;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #F2EBD9;
  box-shadow: 0 8px 24px rgba(29,58,110,0.3);
}

.btn-primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(29,58,110,0.45);
}

.btn-outline {
  border: 2px solid var(--white);
  color: var(--white);
  background: transparent;
}

.btn-outline:hover {
  background: var(--white);
  color: var(--accent-dark);
  transform: translateY(-4px);
}

.btn-outline-dark {
  border: 2px solid var(--accent);
  color: var(--accent);
  background: transparent;
}

.btn-outline-dark:hover {
  background: var(--accent);
  color: var(--white);
  transform: translateY(-4px);
}

/* =============================================
   HERO
   ============================================= */
.hero {
  min-height: 100vh;
  background: linear-gradient(rgba(0,0,0,0.65), rgba(0,0,0,0.55)),
              url('/images/home.webp') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  color: var(--white);
}

.hero-content {
  max-width: 800px;
}

.hero h1 {
  font-size: clamp(42px, 8vw, 80px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
}

.hero h1 span {
  color: #F2EBD9; /* Crème losange */
}

.hero p {
  margin: 24px 0 36px;
  font-size: clamp(16px, 2vw, 20px);
  color: rgba(255,255,255,0.85);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.hero-btns {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

/* =============================================
   CLIENTS
   ============================================= */
.clients {
  padding: 70px 24px;
  background: var(--white);
  text-align: center;
}

.clients h2 {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 36px;
}

.clients-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}

.clients-logos img {
  height: 36px;
  opacity: 0.5;
  filter: grayscale(1);
  transition: opacity 0.3s, filter 0.3s;
}

.clients-logos img:hover {
  opacity: 0.85;
  filter: grayscale(0);
}

/* =============================================
   QUI SOMMES-NOUS
   ============================================= */
.quisommesnous {
  background: var(--white);
  padding: 100px 24px;
  border-top: 1px solid #f0f0f5;
}

.qsn-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
}

.qsn-text h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  margin-bottom: 20px;
}

.qsn-text p {
  color: #555;
  font-size: 16px;
  margin-bottom: 14px;
}

.qsn-text .btn {
  margin-left: 0;
  margin-top: 12px;
}

.qsn-image {
  position: relative;
}

.qsn-image img {
  width: 100%;
  border-radius: var(--radius);
  object-fit: cover;
  display: block;
  box-shadow: 0 24px 60px rgba(29,58,110,0.15);
}

/* =============================================
   STATS
   ============================================= */
.stats {
  background: var(--bg-dark);
  color: var(--white);
  padding: 80px 24px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}

.stat {
  padding: 32px 20px;
  border: 1px solid rgba(242,235,217,0.2); /* Crème translucide */
  border-radius: var(--radius);
  background: rgba(242,235,217,0.05);
  transition: border-color 0.3s, background 0.3s;
}

.stat:hover {
  border-color: #F2EBD9;
  background: rgba(242,235,217,0.1);
}

.stat h2 {
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 800;
  color: #F2EBD9; /* Crème losange */
  line-height: 1;
}

.stat p {
  color: var(--text-muted);
  margin-top: 8px;
  font-size: 15px;
}

/* =============================================
   PROCESS
   ============================================= */
.process {
  padding: 100px 24px;
  text-align: center;
  background: var(--bg-light);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 50px;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

.step {
  background: var(--white);
  padding: 36px 28px;
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  position: relative;
  transition: transform 0.3s, box-shadow 0.3s;
}

.step:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 36px rgba(29,58,110,0.14);
}

.step-number {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #F2EBD9;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  margin: 0 auto 20px;
}

.step h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.step p {
  color: #777;
  font-size: 14px;
}

/* =============================================
   SERVICES
   ============================================= */
.services {
  padding: 100px 24px;
  text-align: center;
  background: var(--white);
}

.service-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.card {
  background: var(--bg-light);
  padding: 0;
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  text-align: left;
  border: 1px solid #eee;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 48px rgba(29,58,110,0.12);
}

.card-img-wrap {
  height: 180px;
  overflow: hidden;
  background: #e8e8f0;
  position: relative;
}

/* Palette DevPioneers pour les cards */
.card-img-wrap.web    { background: linear-gradient(135deg, #1D3A6E, #3056A0); }
.card-img-wrap.mobile { background: linear-gradient(135deg, #152D57, #1D3A6E); }
.card-img-wrap.ecom   { background: linear-gradient(135deg, #0A1A3A, #1D3A6E); }
.card-img-wrap.custom { background: linear-gradient(135deg, #3056A0, #152D57); }

.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s;
}

.card:hover .card-img-wrap img {
  transform: scale(1.05);
}

.card-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 48px;
  opacity: 0.9;
}

.card-body {
  padding: 24px;
}

.card-body h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.card-body p {
  color: #666;
  font-size: 14px;
}

.card-body a {
  display: inline-block;
  margin-top: 14px;
  color: var(--accent); /* Bleu marine */
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: gap 0.2s;
}

.card-body a:hover {
  text-decoration: underline;
}

/* =============================================
   VIDEO SECTION
   ============================================= */
.section-bg {
  position: relative;
  height: 85vh;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.bg-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 0;
}

.overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.3) 60%, transparent 100%);
  z-index: 1;
}

.video-content {
  position: relative;
  z-index: 2;
  padding: 48px 48px;
  color: var(--white);
}

.video-content h1 {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 300;
  letter-spacing: -0.5px;
}

.video-content h3 {
  font-size: clamp(32px, 5vw, 60px);
  font-weight: 800;
  color: #F2EBD9; /* Crème losange */
  line-height: 1;
}

/* =============================================
   WHY US
   ============================================= */
.why {
  padding: 100px 24px;
  background: var(--bg-light);
  text-align: center;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-top: 50px;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

.why-card {
  background: var(--white);
  padding: 36px 28px;
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  transition: transform 0.3s, box-shadow 0.3s;
  text-align: left;
}

.why-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(29,58,110,0.12);
}

.why-card .icon {
  font-size: 36px;
  margin-bottom: 16px;
  display: block;
}

.why-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.why-card p {
  color: #666;
  font-size: 14px;
  line-height: 1.6;
}

/* =============================================
   TESTIMONIALS
   ============================================= */
.testimonials {
  background: var(--bg-dark);
  color: var(--white);
  padding: 100px 24px;
  text-align: center;
}

.testimonials-title {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800;
  margin-bottom: 60px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: left;
}

.testimonial-card {
  background: rgba(242,235,217,0.05);
  border: 1px solid rgba(242,235,217,0.15); /* Crème translucide */
  border-radius: var(--radius);
  padding: 32px;
  transition: border-color 0.3s;
}

.testimonial-card:hover {
  border-color: #F2EBD9; /* Crème losange */
}

.testimonial-stars {
  color: #facc15;
  font-size: 18px;
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.testimonial-card p {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255,255,255,0.8);
  font-style: italic;
  margin-bottom: 24px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  color: #F2EBD9;
  flex-shrink: 0;
}

.author-info strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
}

.author-info span {
  font-size: 13px;
  color: var(--text-muted);
}

/* =============================================
   CTA FINAL
   ============================================= */
.cta-final {
  padding: 120px 24px;
  text-align: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.cta-final::before {
  content: '';
  position: absolute;
  top: -60%;
  left: -20%;
  width: 600px;
  height: 600px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
}

.cta-final::after {
  content: '';
  position: absolute;
  bottom: -40%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
}

.cta-final h2 {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  max-width: 720px;
  margin: 0 auto 16px;
  position: relative;
  z-index: 1;
}

.cta-final p {
  font-size: 18px;
  opacity: 0.85;
  margin-bottom: 36px;
  position: relative;
  z-index: 1;
}

.cta-final .btn {
  position: relative;
  z-index: 1;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: #08080d;
  color: var(--text-muted);
  padding: 60px 24px 40px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.footer-brand h3 {
  font-size: 22px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 12px;
}

.footer-brand h3 span {
  color: #F2EBD9; /* Crème losange */
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  max-width: 280px;
}

.footer-col h4 {
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 14px;
  transition: color 0.2s;
}

.footer-col ul li a:hover {
  color: #F2EBD9; /* Crème losange */
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 32px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
}

.footer-bottom a {
  color: #F2EBD9; /* Crème losange */
  text-decoration: none;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.97);
    flex-direction: column;
    padding: 20px 24px;
    border-bottom: 1px solid #eee;
    gap: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links .nav-cta {
    align-self: flex-start;
  }

  .qsn-container {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .qsn-image {
    order: -1;
  }

  .video-content {
    padding: 36px 24px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .hero-btns {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .process-grid,
  .service-cards,
  .why-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
}
