@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  --ink: #071343;
  --ink-deep: #030b2d;
  --paper: #f5f2ec;
  --white: #fff;
  --lime: #c9ff47;
  --orange: #ff7043;
  --muted: #66708f;
  --line: rgba(7, 19, 67, .16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", sans-serif;
  font-size: 18px;
  line-height: 1.6;
}

a { color: inherit; }
.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(24px, 6vw, 96px);
}
.brand { display: inline-flex; width: 220px; text-decoration: none; }
.brand img { display: block; width: 100%; height: auto; }
nav { display: flex; align-items: center; gap: 32px; }
nav a { font-size: 14px; font-weight: 600; text-decoration: none; }
.nav-cta { border-bottom: 2px solid var(--ink); padding: 8px 0; }

.hero {
  position: relative;
  min-height: 810px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  overflow: hidden;
  padding: 150px clamp(24px, 6vw, 96px) 80px;
}
.pixel-grid {
  position: absolute;
  inset: 0;
  opacity: .18;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to right, black, transparent 65%);
}
.hero-copy { position: relative; z-index: 2; align-self: center; max-width: 760px; }
.eyebrow { margin: 0 0 24px; font: 700 12px "Space Grotesk", sans-serif; letter-spacing: .22em; }
.eyebrow.light { color: var(--lime); }
h1, h2, h3 { font-family: "Space Grotesk", sans-serif; line-height: .98; }
h1 { margin: 0; font-size: clamp(72px, 9vw, 144px); letter-spacing: -.07em; }
h1 span { color: transparent; -webkit-text-stroke: 2px var(--ink); }
.lead { max-width: 620px; margin: 34px 0; color: #3e496c; font-size: clamp(19px, 2vw, 26px); line-height: 1.45; }
.button {
  display: inline-flex;
  gap: 28px;
  align-items: center;
  padding: 17px 22px;
  color: var(--white);
  background: var(--ink);
  text-decoration: none;
  font-weight: 600;
  transition: transform .2s, background .2s;
}
.button:hover { transform: translateY(-3px); background: var(--orange); }

.hero-art { position: relative; min-height: 560px; align-self: center; }
.orbit { position: absolute; border: 1px solid rgba(7,19,67,.22); border-radius: 50%; }
.orbit-one { width: 520px; height: 520px; top: 25px; right: -100px; }
.orbit-two { width: 330px; height: 330px; left: 15%; bottom: 0; }
.portrait {
  position: absolute;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  color: var(--ink);
  box-shadow: 0 25px 70px rgba(7, 19, 67, .18);
}
.portrait-mathieu { width: 280px; height: 280px; top: 16px; right: 4%; background: var(--lime); }
.portrait-vincent { width: 280px; height: 280px; bottom: 12px; left: 5%; color: white; background: var(--orange); }
.portrait img { position: absolute; inset: 0; z-index: 1; display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.portrait-mathieu img { object-position: center 42%; }
.portrait-vincent img { object-position: center 40%; }
.portrait-name { position: absolute; z-index: 2; bottom: 22px; padding: 7px 12px; border-radius: 999px; color: white; background: rgba(3,11,45,.78); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; backdrop-filter: blur(6px); }
.photo-note { position: absolute; right: 0; bottom: -20px; margin: 0; color: var(--muted); font-size: 12px; }

.section { padding: 120px clamp(24px, 8vw, 128px); }
.duo { display: grid; grid-template-columns: 80px 1.4fr .8fr; gap: 6vw; color: white; background: var(--ink); }
.section-number { color: rgba(255,255,255,.4); font: 600 14px "Space Grotesk", sans-serif; }
.duo h2, .missions h2, .cooperation h2, .clients h2, .contact h2 { margin: 0 0 44px; font-size: clamp(48px, 6vw, 88px); letter-spacing: -.055em; }
.duo-copy { max-width: 790px; }
.duo-copy p { color: rgba(255,255,255,.72); }
.duo-copy strong { color: white; }
blockquote { align-self: end; margin: 0; padding: 40px 0 0; border-top: 1px solid rgba(255,255,255,.25); color: var(--lime); font: 500 clamp(22px, 2.2vw, 34px)/1.25 "Space Grotesk", sans-serif; }
blockquote span { display: block; height: 60px; font-size: 72px; }

.missions { background: white; }
.section-heading { display: grid; grid-template-columns: 1fr 1fr; gap: 10vw; align-items: end; }
.section-heading > p { max-width: 560px; margin-bottom: 52px; color: var(--muted); font-size: 22px; }
.services { border-top: 1px solid var(--line); }
.services article { display: grid; grid-template-columns: 80px 1fr 1fr; gap: 30px; align-items: center; padding: 34px 0; border-bottom: 1px solid var(--line); }
.services article > span { color: var(--orange); font: 600 13px "Space Grotesk", sans-serif; }
.services h3 { margin: 0; font-size: clamp(25px, 3vw, 42px); letter-spacing: -.04em; }
.services p { margin: 0; color: var(--muted); }

.clients { color: white; background: var(--ink-deep); }
.clients-heading { display: grid; grid-template-columns: 1.25fr .75fr; gap: 8vw; align-items: end; }
.clients-heading > p { max-width: 520px; margin: 0 0 52px; color: rgba(255,255,255,.62); font-size: 20px; }
.client-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.client-card {
  --accent: var(--lime);
  position: relative;
  min-height: 540px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 34px;
  border: 1px solid rgba(255,255,255,.14);
  background: linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.025));
  isolation: isolate;
  transition: transform .25s, border-color .25s;
}
.client-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 260px;
  height: 260px;
  right: -90px;
  bottom: -110px;
  border-radius: 50%;
  background: var(--accent);
  opacity: .12;
  transition: transform .35s, opacity .35s;
}
.client-card:hover { transform: translateY(-6px); border-color: var(--accent); }
.client-card:hover::before { transform: scale(1.35); opacity: .2; }
.client-card-top { display: flex; justify-content: space-between; gap: 24px; color: var(--accent); font: 600 12px "Space Grotesk", sans-serif; letter-spacing: .14em; text-transform: uppercase; }
.client-visual {
  position: relative;
  height: 250px;
  display: grid;
  place-items: center;
  margin: 16px -8px 2px;
  perspective: 800px;
  isolation: isolate;
  pointer-events: none;
}
.client-visual img {
  position: relative;
  z-index: 2;
  width: min(100%, 360px);
  height: 100%;
  object-fit: contain;
  mix-blend-mode: screen;
  transform: translate3d(0, var(--image-y, 0px), 0) rotateX(var(--tilt, 0deg)) rotateZ(var(--turn, 0deg)) scale(var(--zoom, 1));
  filter: saturate(1.12);
  mask-image: radial-gradient(ellipse at center, #000 38%, transparent 73%);
}
.client-atmosphere {
  position: absolute;
  inset: -35% -15%;
  z-index: -1;
  opacity: .23;
  background: radial-gradient(ellipse at center, var(--accent), transparent 65%);
  transform: translate3d(var(--glow-x, 0px), var(--glow-y, 0px), 0);
}
.client-orbits {
  position: absolute;
  width: min(90%, 350px);
  aspect-ratio: 1;
  transform: rotate(var(--orbit-turn, -20deg));
}
.client-orbits i {
  position: absolute;
  inset: 8%;
  border: 1px solid var(--accent);
  border-radius: 50%;
  opacity: .35;
  transform: rotateX(62deg) rotateY(-18deg);
}
.client-orbits i:nth-child(2) { inset: 0; transform: rotateZ(60deg) rotateX(65deg); opacity: .2; }
.client-orbits i:nth-child(3) { inset: -7%; transform: rotateZ(120deg) rotateX(70deg); opacity: .15; }
.client-orbits i::after {
  content: "";
  position: absolute;
  top: 12%;
  left: 12%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 18px var(--accent);
}
.client-particles {
  position: absolute;
  inset: 0;
  z-index: 3;
  transform: translate3d(0, var(--particle-y, 0px), 0) rotate(var(--particle-turn, 0deg));
}
.client-particles i { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 15px var(--accent); }
.client-particles i:nth-child(1) { left: 15%; top: 25%; }
.client-particles i:nth-child(2) { right: 16%; top: 18%; width: 9px; height: 9px; }
.client-particles i:nth-child(3) { left: 29%; bottom: 18%; width: 3px; height: 3px; }
.client-particles i:nth-child(4) { right: 23%; bottom: 25%; }
.client-particles i:nth-child(5) { left: 48%; top: 9%; width: 3px; height: 3px; }
.client-card-top, .client-card h3, .client-card > p { position: relative; z-index: 4; }
.client-card h3 { margin: auto 0 20px; color: white; font-size: clamp(42px, 5vw, 74px); line-height: .98; letter-spacing: -.055em; }
.client-card p { margin: 0; color: rgba(255,255,255,.62); font-size: 15px; }
.client-boiron { --accent: #ffd166; }
.client-fsv { --accent: #36d2c8; }
.client-hcl { --accent: #83d3ff; }
.client-mab { --accent: var(--lime); }

.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 10vw; align-items: end; background: var(--lime); }
.contact h2 { margin-bottom: 24px; }
.contact p { max-width: 600px; }
.contact-link { display: flex; justify-content: space-between; gap: 20px; padding: 24px 0; border-bottom: 3px solid var(--ink); font: 600 clamp(20px, 2.4vw, 36px) "Space Grotesk", sans-serif; text-decoration: none; }

footer { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 40px clamp(24px, 6vw, 96px); color: rgba(255,255,255,.6); background: var(--ink-deep); font-size: 13px; }
.footer-brand { width: 140px; }

@media (max-width: 900px) {
  nav a:not(.nav-cta) { display: none; }
  .hero { min-height: auto; grid-template-columns: 1fr; padding-top: 140px; }
  .hero-art { min-height: 450px; margin-top: 50px; }
  .portrait-mathieu { width: 240px; height: 240px; right: 3%; }
  .portrait-vincent { width: 240px; height: 240px; left: 5%; }
  .duo { grid-template-columns: 1fr; }
  .section-number { display: none; }
  blockquote { margin-top: 20px; }
  .section-heading, .clients-heading, .contact { grid-template-columns: 1fr; }
  .services article { grid-template-columns: 45px 1fr; }
  .services article p { grid-column: 2; }
  .client-grid { grid-template-columns: 1fr; }
  .client-card { min-height: 480px; }
  .client-visual { height: 220px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .site-header { height: 78px; }
  .brand { width: 170px; }
  .nav-cta { font-size: 12px; }
  h1 { font-size: clamp(60px, 20vw, 92px); }
  .hero { padding-top: 116px; }
  .hero-art { min-height: 355px; }
  .portrait-mathieu, .portrait-vincent { width: 185px; height: 185px; }
  .portrait-name { bottom: 16px; font-size: 10px; }
  .section { padding-top: 84px; padding-bottom: 84px; }
  .client-card { min-height: 440px; padding: 26px; }
  .client-visual { height: 190px; margin-top: 10px; }
  footer { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  .client-visual img, .client-orbits, .client-particles, .client-atmosphere { transform: none; }
  .client-card:hover { transform: none; }
}

/* Offres et coopération */
.offers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.offer { display: flex; flex-direction: column; padding: 30px; border: 1px solid var(--line); background: var(--paper); }
.offer { border-top: 4px solid var(--orange); }
.offer .eyebrow { line-height: 1.6; letter-spacing: .12em; }
.offer h3 { margin: 0 0 22px; font-size: clamp(28px, 2.7vw, 42px); line-height: 1.08; letter-spacing: -.045em; }
.offer p { margin: 0 0 20px; font-size: 17px; color: #3e496c; }
.offer .offer-note { padding-top: 20px; border-top: 1px solid var(--line); }
.offer a { margin-top: auto; font-weight: 600; text-underline-offset: 5px; }
.cooperation { background: var(--paper); }
.contact > *, .section-heading > *, .offers > * { min-width: 0; }
.contact-link { overflow-wrap: anywhere; }
.social-links { display: flex; flex-wrap: wrap; gap: 16px 24px; margin-top: 26px; font-size: 16px; font-weight: 600; }
.social-links a { text-underline-offset: 5px; }
.contact-note { font-size: 14px; margin-top: 26px; }
a:focus-visible { outline: 3px solid var(--orange); outline-offset: 6px; }
@media (max-width: 1100px) {
  .offers { grid-template-columns: 1fr; }
  .offer { padding: 30px; }
}
@media (max-width: 560px) {
  .offer { padding: 24px; }
  .contact { gap: 28px; }
}
