/* ========================================
   DP Conseil — Design System
   Palette: #0F1A13 (bg), #4CAF78 (accent)
   Typo: Inter, Geist Mono
   ======================================== */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #0F1A13;
  --bg-light: #F8FAF9;
  --bg-sectors: #0A1510;
  --green: #4CAF78;
  --green-dark: #2E7D52;
  --green-darker: #1B5E3A;
  --white: #FFFFFF;
  --white-90: rgba(255,255,255,0.9);
  --white-70: rgba(255,255,255,0.7);
  --white-50: rgba(255,255,255,0.5);
  --white-30: rgba(255,255,255,0.3);
  --white-10: rgba(255,255,255,0.06);
  --white-border: rgba(255,255,255,0.06);
  --dark: #0F1A13;
  --dark-60: rgba(15,26,19,0.6);
  --dark-40: rgba(15,26,19,0.4);
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Geist Mono', 'SF Mono', 'Fira Code', monospace;
  --radius: 4px;
  --radius-lg: 8px;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-main);
  background: var(--bg);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── Navigation ─────────────────────── */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 64px;
  transition: background 0.3s, backdrop-filter 0.3s, padding 0.3s;
}

.nav--scrolled {
  background: rgba(15,26,19,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 14px 64px;
  border-bottom: 1px solid rgba(76,175,120,0.1);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__links a:not(.nav__cta) {
  font-size: 14px;
  color: var(--white-50);
  text-decoration: none;
  transition: color 0.2s;
}

.nav__links a:not(.nav__cta):hover {
  color: var(--white);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-icon svg {
  display: block;
}

.logo-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.logo-text__name {
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 700;
  color: var(--white-90);
  letter-spacing: 4px;
}

.logo-text__sub {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  color: rgba(76,175,120,0.8);
  letter-spacing: 2px;
}

.nav__cta {
  padding: 10px 20px !important;
  background: var(--green) !important;
  color: var(--bg) !important;
  border-radius: var(--radius);
  font-weight: 600 !important;
  transition: background 0.2s, transform 0.2s !important;
}

.nav__cta:hover {
  background: #5cbf8a !important;
  transform: translateY(-1px);
}

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav__burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav__burger.active span:nth-child(2) {
  opacity: 0;
}
.nav__burger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99;
  background: rgba(15,26,19,0.97);
  backdrop-filter: blur(20px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu a {
  font-size: 20px;
  color: var(--white-70);
  text-decoration: none;
  transition: color 0.2s;
}

.mobile-menu a:hover {
  color: var(--white);
}

/* ── Eyebrow ────────────────────────── */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
}

.eyebrow__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

.eyebrow__text {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--white-30);
  letter-spacing: 3px;
}

.eyebrow--dark .eyebrow__text {
  color: var(--dark);
}

/* ── Buttons ────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  font-family: var(--font-main);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  transition: all 0.25s;
  cursor: pointer;
  border: none;
}

.btn--primary {
  background: var(--green);
  color: var(--bg);
}

.btn--primary:hover {
  background: #5cbf8a;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(76,175,120,0.25);
}

.btn--ghost {
  background: transparent;
  color: var(--white-90);
  border: 1px solid rgba(76,175,120,0.35);
}

.btn--ghost:hover {
  border-color: rgba(76,175,120,0.6);
  background: rgba(76,175,120,0.08);
}

.btn--lg {
  padding: 18px 44px;
}

/* ── Hero ───────────────────────────── */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 0 64px;
  background:
    radial-gradient(ellipse at 70% 30%, rgba(76,175,120,0.09) 0%, transparent 70%),
    var(--bg);
  overflow: hidden;
}

.hero__deco {
  position: absolute;
  opacity: 0.12;
}

.hero__deco--1 {
  width: 80px;
  height: 80px;
  right: 120px;
  bottom: 150px;
  border: 2px solid var(--green);
  border-radius: 0;
  /* Corner ticks via clip-path */
  background:
    linear-gradient(var(--green), var(--green)) 0 0 / 24px 2px no-repeat,
    linear-gradient(var(--green), var(--green)) 0 0 / 2px 24px no-repeat,
    linear-gradient(var(--green), var(--green)) calc(100% - 0px) 0 / 24px 2px no-repeat,
    linear-gradient(var(--green), var(--green)) calc(100%) 0 / 2px 24px no-repeat,
    linear-gradient(var(--green), var(--green)) 0 calc(100%) / 24px 2px no-repeat,
    linear-gradient(var(--green), var(--green)) 0 calc(100% - 0px) / 2px 24px no-repeat,
    linear-gradient(var(--green), var(--green)) calc(100%) calc(100%) / 24px 2px no-repeat,
    linear-gradient(var(--green), var(--green)) calc(100%) calc(100% - 0px) / 2px 24px no-repeat;
  border: none;
}

.hero__deco--2 {
  width: 120px;
  height: 120px;
  right: 280px;
  top: 180px;
  opacity: 0.06;
  background:
    linear-gradient(var(--green), var(--green)) 0 0 / 30px 2px no-repeat,
    linear-gradient(var(--green), var(--green)) 0 0 / 2px 30px no-repeat,
    linear-gradient(var(--green), var(--green)) calc(100%) 0 / 30px 2px no-repeat,
    linear-gradient(var(--green), var(--green)) calc(100%) 0 / 2px 30px no-repeat,
    linear-gradient(var(--green), var(--green)) 0 calc(100%) / 30px 2px no-repeat,
    linear-gradient(var(--green), var(--green)) 0 calc(100%) / 2px 30px no-repeat,
    linear-gradient(var(--green), var(--green)) calc(100%) calc(100%) / 30px 2px no-repeat,
    linear-gradient(var(--green), var(--green)) calc(100%) calc(100%) / 2px 30px no-repeat;
}

.hero__content {
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 900px;
  padding-top: 80px;
}

.hero__title {
  font-family: var(--font-main);
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 700;
  line-height: 1.05;
  color: var(--white);
  letter-spacing: -0.02em;
}

.hero__subtitle {
  font-size: 18px;
  color: var(--white-50);
  line-height: 1.7;
  max-width: 700px;
}

.hero__ctas {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

/* ── Accent Strip ───────────────────── */

.accent-strip {
  display: flex;
  height: 4px;
}

.accent-strip__bar {
  flex: 1;
}

.accent-strip__bar--1 { background: var(--green); }
.accent-strip__bar--2 { background: var(--green-dark); }
.accent-strip__bar--3 { background: var(--green-darker); }

/* ── Services ───────────────────────── */

.services {
  background:
    radial-gradient(ellipse at 20% 80%, rgba(76,175,120,0.06) 0%, transparent 60%),
    var(--bg);
}

.services__inner {
  padding: 80px 64px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.section-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.section-title {
  font-size: clamp(32px, 3.5vw, 48px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--white);
  letter-spacing: -0.02em;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px;
  background: var(--white-10);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  transition: border-color 0.3s, transform 0.3s, background 0.3s;
}

.card:hover {
  border-color: rgba(76,175,120,0.3);
  transform: translateY(-4px);
  background: rgba(76,175,120,0.05);
}

.card__icon {
  width: 32px;
  height: 32px;
}

.card__title {
  font-size: 22px;
  font-weight: 600;
  color: var(--white);
}

.card__desc {
  font-size: 14px;
  color: var(--white-50);
  line-height: 1.6;
}

/* ── Sectors ────────────────────────── */

.sectors {
  background:
    linear-gradient(90deg, rgba(76,175,120,0.06) 0%, transparent 50%, rgba(76,175,120,0.06) 100%),
    var(--bg-sectors);
  padding: 56px 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.sectors__label {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--white-30);
  letter-spacing: 4px;
}

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

.sector {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  color: var(--white-70);
}

.sectors__badges {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.badge {
  font-family: var(--font-mono);
  font-size: 13px;
  color: rgba(76,175,120,0.8);
  padding: 8px 16px;
  border: 1px solid rgba(76,175,120,0.2);
  border-radius: var(--radius);
  transition: border-color 0.3s, background 0.3s;
}

.badge:hover {
  border-color: rgba(76,175,120,0.5);
  background: rgba(76,175,120,0.08);
}

/* ── About ──────────────────────────── */

.about {
  background:
    radial-gradient(ellipse at 80% 50%, rgba(76,175,120,0.04) 0%, transparent 60%),
    var(--bg-light);
}

.about__inner {
  display: flex;
  gap: 80px;
  padding: 80px 64px;
}

.about__left {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about__name {
  font-size: 44px;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: -0.02em;
}

.about__bio {
  font-size: 15px;
  color: var(--dark-60);
  line-height: 1.7;
}

.about__right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.stat-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  background: rgba(76,175,120,0.04);
  border: 1px solid rgba(76,175,120,0.08);
  border-radius: var(--radius-lg);
  transition: border-color 0.3s, transform 0.2s;
}

.stat-card:hover {
  border-color: rgba(76,175,120,0.2);
  transform: translateX(4px);
}

.stat-card__number {
  font-size: 48px;
  font-weight: 700;
  color: var(--green);
  line-height: 1;
}

.stat-card__label {
  font-size: 15px;
  color: var(--dark-40);
}

/* ── References ─────────────────────── */

.references {
  background:
    radial-gradient(ellipse at 80% 20%, rgba(76,175,120,0.06) 0%, transparent 60%),
    var(--bg);
}

.references__inner {
  padding: 80px 64px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.references__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.ref-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px;
  background: var(--white-10);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  transition: border-color 0.3s, transform 0.3s;
}

.ref-card:hover {
  border-color: rgba(76,175,120,0.25);
  transform: translateY(-3px);
}

.ref-card__sector {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--green);
  letter-spacing: 0.5px;
}

.ref-card__title {
  font-size: 20px;
  font-weight: 600;
  color: var(--white);
  line-height: 1.3;
}

.ref-card__results {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ref-card__results li {
  font-size: 14px;
  color: var(--white-50);
  line-height: 1.5;
  padding-left: 16px;
  position: relative;
}

.ref-card__results li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 1px;
  background: var(--green);
}

.ref-card__tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.ref-card__tags span {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(76,175,120,0.7);
  padding: 4px 10px;
  border: 1px solid rgba(76,175,120,0.15);
  border-radius: var(--radius);
}

/* ── Contact ────────────────────────── */

.contact {
  background:
    radial-gradient(ellipse at 50% 30%, rgba(76,175,120,0.08) 0%, transparent 60%),
    var(--bg);
}

.contact__inner {
  padding: 80px 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  text-align: center;
}

.contact__title {
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.contact__subtitle {
  font-size: 18px;
  color: var(--white-50);
  line-height: 1.6;
}

.contact__ctas {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.contact .btn--primary {
  box-shadow: 0 4px 20px rgba(76,175,120,0.2);
}

/* ── Footer ─────────────────────────── */

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 64px;
  border-top: 1px solid rgba(255,255,255,0.06);
  background: var(--bg);
}

.footer__copy {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--white-30);
}

.footer__links {
  display: flex;
  gap: 24px;
}

.footer__links a {
  font-size: 13px;
  color: var(--white-30);
  text-decoration: none;
  transition: color 0.2s;
}

.footer__links a:hover {
  color: var(--green);
}

/* ── Scroll Reveal Animations ───────── */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.card.reveal { transition-delay: calc(var(--i, 0) * 0.08s); }
.services__grid .card:nth-child(1) { --i: 0; }
.services__grid .card:nth-child(2) { --i: 1; }
.services__grid .card:nth-child(3) { --i: 2; }
.services__grid .card:nth-child(4) { --i: 3; }
.services__grid .card:nth-child(5) { --i: 4; }
.services__grid .card:nth-child(6) { --i: 5; }

.ref-card.reveal { transition-delay: calc(var(--k, 0) * 0.08s); }
.references__grid .ref-card:nth-child(1) { --k: 0; }
.references__grid .ref-card:nth-child(2) { --k: 1; }
.references__grid .ref-card:nth-child(3) { --k: 2; }
.references__grid .ref-card:nth-child(4) { --k: 3; }
.references__grid .ref-card:nth-child(5) { --k: 4; }
.references__grid .ref-card:nth-child(6) { --k: 5; }

.stat-card.reveal:nth-child(1) { transition-delay: 0s; }
.stat-card.reveal:nth-child(2) { transition-delay: 0.1s; }
.stat-card.reveal:nth-child(3) { transition-delay: 0.2s; }

.badge.reveal { transition-delay: calc(var(--j, 0) * 0.06s); }
.sectors__badges .badge:nth-child(1) { --j: 0; }
.sectors__badges .badge:nth-child(2) { --j: 1; }
.sectors__badges .badge:nth-child(3) { --j: 2; }
.sectors__badges .badge:nth-child(4) { --j: 3; }
.sectors__badges .badge:nth-child(5) { --j: 4; }
.sectors__badges .badge:nth-child(6) { --j: 5; }
.sectors__badges .badge:nth-child(7) { --j: 6; }
.sectors__badges .badge:nth-child(8) { --j: 7; }
.sectors__badges .badge:nth-child(9) { --j: 8; }

/* ── Responsive ─────────────────────── */

@media (max-width: 1024px) {
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav {
    padding: 16px 24px;
    justify-content: space-between;
  }

  .nav--scrolled {
    padding: 12px 24px;
  }

  .nav__links {
    display: none;
  }

  .nav__logo {
    margin: 0;
  }

  .nav__burger {
    display: flex;
  }

  .mobile-menu {
    display: flex;
  }

  .hero {
    padding: 0 24px;
    min-height: 90vh;
  }

  .hero__content {
    gap: 24px;
  }

  .hero__subtitle br {
    display: none;
  }

  .hero__deco {
    display: none;
  }

  .services__inner {
    padding: 56px 24px;
  }

  .services__grid {
    grid-template-columns: 1fr;
  }

  .sectors {
    padding: 40px 24px;
  }

  .sectors__icons {
    gap: 24px;
  }

  .sectors__badges {
    gap: 8px;
  }

  .badge {
    font-size: 11px;
    padding: 6px 12px;
  }

  .references__inner {
    padding: 56px 24px;
  }

  .references__grid {
    grid-template-columns: 1fr;
  }

  .about__inner {
    flex-direction: column;
    padding: 56px 24px;
    gap: 40px;
  }

  .about__name {
    font-size: 32px;
  }

  .contact__inner {
    padding: 56px 24px;
  }

  .contact__title br {
    display: none;
  }

  .contact__ctas {
    flex-direction: column;
    width: 100%;
  }

  .contact__ctas .btn {
    width: 100%;
    justify-content: center;
  }

  .footer {
    flex-direction: column;
    gap: 16px;
    padding: 24px;
    text-align: center;
  }

  .footer__links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero__title {
    font-size: 32px;
  }

  .hero__ctas {
    flex-direction: column;
    width: 100%;
  }

  .hero__ctas .btn {
    width: 100%;
    justify-content: center;
  }

  .section-title {
    font-size: 28px;
  }

  .card {
    padding: 24px;
  }
}
