:root {
  --bg: #ffffff;
  --bg-light: #f6f6f6;
  --ink: #0b0b0b;
  --ink-soft: #4a4a4a;
  --line: #cfcfcf;
  --accent: #14a3c7;      /* cyan du logo */
  --accent-deep: #50648a; /* bleu ardoise du logo */
  --accent-dark: #086a84; /* cyan foncé pour les textes sur fond gris (contraste WCAG ≥ 4,5:1) */
  --orange: #f07d1a;      /* orange du deck — à ajuster avec le code exact */
  --dark: #e9e9e9;        /* fond des sections contrastées (ex-noir) */
  --radius: 18px;
  --pad: clamp(16px, 5vw, 72px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Manrope", system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

/* ---------- NAV ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--pad);
  transition: background .3s, box-shadow .3s;
}
.nav.is-scrolled { background: rgba(255,255,255,.9); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
.nav__logo img { height: 32px; width: auto; }
.nav__links { display: flex; gap: 32px; align-items: center; }
.nav__links a {
  text-decoration: none; font-size: 13px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .06em;
}
.nav__links a:hover { color: var(--accent); }
.nav__cta { border: 1.5px solid var(--ink); padding: 8px 18px; border-radius: 999px; }
.nav__cta:hover { background: var(--ink); color: #fff !important; }
.nav__burger { display: none; background: none; border: 0; width: 32px; height: 24px; position: relative; cursor: pointer; }
.nav__burger span { position: absolute; left: 4px; right: 4px; height: 2px; background: var(--ink); transition: transform .3s, top .3s; }
.nav__burger span:first-child { top: 7px; }
.nav__burger span:last-child { top: 15px; }
.nav.is-open .nav__burger span:first-child { top: 11px; transform: rotate(45deg); }
.nav.is-open .nav__burger span:last-child { top: 11px; transform: rotate(-45deg); }

/* ---------- HERO ---------- */
.hero {
  min-height: 100vh; min-height: 100svh;
  display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 40px;
  padding: 120px var(--pad) 80px;
  background: linear-gradient(180deg, var(--bg) 0%, #ececec 100%);
  overflow: hidden;
}
.hero__text { grid-column: 1; grid-row: 1; position: relative; z-index: 2; }
h1 {
  font-size: clamp(38px, 5vw, 84px);
  font-weight: 800; line-height: 1.02; letter-spacing: -.035em;
}
.accent { color: var(--accent); }
.accent-orange { color: var(--orange); }
.hero__lead { max-width: 520px; margin: 28px 0 36px; font-size: 19px; color: var(--ink-soft); }

/* Sphères : gouttes minérales disposées en onde concentrique */
.hero__spheres { grid-column: 2; grid-row: 1; position: relative; aspect-ratio: 1; width: 100%; max-width: 560px; justify-self: center; }
.s {
  position: absolute; border-radius: 50%;
  width: var(--d); height: var(--d);
  left: calc(var(--x) - var(--d) / 2); top: calc(var(--y) - var(--d) / 2);
  background:
    radial-gradient(circle at 32% 26%, rgba(255,255,255,.95) 0 6%, rgba(255,255,255,0) 22%),
    radial-gradient(circle at 50% 120%, rgba(20,163,199,.55), rgba(20,163,199,0) 60%),
    linear-gradient(170deg, #fafafa 0%, #9a9a9a 48%, #1a1a1a 100%);
  box-shadow: inset -8px -14px 24px rgba(0,0,0,.35), 0 24px 40px -18px rgba(0,0,0,.45);
  animation: float 7s ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}
.s1 { --x: 50%; --y: 50%; --d: 24%; background:
  radial-gradient(circle at 32% 26%, rgba(255,255,255,.95) 0 6%, rgba(255,255,255,0) 24%),
  linear-gradient(170deg, #9fe6f7 0%, var(--accent) 50%, #0a3d4c 100%); }
.s2 { --x: 50%; --y: 16%; --d: 15%; --delay: -1s; }
.s3 { --x: 80%; --y: 33%; --d: 15%; --delay: -2s; }
.s4 { --x: 80%; --y: 67%; --d: 15%; --delay: -3s; }
.s5 { --x: 50%; --y: 84%; --d: 15%; --delay: -4s; }
.s6 { --x: 20%; --y: 67%; --d: 15%; --delay: -5s; }
.s7 { --x: 20%; --y: 33%; --d: 15%; --delay: -6s; }
.s8 { --x: 92%; --y: 10%; --d: 8%;  --delay: -2.5s; }
.s9 { --x: 8%;  --y: 92%; --d: 8%;  --delay: -4.5s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ---------- BOUTONS ---------- */
.btn {
  display: inline-block; text-decoration: none;
  background: var(--ink); color: #fff;
  padding: 16px 30px; border-radius: 999px;
  font-size: 14px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
  transition: background .25s, transform .25s;
}
.btn:hover { background: var(--accent); transform: translateY(-2px); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--accent-dark); color: #fff; }

/* ---------- SECTIONS ---------- */
.section { padding: clamp(56px, 7vw, 96px) var(--pad); }
.section--dark { background: var(--dark); color: var(--ink); }
.section--dark .eyebrow { color: var(--accent-dark); }
.section--dark .stats li:nth-child(2) strong { color: var(--accent-dark); }
.section--dark p { color: var(--ink-soft); }
.section--light { background: var(--bg-light); }

.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: 22px;
  display: flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.big {
  font-size: clamp(36px, 5.6vw, 76px);
  font-weight: 800; line-height: 1.04; letter-spacing: -.03em;
  max-width: 1100px; margin-bottom: 48px;
}
.mid {
  font-size: clamp(24px, 2.8vw, 38px);
  font-weight: 800; line-height: 1.2; letter-spacing: -.02em;
  max-width: 900px; margin-bottom: 64px;
}
.text { max-width: 700px; margin-bottom: 16px; }
.lead:has(+ .lead) { margin-bottom: 16px; }
.text + .split { margin-top: 48px; }
.text--after { margin-top: 56px; }
/* Texte avec une petite photo à droite */
.text-photo { display: flex; align-items: center; gap: 32px; max-width: 1100px; }
.text-photo .text { margin-bottom: 0; flex: 1; }
.text-photo .text p + p { margin-top: 16px; }
.text-photo h3 { font-size: 26px; font-weight: 800; letter-spacing: -.01em; margin-bottom: 12px; } /* même style que les mini-titres .split__text h3 */
.text-photo img { width: 280px; height: auto; border-radius: var(--radius); flex-shrink: 0; }
@media (max-width: 760px) {
  .text-photo { flex-direction: column; align-items: flex-start; gap: 16px; }
  .text-photo img { width: 100%; max-width: 358px; }
}
.lead { font-size: 20px; max-width: 700px; color: var(--ink-soft); margin-bottom: 48px; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; max-width: 1100px; font-size: 18px; }
.sub { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; margin: 56px 0 24px; color: var(--ink-soft); }

/* Cartes */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 80px; }
.card { background: var(--bg-light); border-radius: var(--radius); overflow: hidden; transition: transform .35s; }
.card:hover { transform: translateY(-6px); }
.card img { aspect-ratio: 4/3; object-fit: cover; width: 100%; filter: grayscale(1) contrast(1.05); transition: filter .4s; }
.card:hover img { filter: none; }
.card__body { padding: 28px; }
.card__num { font-size: 13px; font-weight: 600; color: var(--accent); }
.card h3 { font-size: 24px; font-weight: 800; letter-spacing: -.01em; margin: 6px 0 8px; }
.card p { color: var(--ink-soft); }

/* Stats */
.stats { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px; margin-top: 80px; border-bottom: 1px solid #c4c4c4; padding-bottom: 40px; }
.stats strong { display: block; font-size: clamp(36px, 3.6vw, 60px); font-weight: 800; letter-spacing: -.03em; color: var(--ink); line-height: 1; }
.stats span { color: var(--ink-soft); font-size: 15px; }
.stats--top { margin-top: 0; }
.source + .split { margin-top: 72px; }
.stats li:nth-child(1) strong { color: var(--orange); }
.stats li:nth-child(2) strong { color: var(--accent); }
.stats li:nth-child(3) strong { color: var(--ink); }

/* Etapes */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { border-top: 2px solid var(--ink); padding-top: 24px; }
.step__n {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 800; margin-bottom: 20px;
}
.step h3 { font-size: 28px; font-weight: 600; margin-bottom: 8px; }
.step p { color: var(--ink-soft); }

/* Votre projet : bénéfices clients + déroulé */
.benefits { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 1100px; }
.benefit { background: #fff; border-radius: var(--radius); padding: 32px 28px; }
.benefit h3 { font-size: 22px; font-weight: 800; margin-bottom: 16px; }
.benefit ul { list-style: none; }
.benefit li { padding: 10px 0; border-top: 1px solid #eee; color: var(--ink-soft); }
.benefit li::before { content: "→ "; color: var(--accent); }
.benefits + .sub { margin-top: 96px; }
.steps--5 { grid-template-columns: repeat(5, 1fr); }
.steps--5 .step h3 { font-size: 20px; font-weight: 800; line-height: 1.25; min-height: 2.5em; } /* titres sur 2 lignes, textes alignés */
.steps--5 .step p { font-size: 15px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; margin-top: 120px; }
.split__img img { border-radius: var(--radius); }
.split__img--stack { display: grid; gap: 16px; }
.caption { font-size: 13px; color: var(--ink-soft); line-height: 1.5; }
/* Deux photos côte à côte, même hauteur */
.split__img--row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.split__img--row img { aspect-ratio: 4 / 3; height: auto; object-fit: cover; }
.split__img--row.split__img--portrait img { aspect-ratio: 3 / 4; }
/* Image affichée en entier dans sa case (ex. planche de microscope avec légendes) */
.split__img--row img.img--contain { object-fit: contain; background: #111; }
/* Recadre une photo verticale en paysage (4/3) */
.split__img--paysage img { aspect-ratio: 4 / 3; height: auto; object-fit: cover; object-position: center 45%; }
.split__text h3 { font-size: 26px; font-weight: 800; letter-spacing: -.01em; margin-bottom: 12px; }
.split__text p { color: var(--ink-soft); margin-bottom: 36px; }

/* ASHES */
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.axis { background: #fff; border-radius: var(--radius); padding: 32px 28px; }
.axis h3 { font-size: 22px; font-weight: 800; margin-bottom: 16px; }
.axis ul { list-style: none; }
.axis li { padding: 10px 0; border-top: 1px solid #eee; color: var(--ink-soft); font-size: 15px; }
.axis li::before { content: "→ "; color: var(--accent); }

/* Equipe */
.logos { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 28px 40px; margin-top: 16px; }
.logos img { height: 64px; width: auto; max-width: 100%; }
.logos img.logo--wide { height: 36px; } /* logo sans marge blanche : réduit pour équilibrer */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.person { background: var(--bg-light); border-radius: var(--radius); padding: 32px; }
.person__avatar {
  width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 800; font-size: 20px; color: #fff; margin-bottom: 20px;
  background: linear-gradient(160deg, #9fe6f7, var(--accent) 50%, #0a3d4c);
}
.person__avatar--alt { background: linear-gradient(160deg, #f0f0f0, #888 50%, #1a1a1a); }
.person h4 { font-size: 22px; font-weight: 800; }
.person__role { color: var(--accent-deep); font-weight: 600; font-size: 15px; margin-bottom: 8px; }
.person__bio { color: var(--ink-soft); font-size: 15px; }
.person a { font-size: 15px; text-decoration: none; border-bottom: 1px solid var(--accent); }

/* Références */
.refs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ref { background: #fff; border-radius: var(--radius); padding: 32px 28px; overflow: hidden; display: flex; flex-direction: column; }
.ref__img { display: block; width: calc(100% + 56px); max-width: none; height: auto; aspect-ratio: 4 / 3; object-fit: cover; margin: -32px -28px 24px; }
.ref__meta { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-dark) !important; margin-bottom: 12px; }
.ref h3 { font-size: 22px; font-weight: 800; margin-bottom: 8px; }
.ref > p:not(.ref__meta) { margin-bottom: 20px; }
.ref__img { flex-shrink: 0; }
.ref__client { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 16px; padding-top: 16px; border-top: 1px solid #eee; font-size: 15px; font-weight: 600; }
.ref__client img { height: 40px; width: auto; }

/* Publications */
.pubs { list-style: none; border-top: 2px solid var(--ink); max-width: 1100px; }
.pub { display: grid; grid-template-columns: 90px 1fr auto; gap: 24px; align-items: baseline; padding: 28px 0; border-bottom: 1px solid var(--line); }
.pub__year { font-weight: 800; font-size: 20px; color: var(--accent); }
.pub h3 { font-size: 20px; font-weight: 600; line-height: 1.35; margin-bottom: 6px; }
.pub__authors { color: var(--ink-soft); font-size: 15px; }
.pub__journal { color: var(--ink-soft); font-size: 15px; font-style: italic; }
.pub__link { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; border-bottom: 1.5px solid var(--accent); white-space: nowrap; }
.pub__link:hover { color: var(--accent); }
.pubs__more { margin-top: 32px; color: var(--ink-soft); }
.pubs__more a { color: var(--ink); font-weight: 600; text-decoration: none; border-bottom: 1.5px solid var(--accent); }
.pubs__more a:hover { color: var(--accent); }

/* Contact */
.addresses { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 80px; max-width: 800px; border-top: 1px solid #c4c4c4; padding-top: 40px; }
.addresses p + p { margin-top: 14px; }
.addresses h3 { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); margin-bottom: 8px; }

/* Footer */
.footer { display: flex; justify-content: space-between; padding: 28px var(--pad); background: var(--dark); color: var(--ink-soft); font-size: 14px; border-top: 1px solid #d4d4d4; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--accent-dark); }
.footer__links { display: flex; gap: 24px; }

/* Page mentions légales */
.legal { padding-top: 140px; max-width: 860px; }
.legal h2 { font-size: 20px; font-weight: 800; margin: 40px 0 10px; }
.legal p { color: var(--ink-soft); margin-bottom: 12px; }
.legal a { color: var(--ink); text-decoration-color: var(--accent); }

/* Apparition au défilement */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .s { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .nav__links { gap: 16px; }
  .nav__links a { font-size: 12px; letter-spacing: .03em; }
  .grid4 { grid-template-columns: 1fr 1fr; }
  .cards, .team, .refs { grid-template-columns: 1fr 1fr; }
  .steps--5 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav__burger { display: block; }
  .nav__links {
    position: fixed; inset: 68px 0 auto 0; flex-direction: column; gap: 0;
    background: var(--bg); padding: 8px 16px 24px; border-bottom: 1px solid var(--line);
    transform: translateY(-120%); transition: transform .35s; z-index: -1;
  }
  .nav.is-open .nav__links { transform: none; }
  .nav__links--simple { position: static; transform: none; flex-direction: row; background: none; border: 0; padding: 0; z-index: auto; }
  .nav .nav__links--simple a { border: 0; padding: 0; width: auto; }
  .nav__links a { padding: 14px 0; width: 100%; border-bottom: 1px solid var(--line); }
  .nav__cta { border: 0; border-radius: 0; padding: 14px 0; }
  .hero { grid-template-columns: 1fr; padding-top: 96px; gap: 24px; }
  .hero__spheres { grid-column: 1; grid-row: 1; max-width: 300px; }
  .hero__text { grid-row: 2; }
  .cols, .cards, .stats, .steps, .steps--5, .split, .grid4, .team, .addresses, .refs, .benefits { grid-template-columns: 1fr; }
  .pub { grid-template-columns: 1fr; gap: 6px; }
  .cols { gap: 16px; }
  .stats { gap: 32px; }
  .split { margin-top: 72px; }
  .footer { flex-direction: column; gap: 8px; }
}
