/* ==========================================================================
   Anthony Cosson — Portfolio acquisition & marketing digital
   Direction artistique : monochrome sobre
   · Fond blanc, textes en noir et gris. Les couleurs viennent du CV : vert
     pour les boutons, les accents, la barre de navigation et le pied de page,
     or pour les particules (constantes GOLD_ de orb.js), le point du logo, la
     barre de progression et le filet du pied de page.
   · La hiérarchie vient des surfaces (blanc, gris clair) et des filets, sans
     ombre portée.
   · Typographie : Geist 400/500 (titres toujours en 500) + Geist Mono pour
     les relevés de type « instrument ».
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  color-scheme: light;

  /* Surfaces */
  --bg: #ffffff;
  --surface: #f5f5f5;
  --surface-2: #e8e8e8;

  /* Encre */
  --fg: #0a0a0a;
  --text: #525252;
  --muted: #6e6e6e;

  /* Couleurs du CV. --accent sert aux petits éléments (points, lignes,
     survols) : vert sur fond blanc, or dans le pied de page vert. */
  --green: #264c34;
  --green-deep: #1c3a27;
  --gold: #c9a227;
  --gold-band: linear-gradient(90deg, #b8860b, #e6bf45 50%, #b8860b);
  --accent: var(--green);

  /* Filets et voiles */
  --line: rgba(10, 10, 10, 0.1);
  --line-strong: rgba(10, 10, 10, 0.22);
  --outline: rgba(10, 10, 10, 0.5);
  --veil: rgba(255, 255, 255, 0.82);
  --orb-veil: 0.45;
  --sheen: rgba(10, 10, 10, 0.05);
  --halo: 0 0 5px #fff, 0 0 5px #fff, 0 0 12px #fff, 0 0 12px #fff;

  --font: "Geist", "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --fs-display: clamp(2.75rem, 1.15rem + 6.2vw, 6rem);
  --fs-h2: clamp(2.25rem, 1.25rem + 3.6vw, 3.8125rem);
  --fs-h3: clamp(1.5rem, 1.2rem + 1vw, 2.25rem);
  --fs-lead: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.76, 0, 0.24, 1);

  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1440px;
  --section-y: clamp(104px, 13vw, 176px);
  --nav-h: 80px;
  --r-card: 16px;
  --r-sm: 6px;
}

/* ---------- 2. Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  /* La page ne se décale pas quand le menu mobile bloque le défilement */
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main,
.footer {
  position: relative;
  z-index: 1;
}

main {
  overflow-x: clip;
}

h1, h2, h3, h4, p, ul, ol {
  margin: 0;
}

ul, ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

svg {
  display: block;
}

::selection {
  background: var(--fg);
  color: var(--bg);
}

:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 4px;
}

[tabindex="-1"]:focus {
  outline: none;
}

.skip {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 10px 14px;
  border-radius: var(--r-sm);
  background: var(--fg);
  color: var(--bg);
  font-size: 14px;
  transform: translateY(-160%);
  transition: transform 0.3s var(--ease-out);
}

.skip:focus {
  transform: none;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Lenis (défilement fluide) */
html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

/* ---------- 3. Éléments typographiques partagés ---------- */
.label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg);
}

.label__dot {
  position: relative;
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.label__dot::after {
  content: "";
  position: absolute;
  inset: -5px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  animation: ping 2.6s var(--ease-out) infinite;
}

@keyframes ping {
  0% { transform: scale(0.4); opacity: 0.9; }
  100% { transform: scale(1.7); opacity: 0; }
}

.h2 {
  font-size: var(--fs-h2);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--fg);
  text-wrap: balance;
}

/* Petits textes posés sur les points : un halo blanc dégage leurs abords */
.nav__link,
.hero__eyebrow,
.hero__sub,
.hero__meta,
.manifesto__body,
.stat__label,
.section-head__lead,
.service__desc,
.kinetic__caption,
.contact .label,
.contact__lead,
.cs-back,
.cs-lead,
.cs-facts,
.cs-prose,
.cs-block__meta,
.cs-step__date,
.cs-step__desc {
  text-shadow: var(--halo);
}

/* Paragraphes justifiés. La césure (en français grâce à lang="fr") évite les
   grands blancs entre les mots dans les colonnes étroites. */
.hero__sub,
.manifesto__body,
.section-head__lead,
.service__desc,
.project__desc,
.cs-prose p,
.kinetic__caption p:not(.label),
.contact__lead,
.footer__intro p:not(.label) {
  text-align: justify;
  -webkit-hyphens: auto;
  hyphens: auto;
  hyphenate-limit-chars: 7 3 3;
}

/* Dans les blocs centrés, la dernière ligne reste centrée */
.hero__sub,
.kinetic__caption p:not(.label),
.contact__lead {
  text-align-last: center;
}

/* Mots découpés par JS : chaque mot est masqué puis glisse vers le haut */
.w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-block: 0.14em;
  margin-block: -0.14em;
}

.w__i {
  display: inline-block;
  transform-origin: 0 100%;
}

/* ---------- 4. Boutons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: var(--r-sm);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  isolation: isolate;
  overflow: hidden;
  transition: color 0.5s var(--ease-out), border-color 0.5s var(--ease-out), background-color 0.5s var(--ease-out);
}

.btn--sm {
  min-height: 40px;
  padding: 0 16px;
  font-size: 12px;
}

.btn--lg {
  min-height: 64px;
  padding: 0 32px;
  font-size: 14px;
}

/* Libellé qui « roule » au survol */
.btn__label {
  position: relative;
  display: grid;
  overflow: hidden;
}

.btn__label > span {
  grid-area: 1 / 1;
  display: block;
  padding-block: 0.15em;
  transition: transform 0.7s var(--ease-out);
}

.btn__label > span + span {
  transform: translateY(110%);
}

.btn:hover .btn__label > span:first-child,
.project--cta:hover .btn__label > span:first-child {
  transform: translateY(-110%);
}

.btn:hover .btn__label > span + span,
.project--cta:hover .btn__label > span + span {
  transform: translateY(0);
}

.btn__icon {
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
}

.btn__icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.7s var(--ease-out);
}

.btn:hover .btn__icon svg,
.project--cta:hover .btn__icon svg {
  transform: rotate(45deg);
}

/* Bouton plein vert : il fonce et un reflet le balaie au survol */
.btn--primary {
  color: #fff;
  background: var(--green);
}

.btn--primary:hover,
.project--cta:hover .btn--primary {
  background: var(--green-deep);
}

.btn--primary::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.28) 50%, transparent 65%);
  transform: translateX(-120%);
}

.btn--primary:hover::after,
.project--cta:hover .btn--primary::after {
  transform: translateX(120%);
  transition: transform 1.1s var(--ease-out);
}

/* Bouton filet : le vert le remplit au survol */
.btn--ghost {
  color: var(--fg);
  border: 1px solid var(--line-strong);
  background: var(--veil);
}

.btn--ghost::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.7s var(--ease-out);
}

.btn--ghost:hover {
  color: #fff;
  border-color: var(--green);
}

.btn--ghost:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

/* ---------- 5. Couches fixes ---------- */
.loader {
  display: none;
}

.js .loader {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  background: var(--bg);
  clip-path: inset(0% 0% 0% 0%);
  /* Filet de sécurité : le préchargement disparaît même si le JS échoue */
  animation: loader-failsafe 0.6s ease 6s forwards;
}

@keyframes loader-failsafe {
  to { opacity: 0; visibility: hidden; }
}

.loader__inner {
  display: grid;
  gap: 22px;
  width: min(440px, 100% - 2 * var(--gutter));
}

.loader__label,
.loader__meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font: 500 10px/1 var(--mono);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text);
}

.loader__count {
  font-size: clamp(4.5rem, 3rem + 8vw, 8rem);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.05em;
  color: var(--fg);
  font-variant-numeric: tabular-nums;
}

.loader__bar {
  height: 1px;
  background: var(--line);
  overflow: hidden;
}

.loader__bar i {
  display: block;
  height: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
}

.orb {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 95;
  height: 2px;
  pointer-events: none;
}

/* Or : elle court sur la barre verte de la navigation */
.progress i {
  display: block;
  height: 100%;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
}

/* Curseur personnalisé (souris uniquement) : noir sur le blanc, blanc sur le
   pied de page vert (classe is-inverse posée par main.js). */
.cursor {
  display: none;
}

.has-cursor .cursor {
  display: block;
}

.has-cursor,
.has-cursor * {
  cursor: none !important;
}

.cursor__dot,
.cursor__ring {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 130;
  border-radius: 50%;
  pointer-events: none;
}

.cursor__dot {
  width: 6px;
  height: 6px;
  background: var(--fg);
  transition: opacity 0.3s, background-color 0.3s;
}

.cursor__ring {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(10, 10, 10, 0.45);
  transition: width 0.5s var(--ease-out), height 0.5s var(--ease-out), background-color 0.4s, border-color 0.4s, opacity 0.3s;
}

.cursor__label {
  font: 500 10px/1 var(--mono);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #fff;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.3s, transform 0.5s var(--ease-out);
}

.cursor.is-hover .cursor__ring {
  width: 64px;
  height: 64px;
  border-color: var(--fg);
  background: rgba(10, 10, 10, 0.05);
}

.cursor.is-view .cursor__ring {
  width: 92px;
  height: 92px;
  border-color: transparent;
  background: var(--green);
}

.cursor.is-inverse .cursor__dot {
  background: #fff;
}

.cursor.is-inverse .cursor__ring {
  border-color: rgba(255, 255, 255, 0.7);
}

.cursor.is-inverse.is-hover .cursor__ring {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.cursor.is-view .cursor__label {
  opacity: 1;
  transform: none;
}

.cursor.is-hover .cursor__dot,
.cursor.is-view .cursor__dot {
  opacity: 0;
}

.cursor.is-down .cursor__ring {
  width: 28px;
  height: 28px;
}

.cursor.is-hidden .cursor__dot,
.cursor.is-hidden .cursor__ring {
  opacity: 0;
}

/* Relevé AIDA : posé à la verticale dans la marge gauche, hors du contenu */
.hud {
  position: fixed;
  left: calc(var(--gutter) / 2);
  top: 50%;
  z-index: 55;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--veil);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font: 500 10px/1 var(--mono);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%) rotate(-90deg) translateY(-10px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.hud.is-visible {
  opacity: 1;
  transform: translate(-50%, -50%) rotate(-90deg);
}

.hud__k {
  color: var(--fg);
}

.hud__bars {
  display: flex;
  gap: 4px;
}

.hud__bar {
  display: block;
  width: 18px;
  height: 3px;
  border-radius: 2px;
  background: var(--line-strong);
  overflow: hidden;
}

.hud__bar b {
  display: block;
  height: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.7s var(--ease-out);
}

.hud__bar.is-on b {
  transform: scaleX(1);
}

.hud__stage {
  min-width: 10ch;
  color: var(--fg);
}

.hud__pct {
  color: var(--fg);
  font-variant-numeric: tabular-nums;
}

/* ---------- 6. Navigation : barre verte du CV, tokens inversés comme le pied de page ---------- */
.nav {
  --fg: #ffffff;
  --text: #c9d6cd;
  --line: rgba(255, 255, 255, 0.16);
  --line-strong: rgba(255, 255, 255, 0.3);
  --accent: var(--gold);
  --veil: rgba(255, 255, 255, 0.04);
  --halo: none;

  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  padding-top: env(safe-area-inset-top, 0px);
  background: var(--green);
  transition: transform 0.7s var(--ease-out);
}

.nav.is-hidden {
  transform: translateY(-100%);
}

/* Dans la barre verte, le bouton filet se remplit d’or au survol */
.nav .btn--ghost::before {
  background: var(--gold);
}

.nav .btn--ghost:hover {
  color: var(--green-deep);
  border-color: var(--gold);
}

.nav__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  max-width: var(--maxw);
  height: var(--nav-h);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  justify-self: start;
  color: var(--fg);
}

.logo__mark {
  flex: none;
  width: 32px;
  height: 32px;
}

/* Dégradé #logoGold défini dans le SVG du logo */
.logo__dot {
  fill: var(--gold);
  fill: url(#logoGold);
}

.logo__ring {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 1.2s var(--ease-out);
}

.logo:hover .logo__ring {
  transform: rotate(120deg);
}

.logo__text {
  display: grid;
  gap: 5px;
}

.logo__name {
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.01em;
}

.logo__sub {
  font: 500 9px/1 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
}

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

.nav__link {
  position: relative;
  display: inline-flex;
  padding-block: 10px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  transition: color 0.3s;
}

.nav__link [data-scramble] {
  display: inline-block;
  white-space: nowrap;
}

.nav__link::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--accent);
  transform: scale(0);
  transition: transform 0.5s var(--ease-out);
}

.nav__link:hover,
.nav__link.is-active,
.nav__link[aria-current] {
  color: var(--fg);
}

.nav__link:hover::before,
.nav__link.is-active::before,
.nav__link[aria-current]::before {
  transform: scale(1);
}

.nav__end {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-self: end;
}

.burger {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
}

.burger span {
  position: absolute;
  left: 13px;
  right: 13px;
  height: 1px;
  background: var(--fg);
  transition: transform 0.6s var(--ease-out), top 0.6s var(--ease-out);
}

.burger span:first-child {
  top: 17px;
}

.burger span:last-child {
  top: 25px;
}

.menu-open .burger span:first-child {
  top: 21px;
  transform: rotate(45deg);
}

.menu-open .burger span:last-child {
  top: 21px;
  transform: rotate(-45deg);
}

.menu {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  padding: calc(var(--nav-h) + 40px + env(safe-area-inset-top, 0px)) var(--gutter) calc(32px + env(safe-area-inset-bottom, 0px));
  background: var(--bg);
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path 0.9s var(--ease-io), visibility 0s linear 0.9s;
}

.menu.is-open {
  clip-path: inset(0 0 0 0);
  visibility: visible;
  transition: clip-path 0.9s var(--ease-io), visibility 0s;
}

.menu__nav {
  display: grid;
  gap: 4px;
}

.menu__link {
  display: block;
  overflow: hidden;
  font-size: clamp(2.5rem, 11vw, 4.5rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.045em;
  color: var(--fg);
}

.menu__link span {
  display: block;
  transform: translateY(105%);
  transition: transform 0.9s var(--ease-out);
}

.menu.is-open .menu__link span {
  transform: none;
  transition-delay: calc(0.25s + var(--i) * 0.06s);
}

.menu__foot {
  display: grid;
  gap: 8px;
  font: 500 11px/1.4 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
}

.menu__foot a {
  transition: color 0.3s;
}

.menu__foot a:hover {
  color: var(--fg);
}

/* Une adresse e-mail se lit en minuscules */
.menu__mail {
  text-transform: none;
  letter-spacing: 0.04em;
}

/* ---------- 7. Hero ---------- */
.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--nav-h) + 48px) var(--gutter) 132px;
  text-align: center;
}

/* Voile blanc derrière le texte pour garder le contraste au-dessus de l’orbe */
.hero::before,
.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse 52% 44% at 50% 48%, rgba(255, 255, 255, var(--orb-veil)), rgba(255, 255, 255, 0) 72%);
  pointer-events: none;
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  max-width: 1180px;
}

/* Un peu plus petit que --fs-display pour tenir sur 2 lignes, coupées à la virgule */
.hero__title {
  max-width: 15em;
  font-size: clamp(2.5rem, 1rem + 4.5vw, 5rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.046em;
  color: var(--fg);
  text-wrap: balance;
}

/* Une ligne par membre de phrase ; sur mobile, chacun se replie en deux lignes équilibrées
   (« de la performance. » reste groupé par des espaces insécables) */
.hero__clause {
  display: block;
}

.hero__sub {
  max-width: 35em;
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--text);
  text-wrap: pretty;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
}

.hero__meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 28px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 16px;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
  font: 500 10px/1.4 var(--mono);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text);
}

.hero__status {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
}

.pulse {
  position: relative;
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.pulse::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 1.8s var(--ease-out) infinite;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(3.2); opacity: 0; }
}

.hero__scroll {
  display: grid;
  justify-items: center;
  gap: 10px;
}

.hero__scroll-line {
  position: relative;
  width: 1px;
  height: 44px;
  background: var(--line-strong);
  overflow: hidden;
}

.hero__scroll-line::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 40%;
  background: var(--accent);
  animation: scroll-line 2.2s var(--ease-io) infinite;
}

@keyframes scroll-line {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(260%); }
}

.hero__clock {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* ---------- 8. Approche & chiffres ---------- */
.manifesto {
  padding-block: var(--section-y);
}

.manifesto .wrap {
  display: grid;
  justify-items: start;
  gap: clamp(36px, 5vw, 64px);
}

/* Phrase d’accroche en grand puis le développement à gauche, portrait à droite
   (empilés sur mobile : accroche, portrait, développement) */
.manifesto__intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.6fr);
  grid-template-rows: auto 1fr;
  grid-template-areas:
    "text photo"
    "body photo";
  column-gap: clamp(40px, 6vw, 112px);
  row-gap: clamp(20px, 2.4vw, 32px);
  width: 100%;
}

.manifesto__text {
  grid-area: text;
  max-width: 21em;
  font-size: clamp(1.75rem, 0.9rem + 3.1vw, 3.5rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.032em;
  color: var(--fg);
  text-wrap: pretty;
}

.manifesto__body {
  grid-area: body;
  align-self: start;
  max-width: 62ch;
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--text);
  text-wrap: pretty;
}

/* Portrait noir et blanc : cadre arrondi des cartes, révélé au scroll (main.js) */
.portrait {
  grid-area: photo;
  position: relative;
  align-self: start;
  justify-self: end;
  width: 100%;
  max-width: 440px;
  margin: 0;
}

.portrait__frame {
  position: relative;
  aspect-ratio: 520 / 586;
  border-radius: var(--r-card);
  background: var(--surface);
  overflow: hidden;
}

/* Plus haute que son cadre pour absorber la parallaxe verticale */
.portrait__img {
  position: absolute;
  top: -6%;
  left: 0;
  width: 100%;
  height: 112%;
  object-fit: cover;
  object-position: 50% 40%;
  filter: grayscale(1);
}

.portrait__tag {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100% - 24px);
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--veil);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font: 500 10px/1.2 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg);
}

.manifesto__text em {
  font-style: normal;
  text-decoration: underline 2px var(--accent);
  text-underline-offset: 0.14em;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px 24px;
  width: 100%;
  margin-top: clamp(16px, 3vw, 40px);
}

.stat {
  display: grid;
  align-content: start;
  gap: 16px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.stat__num {
  font-size: clamp(2.75rem, 1rem + 4vw, 5.375rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.046em;
  color: var(--fg);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.stat__label {
  max-width: 22ch;
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  color: var(--fg);
}

/* ---------- 10. Expertise ---------- */
.expertise {
  padding-block: var(--section-y);
}

.section-head {
  display: grid;
  justify-items: start;
  gap: 24px;
  max-width: 820px;
  margin-bottom: clamp(48px, 7vw, 96px);
}

.section-head__lead {
  max-width: 46ch;
  font-size: var(--fs-lead);
  color: var(--text);
  text-wrap: pretty;
}

.expertise__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: clamp(32px, 5vw, 88px);
  align-items: start;
}

.services {
  display: grid;
  border-bottom: 1px solid var(--line);
}

.service {
  border-top: 1px solid var(--line);
}

.service__link {
  position: relative;
  display: grid;
  gap: 18px;
  margin-block: 8px;
  padding: clamp(24px, 3vw, 40px) clamp(20px, 2.6vw, 36px);
  border-radius: var(--r-card);
  isolation: isolate;
  overflow: hidden;
  transition: background-color 0.6s var(--ease-out);
}

/* Halo qui suit la souris */
.service__link::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), var(--sheen), transparent 65%);
  opacity: 0;
  transition: opacity 0.5s;
}

.service__link:hover,
.service.is-active .service__link {
  background: var(--surface);
}

.service__link:hover::before {
  opacity: 1;
}

.service__top {
  display: flex;
  align-items: center;
  gap: 18px;
}

.service__code {
  flex: none;
  min-width: 72px;
  padding: 7px 8px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  font: 500 10px/1 var(--mono);
  letter-spacing: 0.14em;
  text-align: center;
  color: var(--text);
  transition: color 0.4s, border-color 0.4s;
}

.service__title {
  flex: 1;
  font-size: var(--fs-h3);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--fg);
}

.arrow-btn {
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: var(--r-sm);
  background: var(--surface-2);
  color: var(--fg);
  transition: background-color 0.5s, color 0.5s;
}

.arrow-btn svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.7s var(--ease-out);
}

.service__link:hover .arrow-btn,
.service.is-active .arrow-btn {
  background: var(--green);
  color: #fff;
}

.service__link:hover .arrow-btn svg,
.service.is-active .arrow-btn svg {
  transform: rotate(45deg);
}

.service__link:hover .service__code,
.service.is-active .service__code {
  color: var(--accent);
  border-color: var(--accent);
}

.service__desc {
  max-width: 54ch;
  color: var(--text);
}

.service__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  padding-top: 4px;
}

/* Courbe de tendance : visible en gris au repos, elle se redessine en vert
   (et son point s’allume) quand le service est survolé ou actif au scroll */
.spark {
  width: 132px;
  height: 40px;
  overflow: visible;
}

.spark path {
  fill: none;
  stroke: var(--line-strong);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  transition: stroke 0.4s;
}

.spark circle {
  fill: var(--line-strong);
  transition: fill 0.4s;
}

.service__link:hover .spark path,
.service.is-active .spark path {
  stroke: var(--accent);
  animation: spark-draw 1.4s var(--ease-out) both;
}

.service__link:hover .spark circle,
.service.is-active .spark circle {
  fill: var(--accent);
  animation: spark-dot 1.4s var(--ease-out) both;
}

@keyframes spark-draw {
  from { stroke-dashoffset: 1; }
}

@keyframes spark-dot {
  0%, 60% { opacity: 0; }
}

/* Outils : toujours sur leur propre ligne, alignés à gauche (jusqu’à 6 étiquettes) */
.tags {
  display: flex;
  flex: 1 1 100%;
  flex-wrap: wrap;
  gap: 6px;
}

.tags span {
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--veil);
  font: 500 10px/1 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
}

/* Molécule */
.molecule {
  position: sticky;
  top: calc(var(--nav-h) + 6vh);
  justify-self: center;
  width: 100%;
  max-width: 560px;
}

.molecule svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.mol-orbit {
  fill: none;
  stroke: var(--fg);
  stroke-opacity: 0.22;
  stroke-dasharray: 2 7;
  transform-box: fill-box;
  transform-origin: center;
  animation: spin 70s linear infinite;
}

.mol-orbit--outer {
  stroke-opacity: 0.12;
  animation-duration: 120s;
  animation-direction: reverse;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.mol-link {
  fill: none;
  stroke: var(--fg);
  stroke-opacity: 0.16;
  stroke-dasharray: 3 6;
}

.mol-edge {
  fill: none;
  stroke: var(--fg);
  stroke-opacity: 0.35;
  stroke-width: 1;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  transition: stroke-opacity 0.4s, stroke-width 0.4s;
}

.mol-edge.is-active {
  stroke: var(--accent);
  stroke-opacity: 1;
  stroke-width: 1.6;
}

.mol-mini-link {
  fill: none;
  stroke: var(--fg);
  stroke-opacity: 0.28;
}

.mini {
  fill: var(--fg);
}

.packet {
  fill: var(--accent);
}

.packets {
  opacity: 0.45;
  transition: opacity 0.4s;
}

.packets.is-active {
  opacity: 1;
}

.node__body {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 0.7s var(--ease-out);
}

.node__core {
  fill: var(--bg);
  stroke: var(--fg);
  stroke-opacity: 0.55;
  stroke-width: 1;
  transition: fill 0.4s, stroke-opacity 0.4s;
}

.node__halo {
  fill: none;
  stroke: var(--accent);
  stroke-opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}

.node__label {
  fill: var(--fg);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-anchor: middle;
  dominant-baseline: central;
  transition: fill 0.4s;
}

.node.is-active .node__body {
  transform: scale(1.14);
}

.node.is-active .node__core,
.node--center .node__core {
  fill: var(--green);
  stroke: var(--green);
  stroke-opacity: 1;
}

.node.is-active .node__label,
.node--center .node__label {
  fill: #fff;
}

.node.is-active .node__halo {
  animation: halo 1.8s var(--ease-out) infinite;
}

.node--center .node__label {
  font-size: 10px;
  letter-spacing: 0.14em;
}

.node--center .node__halo {
  animation: halo 3.2s var(--ease-out) infinite;
}

@keyframes halo {
  0% { transform: scale(0.85); stroke-opacity: 0.7; }
  100% { transform: scale(1.4); stroke-opacity: 0; }
}

/* ---------- 11. Texte cinétique ---------- */
.kinetic {
  position: relative;
  height: 260vh;
}

.kinetic__sticky {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(8px, 1.6vw, 20px);
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}

.kinetic__line {
  display: flex;
  align-items: center;
  gap: 0.22em;
  width: max-content;
  font-size: clamp(5.5rem, 1.6rem + 13vw, 18.4rem);
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: -0.05em;
  white-space: nowrap;
  color: var(--fg);
  will-change: transform;
}

.kinetic__line--b {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--outline);
}

.kin-dot {
  flex: none;
  width: 0.13em;
  height: 0.13em;
  border-radius: 50%;
  background: var(--accent);
}

.kinetic__line--b .kin-dot {
  background: transparent;
  border: 1.5px solid var(--outline);
}

.kinetic__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(32px, 8vh, 88px);
  display: grid;
  justify-items: center;
  gap: 14px;
  width: min(440px, 100% - 2 * var(--gutter));
  margin-inline: auto;
  text-align: center;
  color: var(--text);
}

/* ---------- 12. Projets ---------- */
.projects {
  position: relative;
}

.projects__sticky {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(28px, 4vh, 48px);
  padding-block: var(--section-y);
}

.projects__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.projects__title {
  display: grid;
  justify-items: start;
  gap: 22px;
}

/* Le compteur n’a de sens qu’en mode horizontal (voir media query plus bas) */
.projects__meter {
  display: none;
  align-items: center;
  gap: 16px;
  font: 500 11px/1 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
}

.projects__count {
  color: var(--fg);
  font-variant-numeric: tabular-nums;
}

.projects__bar {
  position: relative;
  width: 120px;
  height: 1px;
  background: var(--line-strong);
  overflow: hidden;
}

.projects__bar i {
  position: absolute;
  inset: 0;
  background: var(--fg);
  transform: scaleX(0);
  transform-origin: left;
}

.projects__viewport {
  min-width: 0;
  overflow: clip;
}

/* Mode empilé (mobile, animations réduites, sans JS) : grille responsive */
.projects__track {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr));
  gap: 20px;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Défilement horizontal piloté par le scroll (grands écrans, JS actif) */
@media (min-width: 900px) and (min-height: 620px) and (prefers-reduced-motion: no-preference) {
  .js .projects {
    height: var(--projects-h, 320vh);
  }

  .js .projects__sticky {
    position: sticky;
    top: 0;
    grid-template-rows: auto minmax(0, 1fr);
    height: 100vh;
    padding-block: calc(var(--nav-h) + 3vh) 5vh;
  }

  .js .projects__viewport {
    min-height: 0;
  }

  .js .projects__track {
    display: flex;
    gap: 24px;
    width: max-content;
    max-width: none;
    height: 100%;
    margin: 0;
    padding-inline: max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter)));
  }

  /* Cartes larges : les visuels des campagnes respirent */
  .js .project {
    flex: none;
    width: clamp(380px, 44vw, 640px);
    height: 100%;
    max-height: 640px;
    min-height: 0;
  }

  .js .project--cta {
    width: clamp(300px, 26vw, 400px);
  }

  .js .project__visual {
    aspect-ratio: auto;
  }

  .js .projects__meter {
    display: flex;
  }

  .js .projects__meter .projects__hint::after {
    content: " →";
  }
}

.project {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  border-radius: var(--r-card);
  background: var(--surface);
  overflow: hidden;
  isolation: isolate;
}

/* Reflet qui suit la souris pendant l’inclinaison 3D */
.project::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: radial-gradient(520px circle at var(--gx, 50%) var(--gy, 0%), var(--sheen), transparent 45%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s;
}

.project:hover::after {
  opacity: 1;
}

.project__visual {
  position: relative;
  min-height: 150px;
  aspect-ratio: 4 / 3;
  margin: 8px 8px 0;
  border-radius: var(--r-sm);
  background: var(--bg);
  overflow: hidden;
}

/* Plus large que son cadre pour absorber la parallaxe horizontale */
.viz {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -7%;
  width: 114%;
  height: 100%;
}

.project__tag,
.project__year {
  position: absolute;
  top: 12px;
  z-index: 1;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--veil);
  font: 500 10px/1 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg);
}

.project__tag {
  left: 12px;
}

.project__year {
  right: 12px;
  color: var(--text);
}

.project__body {
  display: grid;
  gap: 12px;
  padding: clamp(20px, 2vw, 28px) clamp(20px, 2.2vw, 32px) clamp(22px, 2.2vw, 30px);
}

.project__title {
  font-size: clamp(1.375rem, 1.05rem + 0.75vw, 1.875rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--fg);
  text-wrap: balance;
}

.project__desc {
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
}

.project__kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 6px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.project__kpis b {
  display: block;
  font-size: clamp(1.375rem, 1.05rem + 0.8vw, 2rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--fg);
  white-space: nowrap;
}

.project__kpis span {
  display: block;
  margin-top: 8px;
  font: 500 10px/1.3 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg);
}

/* Photo de campagne à la place d’un visuel « data » */
.project__img {
  object-fit: cover;
}

/* Capture de site : l’accroche est à gauche, on la garde dans le cadre */
.project__img--left {
  object-position: 20% 50%;
}

/* Leviers activés (quand l’étude n’a pas de résultats chiffrés) */
.project__levers {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.project__levers li {
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--veil);
  font: 500 10px/1 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
}

/* « Lire l’étude de cas » : toute la carte est un lien vers la page dédiée */
.project__open {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 12px;
  font: 500 11px/1 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg);
}

.project:hover .arrow-btn {
  background: var(--green);
  color: #fff;
}

.project:hover .arrow-btn svg {
  transform: rotate(45deg);
}

.project--cta {
  grid-template-rows: none;
  place-items: center;
  min-height: 320px;
  border: 1px solid var(--line-strong);
  background: transparent;
  text-align: center;
  transition: border-color 0.5s, background-color 0.5s;
}

.project--cta:hover {
  border-color: var(--accent);
  background: var(--surface);
}

.project-cta__inner {
  display: grid;
  justify-items: center;
  gap: 24px;
  padding: 40px 28px;
}

.project-cta__title {
  font-size: clamp(2rem, 1.2rem + 2vw, 3rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--fg);
}

/* Visuels « data » des études de cas */
.viz-grid {
  fill: none;
  stroke: var(--fg);
  stroke-opacity: 0.07;
}

.viz-line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}

.viz-dot {
  fill: var(--accent);
}

/* L’élément à lire en premier : vert parmi les gris */
.viz .is-strong {
  fill: var(--accent);
}

.viz-ping {
  fill: none;
  stroke: var(--accent);
  transform-box: fill-box;
  transform-origin: center;
  animation: viz-ping 2s var(--ease-out) infinite;
}

@keyframes viz-ping {
  0% { transform: scale(0.4); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}

.project.is-inview .viz-line {
  animation: viz-draw 2.2s var(--ease-out) both;
}

.project.is-inview .viz-area {
  animation: viz-fade 1.6s 0.5s var(--ease-out) both;
}

@keyframes viz-draw {
  from { stroke-dashoffset: 1; }
}

@keyframes viz-fade {
  from { opacity: 0; }
}

.viz-bands path {
  fill: var(--accent);
  fill-opacity: 0.04;
  stroke: var(--fg);
  stroke-opacity: 0.4;
  transition: fill-opacity 0.6s;
}

.viz-bands path:nth-child(2) { fill-opacity: 0.08; transition-delay: 0.08s; }
.viz-bands path:nth-child(3) { fill-opacity: 0.14; transition-delay: 0.16s; }
.viz-bands path:nth-child(4) { fill-opacity: 0.22; transition-delay: 0.24s; }

.project:hover .viz-bands path {
  fill-opacity: 0.16;
}

.project:hover .viz-bands path:nth-child(4) {
  fill-opacity: 0.85;
}

.viz-drops circle {
  fill: var(--muted);
  animation: viz-drop 3s linear infinite;
  animation-delay: var(--d);
}

@keyframes viz-drop {
  0% { transform: translate(0, 0); opacity: 0; }
  12% { opacity: 1; }
  85% { opacity: 1; }
  100% { transform: translate(var(--x), 215px); opacity: 0; }
}

.viz-rings {
  fill: none;
  stroke: var(--fg);
  stroke-opacity: 0.12;
}

.viz-sweep {
  transform-origin: 200px 130px;
  animation: spin 4.5s linear infinite;
}

.viz-wave {
  fill: none;
  stroke: var(--accent);
  transform-box: fill-box;
  transform-origin: center;
  animation: viz-wave 3s var(--ease-out) infinite;
}

@keyframes viz-wave {
  0% { transform: scale(0.3); opacity: 0.9; }
  100% { transform: scale(5); opacity: 0; }
}

.viz-pins circle {
  fill: var(--fg);
  opacity: 0.45;
  animation: blink 2.6s ease-in-out infinite;
}

.viz-pins circle:nth-child(2n) { animation-delay: -1.3s; }
.viz-pins circle:nth-child(3n) { animation-delay: -0.6s; }

@keyframes blink {
  50% { opacity: 0.12; }
}

.viz-target {
  fill: none;
  stroke: var(--fg);
  stroke-opacity: 0.5;
  stroke-dasharray: 4 6;
}

.viz-base {
  fill: none;
  stroke: var(--fg);
  stroke-opacity: 0.25;
}

.viz-bars rect {
  transform-box: fill-box;
  transform-origin: 50% 100%;
}

.project.is-inview .viz-bars rect {
  animation: viz-grow 1.3s var(--ease-out) both;
  animation-delay: calc(var(--i) * 0.06s);
}

@keyframes viz-grow {
  from { transform: scaleY(0); }
}

.viz-orbit {
  fill: none;
  stroke: var(--fg);
  stroke-opacity: 0.2;
}

.viz-sat {
  fill: var(--muted);
}

.viz-core {
  fill: var(--accent);
}

.viz-core-ring {
  fill: none;
  stroke: var(--fg);
  stroke-opacity: 0.4;
  stroke-dasharray: 2 4;
  transform-box: fill-box;
  transform-origin: center;
  animation: spin 14s linear infinite;
}

/* Les animations en boucle dorment hors écran */
.project:not(.is-inview) .viz * {
  animation-play-state: paused;
}

/* ---------- 13. Pages d’études de cas (dossier etudes-de-cas/) ---------- */
/* Elles réutilisent les briques de l’accueil (section-head, stats, contact, pied
   de page) ; seuls les blocs propres aux études de cas sont définis ici. */
.cs-hero {
  position: relative;
  padding: calc(var(--nav-h) + clamp(32px, 5vw, 72px)) 0 clamp(72px, 9vw, 128px);
}

.cs-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: end;
  gap: clamp(36px, 6vw, 104px);
}

.cs-hero__text {
  display: grid;
  justify-items: start;
  gap: 26px;
}

.cs-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: clamp(4px, 1.5vw, 20px);
  font: 500 11px/1 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  transition: color 0.3s;
}

.cs-back svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.6s var(--ease-out);
}

.cs-back:hover {
  color: var(--fg);
}

.cs-back:hover svg {
  transform: translateX(-4px);
}

.cs-title {
  max-width: 13em;
  font-size: clamp(2.5rem, 1.1rem + 4.2vw, 5rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.046em;
  color: var(--fg);
  text-wrap: balance;
}

.cs-lead {
  max-width: 34em;
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--text);
  text-wrap: pretty;
}

/* Fiche d’identité : client, période, leviers, objectif */
.cs-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 32px;
  width: 100%;
  margin: 8px 0 0;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.cs-facts dt {
  font: 500 10px/1.3 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
}

.cs-facts dd {
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 1.45;
  color: var(--fg);
}

/* Cadres photo arrondis, ouverts au scroll par main.js ([data-media]) */
.cs-frame {
  position: relative;
  margin: 0;
  border-radius: var(--r-card);
  background: var(--surface);
  overflow: hidden;
}

.cs-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Plus haute que son cadre pour absorber la parallaxe verticale */
.cs-frame--parallax img {
  position: absolute;
  top: -6%;
  left: 0;
  height: 112%;
}

.cs-hero__media {
  aspect-ratio: 4 / 5;
}

.cs-section {
  padding-block: clamp(64px, 8vw, 112px);
}

.cs-section--flush {
  padding-top: 0;
}

/* Titre à gauche, texte à droite */
.cs-split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: start;
  gap: clamp(28px, 6vw, 104px);
}

.cs-split .section-head {
  margin-bottom: 0;
}

.cs-split--center {
  align-items: center;
}

/* Intertitre d’un sous-bloc (frise, formats…) */
.cs-subhead {
  margin-top: clamp(64px, 8vw, 112px);
}

.cs-stats {
  margin-top: clamp(56px, 7vw, 96px);
}

/* Trois chiffres (positions Google) : trois colonnes, rang en exposant */
.stats--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stats--3 .stat__label {
  max-width: 28ch;
}

.stat__num sup {
  margin-left: 0.04em;
  font-size: 0.38em;
  letter-spacing: 0;
  vertical-align: 1.05em;
}

/* Source d’un chiffre : petite note datée sous le bloc */
.cs-footnote {
  margin-top: 28px;
  font: 500 10px/1.5 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
}

.cs-prose {
  display: grid;
  gap: 18px;
  max-width: 62ch;
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--text);
}

.cs-prose strong {
  font-weight: 500;
  color: var(--fg);
}

/* Liste à puces dorées / vertes */
.cs-list {
  display: grid;
  gap: 12px;
}

.cs-list li {
  position: relative;
  padding-left: 22px;
  line-height: 1.5;
}

.cs-list li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* Encadré « À noter » */
.cs-note {
  display: grid;
  gap: 10px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--veil);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
}

.cs-note .label {
  font-size: 10px;
}

/* Galerie de créations */
.cs-gallery {
  display: grid;
  gap: clamp(56px, 7vw, 96px);
}

.cs-block {
  display: grid;
  gap: 22px;
}

.cs-block__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.cs-block__title {
  font-size: var(--fs-h3);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--fg);
}

.cs-block__meta {
  font: 500 10px/1.4 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
}

/* Carré + paysage à la même hauteur (largeurs proportionnelles aux formats) */
.cs-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.914fr);
  gap: 16px;
}

.cs-row .cs-frame:first-child {
  aspect-ratio: 1 / 1;
}

.cs-row .cs-frame:last-child {
  aspect-ratio: 1200 / 627;
}

.cs-banners {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.cs-banners .cs-frame {
  aspect-ratio: 6 / 5;
}

.cs-mails {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

/* E-mailings : cadre de hauteur fixe, l’e-mail se déroule au survol */
.cs-mail {
  --mail-h: clamp(420px, 50vw, 700px);
  height: var(--mail-h);
  background: #000;
}

.cs-mail img {
  height: auto;
  transition: transform 7s cubic-bezier(0.45, 0, 0.55, 1);
}

/* Indication « survolez pour dérouler » (e-mailings, pages de site) */
.cs-hint {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 7px 9px;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.9);
  font: 500 10px/1 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg);
  pointer-events: none;
  transition: opacity 0.4s;
}

@media (hover: hover) {
  .cs-mail:hover img {
    transform: translateY(calc(-100% + var(--mail-h)));
  }

  .cs-mail:hover .cs-hint,
  .cs-browser--scroll:hover .cs-hint {
    opacity: 0;
  }
}

/* Au doigt : l’e-mail se fait défiler dans son cadre */
@media (hover: none) {
  .cs-mail {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .cs-hint {
    display: none;
  }
}

/* Captures de site : cadre de navigateur et téléphone (sans ombre portée) */
.cs-browser {
  margin: 0;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--bg);
  overflow: hidden;
}

.cs-browser__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.cs-browser__bar i {
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--line-strong);
}

.cs-browser__bar span {
  min-width: 0;
  margin-left: 10px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--bg);
  font: 500 10px/1 var(--mono);
  letter-spacing: 0.06em;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cs-browser__screen {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--surface);
  overflow: hidden;
}

.cs-browser__screen img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0;
}

/* Page entière : écran de hauteur fixe, la page défile au survol */
.cs-browser--scroll .cs-browser__screen {
  --screen-h: clamp(420px, 52vw, 720px);
  aspect-ratio: auto;
  height: var(--screen-h);
}

.cs-browser--scroll .cs-browser__screen img {
  height: auto;
  transition: transform 14s cubic-bezier(0.45, 0, 0.55, 1);
}

@media (hover: hover) {
  .cs-browser--scroll:hover .cs-browser__screen img {
    transform: translateY(calc(-100% + var(--screen-h)));
  }
}

@media (hover: none) {
  .cs-browser--scroll .cs-browser__screen {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
}

.cs-phone {
  margin: 0;
  padding: 7px;
  border-radius: 30px;
  background: #0a0a0a;
}

.cs-phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 23px;
}

/* En-tête : le site sur ordinateur, le téléphone posé devant */
.cs-devices {
  position: relative;
  align-self: center;
  padding: 0 9% 16% 0;
}

.cs-devices__phone {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 27%;
}

.cs-phones {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 3vw, 40px);
  max-width: 960px;
}

/* Ce que j’ai pris en charge : un bloc par levier */
.cs-pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.cs-pillar {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: clamp(22px, 2.6vw, 34px);
  border-radius: var(--r-card);
  background: var(--surface);
}

.cs-pillar__num {
  font: 500 10px/1 var(--mono);
  letter-spacing: 0.14em;
  color: var(--accent);
}

.cs-pillar__title {
  font-size: var(--fs-h3);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--fg);
}

.cs-pillar p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
}

/* Frise : le fil se remplit au scroll et allume chaque étape (main.js règle --p) */
.cs-steps {
  --p: 0;
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 28px;
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: 38px;
}

.cs-steps::before,
.cs-steps::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 0;
  right: 0;
  height: 1px;
}

.cs-steps::before {
  background: var(--line-strong);
}

.cs-steps::after {
  background: var(--accent);
  transform: scaleX(var(--p));
  transform-origin: left;
}

.cs-step {
  position: relative;
  display: grid;
  align-content: start;
  gap: 10px;
}

.cs-step::before {
  content: "";
  position: absolute;
  top: -38px;
  left: 0;
  width: 13px;
  height: 13px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--bg);
  transition: background-color 0.5s, border-color 0.5s, transform 0.6s var(--ease-out);
}

.cs-step.is-on::before {
  border-color: var(--accent);
  background: var(--accent);
  transform: scale(1.2);
}

.cs-step__date {
  font: 500 10px/1.3 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  transition: color 0.5s;
}

.cs-step.is-on .cs-step__date {
  color: var(--accent);
}

/* Deux lignes réservées : les descriptions démarrent toutes à la même hauteur */
.cs-step__title {
  min-height: 2.2em;
  font-size: clamp(1.25rem, 1.05rem + 0.6vw, 1.625rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--fg);
}

.cs-step__desc {
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
}

/* Deux phases : test, puis montée en puissance (la seconde en vert du CV) */
.cs-phases {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: stretch;
  gap: 20px;
}

.cs-phase {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: clamp(24px, 3vw, 40px);
  border-radius: var(--r-card);
  background: var(--surface);
  color: var(--text);
}

.cs-phase--strong {
  --fg: #ffffff;
  --text: #c9d6cd;
  --line: rgba(255, 255, 255, 0.16);
  --accent: var(--gold);
  background: var(--green);
}

.cs-phase__num {
  font: 500 10px/1.3 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.cs-phase__title {
  font-size: var(--fs-h3);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--fg);
}

.cs-phase .cs-list {
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--fg);
}

.cs-phases__arrow {
  display: grid;
  place-items: center;
  align-self: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--bg);
  color: var(--fg);
}

.cs-phases__arrow svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Formats Performance Max : largeurs proportionnelles aux visuels (marges
   intérieures comprises), pour que les quatre cadres aient la même hauteur */
.cs-formats {
  display: grid;
  grid-template-columns: 0.608fr 1.206fr 0.593fr 0.586fr;
  gap: 16px;
  margin-top: clamp(40px, 5vw, 64px);
}

.cs-format {
  display: grid;
  gap: 12px;
  margin: 0;
}

.cs-format .cs-frame {
  padding: 14px;
}

.cs-format .cs-frame img {
  height: auto;
  border-radius: var(--r-sm);
  object-fit: contain;
}

.cs-format figcaption {
  font: 500 10px/1.3 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
}

/* Visuel de campagne au format 16:9 (ex. volet 2) */
.cs-frame--wide {
  aspect-ratio: 16 / 9;
}

/* Résultat : le grand chiffre, puis la méthode en quatre temps */
.cs-result {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: end;
  gap: clamp(28px, 6vw, 104px);
}

.cs-result__num {
  font-size: clamp(5rem, 1.6rem + 10vw, 11rem);
  font-weight: 500;
  line-height: 0.88;
  letter-spacing: -0.06em;
  color: var(--fg);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.cs-result__label {
  margin-top: 18px;
  font: 500 11px/1.4 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg);
}

.cs-method {
  display: grid;
  gap: 32px;
  margin-top: clamp(64px, 8vw, 112px);
}

.cs-quote {
  max-width: 28em;
  margin: 0;
  font-size: clamp(1.375rem, 0.95rem + 1.3vw, 2.125rem);
  font-weight: 500;
  line-height: 1.22;
  letter-spacing: -0.025em;
  color: var(--fg);
  text-wrap: pretty;
}

.cs-method__steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.cs-method__steps li {
  display: grid;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--veil);
}

.cs-method__steps span {
  font: 500 10px/1 var(--mono);
  letter-spacing: 0.14em;
  color: var(--accent);
}

.cs-method__steps b {
  font-size: var(--fs-h3);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--fg);
}

/* Étude de cas suivante */
.cs-next {
  padding-top: clamp(24px, 4vw, 56px);
}

.cs-next__link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 18px 32px;
  padding: clamp(28px, 4vw, 56px);
  border-radius: var(--r-card);
  background: var(--surface);
  transition: background-color 0.5s;
}

.cs-next__link .label {
  grid-column: 1 / -1;
}

.cs-next__title {
  max-width: 18em;
  font-size: clamp(1.75rem, 1.1rem + 2.2vw, 3.25rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: var(--fg);
  text-wrap: balance;
}

.cs-next__link .arrow-btn {
  width: 56px;
  height: 56px;
}

.cs-next__link .arrow-btn svg {
  width: 20px;
  height: 20px;
}

.cs-next__link:hover {
  background: var(--surface-2);
}

.cs-next__link:hover .arrow-btn {
  background: var(--green);
  color: #fff;
}

.cs-next__link:hover .arrow-btn svg {
  transform: rotate(45deg);
}

/* ---------- 14. Contact ---------- */
.contact {
  position: relative;
  padding-block: clamp(140px, 18vw, 240px);
  text-align: center;
}

.contact__inner {
  display: grid;
  justify-items: center;
  gap: 28px;
}

.contact__title {
  max-width: 11.5em;
  font-size: var(--fs-display);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.046em;
  color: var(--fg);
  text-wrap: balance;
}

.contact__lead {
  max-width: 44ch;
  font-size: var(--fs-lead);
  color: var(--text);
  text-wrap: pretty;
}

.contact__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.copy {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 64px;
  padding: 0 22px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--veil);
  font: 500 14px/1 var(--mono);
  color: var(--fg);
  transition: border-color 0.4s, background-color 0.4s;
}

.copy:hover {
  border-color: var(--accent);
  background: var(--surface);
}

/* Sur petit écran, l’adresse passe à la ligne après l’arobase (<wbr>) */
.copy__mail {
  text-align: left;
  -webkit-user-select: all;
  user-select: all;
}

.copy__state {
  min-width: 11ch;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-align: left;
  text-transform: uppercase;
  color: var(--fg);
}

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

.contact__chips li {
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--veil);
  font: 500 10px/1 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
}

/* ---------- 15. Pied de page : vert du CV, tokens inversés ---------- */
.footer {
  --bg: var(--green);
  --fg: #ffffff;
  --text: #c9d6cd;
  --muted: #a7bcae;
  --line: rgba(255, 255, 255, 0.16);
  --line-strong: rgba(255, 255, 255, 0.3);
  --accent: var(--gold);

  padding-top: clamp(80px, 9vw, 120px);
  background: var(--bg);
  color: var(--text);
  overflow: hidden;
}

/* Le filet or qui sépare le vert du blanc, comme sur le CV */
.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: var(--gold-band);
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
  gap: 40px;
  padding-bottom: 56px;
}

.footer__intro {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 18px;
}

.footer__intro p:last-child {
  max-width: 52ch;
}

.footer__col {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 4px;
}

.footer__h {
  margin-bottom: 12px;
  font: 500 10px/1 var(--mono);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text);
}

.footer__col a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-block: 5px;
  color: var(--fg);
  transition: color 0.3s, transform 0.5s var(--ease-out);
}

.footer__col a:hover {
  color: var(--accent);
  transform: translateX(6px);
}

.footer__clock {
  margin-bottom: 6px;
  font: 500 24px/1 var(--mono);
  letter-spacing: -0.02em;
  color: var(--fg);
  font-variant-numeric: tabular-nums;
}

.footer__word {
  display: flex;
  justify-content: center;
  padding-bottom: 0.16em;
  overflow: hidden;
  font-size: clamp(4rem, 25vw, 24rem);
  font-weight: 500;
  line-height: 0.86;
  letter-spacing: -0.055em;
  color: var(--fg);
  -webkit-user-select: none;
  user-select: none;
}

.footer__word .c {
  display: inline-block;
  transition: color 0.4s, transform 0.7s var(--ease-out);
}

.footer__word .c:hover {
  color: var(--accent);
  transform: translateY(-6%);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 22px calc(22px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
  font: 500 10px/1.4 var(--mono);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text);
}

.totop {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--fg);
  transition: color 0.3s;
}

.totop svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.6s var(--ease-out);
}

.totop:hover {
  color: var(--accent);
}

.totop:hover svg {
  transform: translateY(-3px);
}

/* ---------- 16. Responsive ---------- */
@media (max-width: 1100px) {
  .nav__links {
    gap: 22px;
  }

  .hud {
    display: none;
  }
}

@media (max-width: 899px) {
  :root {
    --nav-h: 68px;
    --orb-veil: 0.65; /* ici le texte recouvre toute la sphère */
  }

  .nav__inner {
    grid-template-columns: 1fr auto;
  }

  .nav__links,
  .nav__cta {
    display: none;
  }

  .burger {
    display: block;
  }

  .hero__meta {
    grid-template-columns: 1fr auto;
  }

  .hero__scroll {
    display: none;
  }

  .manifesto__intro {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    grid-template-areas:
      "text"
      "photo"
      "body";
  }

  .portrait {
    justify-self: start;
    max-width: 420px;
  }

  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .expertise__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  /* L’anneau de points passe ici derrière la liste : le voile garde les textes nets */
  .services {
    background: var(--veil);
  }

  .molecule {
    position: relative;
    top: 0;
    order: -1;
    max-width: 400px;
  }

  .tags {
    margin-left: 0;
  }

  .kinetic {
    height: 200vh;
  }

  /* Études de cas : tout passe sur une colonne */
  .cs-hero__grid,
  .cs-split,
  .cs-result {
    grid-template-columns: minmax(0, 1fr);
  }

  .cs-hero__media {
    max-width: 480px;
  }

  .cs-steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    padding-top: 0;
    padding-left: 40px;
  }

  .cs-steps::before,
  .cs-steps::after {
    top: 0;
    bottom: 0;
    left: 6px;
    right: auto;
    width: 1px;
    height: auto;
  }

  .cs-steps::after {
    transform: scaleY(var(--p));
    transform-origin: top;
  }

  .cs-step::before {
    top: 2px;
    left: -40px;
  }

  .cs-step__title {
    min-height: 0;
  }

  .cs-phases {
    grid-template-columns: minmax(0, 1fr);
  }

  .cs-phases__arrow {
    justify-self: center;
    transform: rotate(90deg);
  }

  .cs-banners,
  .cs-method__steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Les trois formats « téléphone » sur une ligne, le Display en pleine largeur */
  .cs-formats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-flow: dense;
    gap: 12px;
  }

  .cs-format--wide {
    grid-column: 1 / -1;
  }

  .cs-format .cs-frame {
    padding: 8px;
  }

  .cs-pillars {
    grid-template-columns: minmax(0, 1fr);
  }

  .cs-devices {
    max-width: 560px;
  }

  .cs-phone {
    padding: 5px;
    border-radius: 22px;
  }

  .cs-phone img {
    border-radius: 17px;
  }

  .footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer__intro {
    grid-column: 1 / -1;
  }
}

/* Très petits écrans : « de la performance. » ne tiendrait pas à 40px */
@media (max-width: 359px) {
  .hero__title {
    font-size: 2.25rem;
  }
}

@media (max-width: 560px) {
  .hero {
    padding-bottom: 104px;
  }

  .hero__meta {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
  }

  .hero__clock {
    display: none;
  }

  .hero__ctas .btn {
    flex: 1 1 100%;
  }

  .service__top {
    gap: 12px;
  }

  .service__code {
    min-width: 0;
  }

  .project__kpis {
    gap: 8px;
  }

  .cs-facts,
  .cs-row,
  .cs-mails {
    grid-template-columns: minmax(0, 1fr);
  }

  .copy {
    width: 100%;
  }

  .contact__actions .btn {
    width: 100%;
  }
}

/* ---------- 17. Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js .loader {
    display: none;
  }

  .kinetic {
    height: auto;
  }

  .kinetic__sticky {
    position: relative;
    height: auto;
    padding-block: var(--section-y);
  }

  .kinetic__caption {
    position: static;
    margin-top: 40px;
  }

  .viz-drops {
    display: none;
  }
}
