/* Système visuel : skill landing-page-design (elayadesign), registre Apple.
   Une seule famille (Geist), échelle Tailwind, espacements B2, rayons Tailwind, fonds plats. */
:root {
  --bg: #ffffff;
  --tile: #f5f5f7;
  --tile-2: #e8e8ed;
  --ink: #1d1d1f;
  --ink-2: #424245;
  --muted: #6e6e73;
  --line: #d2d2d7;
  --link: #0066cc;
  --link-hover: #0077ed;
  --dark: #000000;
  --dark-2: #1f1f1f;
  --on-dark: #f5f5f7;
  --on-dark-muted: #a1a1a6;
  --good: #1d7a3e;
  --focus: #0071e3;
  --device: #1d1d1f;

  --s-25: 2px; --s-50: 4px; --s-75: 8px; --s-100: 12px; --s-200: 16px; --s-300: 24px; --s-400: 32px;
  --s-500: 40px; --s-600: 48px; --s-700: 64px; --s-800: 80px; --s-900: 96px;

  --r-md: 6px; --r-lg: 8px; --r-xl: 12px; --r-2xl: 16px; --r-3xl: 24px; --r-full: 9999px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "Geist", ui-sans-serif, system-ui, sans-serif;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 24px; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, p, ul, ol, figure, dl, dd, blockquote { margin: 0; }
h1, h2, h3, h4 { text-wrap: balance; overflow-wrap: break-word; }
p, li, dd { text-wrap: pretty; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }

/* text styles (B1) */
.heading-1 { font-size: 60px; line-height: 60px; font-weight: 600; letter-spacing: -0.03em; }
.heading-2 { font-size: 48px; line-height: 48px; font-weight: 600; letter-spacing: -0.025em; }
.heading-3 { font-size: 36px; line-height: 40px; font-weight: 600; letter-spacing: -0.02em; }
.heading-4 { font-size: 30px; line-height: 36px; font-weight: 600; letter-spacing: -0.015em; }
.heading-5 { font-size: 24px; line-height: 32px; font-weight: 600; letter-spacing: -0.01em; }
.heading-6 { font-size: 20px; line-height: 28px; font-weight: 600; }
.title-1 { font-size: 20px; line-height: 28px; font-weight: 500; }
.title-2 { font-size: 18px; line-height: 28px; font-weight: 500; }
.title-3 { font-size: 16px; line-height: 24px; font-weight: 500; }
.title-4 { font-size: 14px; line-height: 20px; font-weight: 500; }
.body-2 { font-size: 16px; line-height: 24px; font-weight: 500; }
.body-3 { font-size: 16px; line-height: 24px; font-weight: 400; }
.body-6 { font-size: 14px; line-height: 20px; font-weight: 400; }
.lead { font-size: 20px; line-height: 28px; font-weight: 400; color: var(--ink-2); }
.caption-1 { font-size: 14px; line-height: 20px; font-weight: 500; }
.caption-2 { font-size: 14px; line-height: 20px; font-weight: 400; color: var(--muted); }
.caption-4 { font-size: 12px; line-height: 16px; font-weight: 500; }
.muted { color: var(--muted); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--s-300); }
.skip { position: absolute; left: var(--s-200); top: -100px; z-index: 100; background: var(--ink); color: var(--on-dark); padding: var(--s-75) var(--s-100); border-radius: var(--r-lg); text-decoration: none; }
.skip:focus { top: var(--s-200); }

/* buttons (B2: 8px / 12px) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s-75); min-height: 44px; padding: var(--s-75) var(--s-300); border-radius: var(--r-full); border: 0; font-size: 16px; line-height: 24px; font-weight: 600; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color 300ms var(--ease), transform 300ms var(--ease), color 300ms var(--ease); }
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--link); color: #ffffff; }

.btn-ghost { background: transparent; color: var(--link); padding-inline: var(--s-100); }

.btn-light { background: var(--on-dark); color: var(--ink); }

.btn-outline-dark { background: transparent; color: var(--on-dark); box-shadow: inset 0 0 0 1px var(--on-dark-muted); }

.btn:disabled { opacity: 1; background: var(--tile-2); color: var(--muted); cursor: not-allowed; }
.link { color: var(--link); text-decoration: none; font-weight: 500; }

.link::after { content: ""; display: inline-block; width: 8px; height: 8px; margin-left: 6px; border-right: 1.5px solid currentColor; border-top: 1.5px solid currentColor; transform: translateY(-1px) rotate(45deg); }

/* nav (B7) */
.nav { position: fixed; top: var(--s-200); left: 50%; transform: translateX(-50%); z-index: 50; display: flex; align-items: center; gap: var(--s-300); padding: var(--s-75) var(--s-75) var(--s-75) var(--s-300); border-radius: var(--r-full); background: rgba(255, 255, 255, 0.72); -webkit-backdrop-filter: saturate(1.8) blur(20px); backdrop-filter: saturate(1.8) blur(20px); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06), 0 8px 24px rgba(0, 0, 0, 0.06); max-width: calc(100% - var(--s-400)); }
.nav-brand { font-size: 14px; line-height: 20px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.nav-links { display: flex; align-items: center; gap: var(--s-50); list-style: none; padding: 0; }
.nav-links a { display: block; padding: var(--s-75) var(--s-100); border-radius: var(--r-full); font-size: 14px; line-height: 20px; font-weight: 500; color: var(--ink-2); text-decoration: none; transition: background-color 300ms var(--ease), color 300ms var(--ease); }

.nav-links a[aria-current] { color: var(--ink); background: var(--tile); }
.nav-cta { min-height: 36px; padding: var(--s-75) var(--s-200); font-size: 14px; line-height: 20px; }
.nav-toggle { display: none; width: 36px; height: 36px; border: 0; background: transparent; border-radius: var(--r-full); cursor: pointer; position: relative; }
.nav-toggle span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: var(--ink); border-radius: 2px; transition: transform 500ms var(--ease); }
.nav-toggle span:first-child { transform: translateY(-4px); }
.nav-toggle span:last-child { transform: translateY(4px); }
.nav-open .nav-toggle span:first-child { transform: rotate(45deg); }
.nav-open .nav-toggle span:last-child { transform: rotate(-45deg); }
.menu { position: fixed; inset: 0; z-index: 40; background: rgba(255, 255, 255, 0.94); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); padding: 112px var(--s-300) var(--s-400); display: flex; flex-direction: column; gap: var(--s-50); }
.menu a { font-size: 30px; line-height: 36px; font-weight: 600; letter-spacing: -0.015em; text-decoration: none; padding: var(--s-75) 0; opacity: 0; transform: translateY(24px); transition: opacity 500ms var(--ease), transform 500ms var(--ease); }
.menu.in a { opacity: 1; transform: none; }

/* sections */
.section { padding-block: var(--s-900); }
.tile-bg { background: var(--tile); }
.section-head { display: grid; gap: var(--s-200); max-width: 680px; margin-bottom: var(--s-700); }
.kicker { color: var(--muted); }

/* hero */
.hero { padding-top: 160px; padding-bottom: var(--s-900); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: var(--s-700); align-items: center; }
.hero-text { display: grid; gap: var(--s-300); justify-items: start; }
.hero h1 { max-width: 680px; background: linear-gradient(90deg, #000000, #666666); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: 4px; }
.hero .lead { max-width: 680px; }
.status { display: inline-flex; align-items: center; gap: var(--s-75); padding: var(--s-50) var(--s-100); border-radius: var(--r-full); background: var(--tile); }
.status i { width: 8px; height: 8px; border-radius: 50%; background: var(--good); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-100); }
.proof { display: grid; gap: var(--s-75); padding-top: var(--s-300); border-top: 1px solid var(--line); width: 100%; }
.proof ul { display: flex; flex-wrap: wrap; gap: var(--s-75) var(--s-300); list-style: none; padding: 0; }
.proof li { color: var(--ink-2); }

/* case tiles on home */
.cases { display: grid; gap: var(--s-300); }
.case { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-500); align-items: center; padding: var(--s-700); border-radius: var(--r-3xl); background: var(--tile); }
.case:nth-child(even) .case-media { order: -1; }
.case-text { display: grid; gap: var(--s-300); align-content: center; }
.case-meta { display: flex; flex-wrap: wrap; gap: var(--s-50) var(--s-200); }
.case-meta span + span { color: var(--muted); }
.case-text h3 { max-width: 520px; }
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-300); }
.kpi { display: grid; gap: var(--s-50); align-content: start; }
.kpi b { font-size: 20px; line-height: 28px; font-weight: 600; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.kpi span { font-size: 14px; line-height: 20px; color: var(--muted); }
.case-media { display: flex; justify-content: center; }

/* tagline reveal (B11) */
.reveal-section { padding-block: 160px; }
.reveal { max-width: 920px; }
.reveal .w { color: rgba(29, 29, 31, 0.28); transition: color 700ms var(--ease); }
.reveal .w.on { color: var(--ink); }

/* method */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-300); list-style: none; padding: 0; counter-reset: s; }
.step { display: grid; gap: var(--s-100); align-content: start; padding: var(--s-400); border-radius: var(--r-3xl); background: var(--bg); }
.step-n { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--on-dark); font-size: 14px; line-height: 20px; font-weight: 600; }
.step p { color: var(--ink-2); }

/* other work */
.others { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-300); }
.other { display: grid; gap: var(--s-300); padding: var(--s-500); border-radius: var(--r-3xl); background: var(--tile); align-content: start; }
.other-media { display: flex; justify-content: center; }

/* timeline */
.timeline { list-style: none; padding: 0; border-top: 1px solid var(--line); }
.timeline li { display: grid; grid-template-columns: 200px minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-75) var(--s-300); padding: var(--s-300) 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.timeline .when { color: var(--muted); font-variant-numeric: tabular-nums; }
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-700); align-items: start; }
.portrait { display: flex; gap: var(--s-300); align-items: center; }
.portrait img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; }
.about-text { display: grid; gap: var(--s-300); }
.about-text p { color: var(--ink-2); }
.facts-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-300); padding: 0; list-style: none; }
.facts-list li { display: grid; gap: var(--s-50); }

/* faq */
.faq { display: grid; border-top: 1px solid var(--line); max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--s-300); padding: var(--s-300) 0; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: rotate(45deg); transition: transform 500ms var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg); }

.faq p { padding-bottom: var(--s-300); color: var(--ink-2); max-width: 640px; }

/* contact */
.contact { background: var(--dark); color: var(--on-dark); padding-block: 128px; text-align: center; }
.contact .wrap { display: grid; justify-items: center; gap: var(--s-300); }
.contact h2 { max-width: 680px; }
.contact p { color: var(--on-dark-muted); max-width: 560px; }
.mail { font-size: 30px; line-height: 36px; font-weight: 600; letter-spacing: -0.015em; color: var(--on-dark); text-decoration: none; overflow-wrap: anywhere; }

.contact-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-100); }
.toast { min-height: 20px; color: var(--on-dark-muted); }
footer { background: var(--dark); color: var(--on-dark-muted); border-top: 1px solid var(--dark-2); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-200); padding-block: var(--s-400); }
footer a { color: var(--on-dark-muted); text-decoration: none; }


/* ---------- iPhone frame ---------- */
.flow { display: grid; justify-items: center; gap: var(--s-300); width: 100%; }
.device { --w: 300px; position: relative; width: var(--w); aspect-ratio: 9 / 19.5; padding: 11px; border-radius: 52px; background: var(--device); box-shadow: inset 0 0 0 1.5px #3a3a3c, 0 0 0 1px rgba(0, 0, 0, 0.08), 0 32px 64px -24px rgba(0, 0, 0, 0.35); flex: none; }
.device::before { content: ""; position: absolute; right: -3px; top: 27%; width: 3px; height: 12%; border-radius: 0 2px 2px 0; background: #2c2c2e; }
.device::after { content: ""; position: absolute; left: -3px; top: 22%; width: 3px; height: 7%; border-radius: 2px 0 0 2px; background: #2c2c2e; box-shadow: 0 calc(var(--w) * 0.2) 0 #2c2c2e; }
.screen { position: relative; width: 100%; height: 100%; border-radius: 42px; overflow: hidden; background: #ffffff; isolation: isolate; }
.sbar { position: absolute; top: 0; left: 0; right: 0; z-index: 3; height: 46px; display: flex; align-items: center; justify-content: space-between; padding: 6px 22px 0 30px; background: var(--bar, #ffffff); color: var(--bar-ink, #000000); font-size: 14px; line-height: 20px; font-weight: 600; transition: background-color 500ms var(--ease), color 500ms var(--ease); pointer-events: none; }
.island { position: absolute; left: 50%; top: 10px; width: 78px; height: 24px; transform: translateX(-50%); border-radius: var(--r-full); background: #000000; }
.sicons { display: flex; align-items: center; gap: 4px; }
.sicons svg { width: auto; height: 10px; }
.track { position: absolute; top: 46px; left: 0; right: 0; bottom: 0; display: flex; transition: transform 500ms var(--ease); }
.slide { flex: 0 0 100%; height: 100%; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
.slide::-webkit-scrollbar { display: none; }
.slide img { width: 100%; height: auto; }
.home-ind { position: absolute; bottom: 8px; left: 50%; width: 36%; height: 5px; transform: translateX(-50%); border-radius: var(--r-full); background: rgba(0, 0, 0, 0.82); z-index: 3; pointer-events: none; }
.tap { position: absolute; top: 46px; bottom: 0; width: 22%; z-index: 2; border: 0; background: transparent; cursor: pointer; }
.tap-prev { left: 0; cursor: w-resize; } .tap-next { right: 0; cursor: e-resize; }
.flow-ui { display: grid; gap: var(--s-100); justify-items: center; width: 100%; max-width: 420px; }
.flow-now { display: flex; align-items: baseline; justify-content: center; gap: var(--s-100); text-align: center; min-height: 28px; }
.flow-ctrl { display: flex; align-items: center; gap: var(--s-75); }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--tile-2); color: var(--ink); display: grid; place-items: center; cursor: pointer; transition: background-color 300ms var(--ease), transform 300ms var(--ease); }
.case .icon-btn, .other .icon-btn, .tile-bg .icon-btn { background: var(--bg); }

.icon-btn:active { transform: scale(0.96); }
.icon-btn svg { width: 16px; height: 16px; }
.dots { display: flex; gap: var(--s-75); align-items: center; padding: 0 var(--s-100); }
.dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: var(--r-full); background: var(--line); cursor: pointer; transition: width 500ms var(--ease), background-color 300ms var(--ease); position: relative; }
.dot::before { content: ""; position: absolute; inset: -10px -4px; }
.dot[aria-current] { width: 24px; background: var(--ink); }
.flow-steps { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-75); list-style: none; padding: 0; max-width: 560px; }
.flow-steps button { min-height: 36px; padding: var(--s-75) var(--s-100); border-radius: var(--r-full); border: 0; background: var(--tile); font-size: 14px; line-height: 20px; font-weight: 500; color: var(--ink-2); cursor: pointer; transition: background-color 300ms var(--ease), color 300ms var(--ease); }

.flow-steps button[aria-current] { background: var(--ink); color: var(--on-dark); }

/* ---------- web frame ---------- */
.display { width: 100%; display: grid; gap: var(--s-100); }
.display-frame { padding: 10px; border-radius: var(--r-2xl); background: var(--device); box-shadow: inset 0 0 0 1.5px #3a3a3c, 0 24px 48px -24px rgba(0, 0, 0, 0.35); }
.display-screen { aspect-ratio: 16 / 10; overflow-y: auto; border-radius: var(--r-md); background: #ffffff; scrollbar-width: thin; }
.display-screen img { width: 100%; height: auto; }
.display-stand { width: 22%; height: 18px; margin: 0 auto; background: #c7c7cc; clip-path: polygon(12% 0, 88% 0, 100% 100%, 0 100%); }
.display figcaption { text-align: center; }

/* ---------- case page ---------- */
.case-hero { padding-top: 160px; padding-bottom: var(--s-700); }
.case-hero .wrap { display: grid; gap: var(--s-300); }
.back { justify-self: start; }
.case-hero h1 { max-width: 860px; }
.case-hero .lead { max-width: 680px; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-300); padding-top: var(--s-300); border-top: 1px solid var(--line); margin-top: var(--s-200); }
.facts div { display: grid; gap: var(--s-50); align-content: start; }
.results { padding: var(--s-500); border-radius: var(--r-3xl); background: var(--tile); display: grid; gap: var(--s-400); }
.results .kpis b { font-size: 36px; line-height: 40px; }
.measure { color: var(--muted); max-width: 760px; }
.prose { display: grid; gap: var(--s-200); max-width: 720px; }
.prose p { font-size: 18px; line-height: 28px; color: var(--ink-2); }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-700); align-items: start; }
.did { list-style: none; padding: 0; display: grid; gap: var(--s-200); }
.did li { position: relative; padding-left: var(--s-400); color: var(--ink-2); }
.did li::before { content: ""; position: absolute; left: 4px; top: 8px; width: 10px; height: 6px; border-left: 2px solid var(--good); border-bottom: 2px solid var(--good); transform: rotate(-45deg); }
.decisions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-300); }
.decision { padding: var(--s-400); border-radius: var(--r-3xl); background: var(--tile); display: grid; gap: var(--s-100); align-content: start; }
.decision p { color: var(--ink-2); }
.quote { max-width: 820px; display: grid; gap: var(--s-200); }
.quote p { font-size: 36px; line-height: 40px; font-weight: 600; letter-spacing: -0.02em; }
.flow-section { display: grid; gap: var(--s-500); justify-items: center; text-align: center; }
.webs { display: grid; gap: var(--s-700); }
.learned { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-300); list-style: none; padding: 0; }
.learned li { display: grid; gap: var(--s-100); padding-top: var(--s-300); border-top: 2px solid var(--ink); align-content: start; }
.learned p { color: var(--ink-2); }
.next-case { display: grid; gap: var(--s-100); padding: var(--s-500); border-radius: var(--r-3xl); background: var(--tile); text-decoration: none; transition: background-color 300ms var(--ease); }


/* scroll reveals (B7) */
.js .rv { opacity: 0; transform: translateY(32px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.js .rv.in { opacity: 1; transform: none; }

/* responsive */
@media (max-width: 980px) {
  .hero-grid, .case, .two-col, .about-grid { grid-template-columns: minmax(0, 1fr); }
  .case:nth-child(even) .case-media { order: 0; }
  .case { padding: var(--s-500) var(--s-300); }
  .steps, .learned { grid-template-columns: minmax(0, 1fr); }
  .others, .decisions { grid-template-columns: minmax(0, 1fr); }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .timeline li { grid-template-columns: minmax(0, 1fr); gap: var(--s-25); }
  .heading-1 { font-size: 48px; line-height: 48px; }
  .heading-2 { font-size: 36px; line-height: 40px; }
}
@media (max-width: 760px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .nav { gap: var(--s-200); left: var(--s-200); right: var(--s-200); transform: none; justify-content: space-between; }
  .hero, .case-hero { padding-top: 128px; }
  .heading-1 { font-size: 36px; line-height: 40px; }
  .heading-2, .heading-3 { font-size: 30px; line-height: 36px; }
  .quote p { font-size: 24px; line-height: 32px; }
  .section { padding-block: var(--s-800); }
  .reveal-section { padding-block: var(--s-900); }
  .kpis { grid-template-columns: minmax(0, 1fr); gap: var(--s-200); }
  .results { padding: var(--s-400) var(--s-300); }
  .results .kpis b { font-size: 30px; line-height: 36px; }
  .device { --w: 272px; }
  .other { padding: var(--s-400) var(--s-300); }
  .facts-list { grid-template-columns: minmax(0, 1fr); }
  .mail { font-size: 20px; line-height: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; scroll-behavior: auto !important; }
  .js .rv { opacity: 1; transform: none; }
  .reveal .w { color: var(--ink); }
}
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.back::after { display: none; }

/* ---------- portfolio, logique agence ---------- */
.btn-dark { background: var(--ink); color: var(--on-dark); }

.nav-cta.btn-dark { min-height: 36px; padding: var(--s-75) var(--s-200); font-size: 14px; line-height: 20px; }
.list-label { color: var(--muted); margin-bottom: var(--s-200); }
.section-label { margin-bottom: var(--s-500); }

.intro { padding: 176px 0 var(--s-800); }
.intro-title { max-width: 1000px; }
.intro-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-200) var(--s-300); margin-top: var(--s-500); }

.projects { display: grid; gap: var(--s-800); }
.project { display: grid; gap: var(--s-300); text-decoration: none; color: inherit; }
.project-visual { position: relative; border-radius: var(--r-3xl); background: var(--tint); padding: var(--s-800) var(--s-400); overflow: hidden; display: flex; justify-content: center; transition: transform 500ms var(--ease); }

.project-info { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-100) var(--s-400); align-items: baseline; }
.project-info p.title-3 { grid-column: 1; color: var(--muted); }
.project-info h3 { grid-column: 1; max-width: 760px; font-size: 30px; line-height: 36px; letter-spacing: -0.015em; }
.project-tags { grid-column: 1; margin-top: var(--s-75); display: flex; flex-wrap: wrap; gap: var(--s-50); list-style: none; padding: 0; }
.project-tags li { padding: var(--s-25) var(--s-75); border-radius: var(--r-full); background: var(--tile); color: var(--ink-2); }
.project-year { grid-column: 2; grid-row: 1; white-space: nowrap; }

.trio { display: flex; align-items: center; justify-content: center; gap: var(--s-400); }
.trio .device { --w: 260px; }
.trio .device.side { --w: 220px; opacity: 0.96; }
.trio .device.side:first-child { transform: translateY(24px); }
.trio .device.side:last-child { transform: translateY(24px); }

.alsos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-300); }
.also { display: grid; gap: var(--s-200); align-content: start; }
.also-visual { border-radius: var(--r-3xl); background: var(--tint); aspect-ratio: 4 / 5; display: flex; align-items: center; justify-content: center; padding: var(--s-400); overflow: hidden; }
.also-visual .device { --w: 190px; }
.also-web { width: 100%; }
.also-web figcaption { display: none; }
.also-info { display: grid; gap: var(--s-50); }

.profile { border-top: 1px solid var(--line); }
.profile-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: var(--s-800); align-items: start; }
.profile-text { display: grid; gap: var(--s-300); justify-items: start; }
.profile-text p.body-3 { color: var(--ink-2); max-width: 520px; }
.portrait { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; }
.timeline li { grid-template-columns: 140px minmax(0, 1fr) minmax(0, 1.2fr); padding: var(--s-200) 0; }

/* case pages */
.case-hero { padding-top: 176px; padding-bottom: var(--s-700); }
.case-hero .wrap { display: grid; gap: var(--s-200); }
.case-hero h1 { max-width: 900px; }
.back { color: var(--link); text-decoration: none; justify-self: start; margin-bottom: var(--s-200); }
.back::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-left: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-1px) rotate(45deg); }

.case-cover .wrap { border-radius: var(--r-3xl); background: var(--tint); padding: var(--s-900) var(--s-400); display: flex; justify-content: center; overflow: hidden; }
.case-cover .trio .device { --w: 280px; }
.case-cover .trio .device.side { --w: 240px; }
.brief { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: var(--s-800); }
.facts { display: grid; gap: var(--s-300); align-content: start; grid-template-columns: minmax(0, 1fr); border: 0; padding: 0; margin: 0; }
.facts dd { margin: var(--s-25) 0 0; }
.brief-text { display: grid; gap: var(--s-700); }
.body-lead { font-size: 24px; line-height: 32px; font-weight: 500; letter-spacing: -0.01em; max-width: 720px; }
.kpi-band { padding-block: var(--s-700); border-block: 1px solid var(--line); }
.kpi-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-400); }
.big-kpi { display: grid; gap: var(--s-75); align-content: start; }
.big-kpi b { font-size: 48px; line-height: 48px; font-weight: 600; letter-spacing: -0.025em; font-variant-numeric: tabular-nums; }
.big-kpi span { color: var(--muted); max-width: 260px; }
.flows .wrap { border-radius: var(--r-3xl); background: var(--tint); padding: var(--s-800) var(--s-400); }
.flows-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-800) var(--s-700); }
.flow-block { display: grid; gap: var(--s-300); justify-items: center; flex: 1 1 340px; max-width: 520px; }
.flow-block > .caption-1 { color: var(--ink-2); }
.flows .icon-btn, .flows .flow-steps button { background: rgba(255, 255, 255, 0.7); }
.flows .flow-steps button[aria-current] { background: var(--ink); }
.quote-band { padding-block: var(--s-800); }
.quote p { font-size: 36px; line-height: 40px; }
.takeaway { max-width: 760px; padding-top: var(--s-400); border-top: 2px solid var(--ink); }
.next-project { display: block; text-decoration: none; color: inherit; padding-block: var(--s-300) var(--s-900); }
.next-project .wrap { display: grid; gap: var(--s-100); padding: var(--s-800) var(--s-500); border-radius: var(--r-3xl); background: var(--tint); }

.decisions { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.decision { padding: var(--s-300); }

@media (max-width: 980px) {
  .project-info { grid-template-columns: minmax(0, 1fr); }
  .project-info h3, .project-tags, .project-year { grid-column: 1; grid-row: auto; }
  .alsos { grid-template-columns: minmax(0, 1fr); }
  .profile-grid, .brief { grid-template-columns: minmax(0, 1fr); gap: var(--s-500); }
  .kpi-row, .decisions { grid-template-columns: minmax(0, 1fr); }
  .timeline li { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .intro, .case-hero { padding-top: 128px; }
  .trio .device.side { display: none; }
  .trio .device, .case-cover .trio .device { --w: 240px; }
  .project-visual, .case-cover .wrap, .flows .wrap { padding: var(--s-500) var(--s-200); }
  .big-kpi b { font-size: 36px; line-height: 40px; }
  .body-lead { font-size: 20px; line-height: 28px; }
  .quote p { font-size: 24px; line-height: 32px; }
  .also-visual { aspect-ratio: auto; padding: var(--s-400) var(--s-200); }
}

/* status bar scales with the device */
.sbar { height: calc(var(--w) * 0.153); padding: calc(var(--w) * 0.02) calc(var(--w) * 0.075) 0 calc(var(--w) * 0.1); font-size: calc(var(--w) * 0.047); line-height: 1; }
.island { top: calc(var(--w) * 0.033); width: calc(var(--w) * 0.26); height: calc(var(--w) * 0.08); }
.sicons svg { height: calc(var(--w) * 0.034); }
.track, .tap { top: calc(var(--w) * 0.153); }
.device { border-radius: calc(var(--w) * 0.173); padding: calc(var(--w) * 0.037); }
.screen { border-radius: calc(var(--w) * 0.14); }
.project-tags li.tag-proto { background: var(--ink); color: var(--on-dark); }

/* home stage: live prototype in each project tile */
.stage { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-700); align-items: center; padding: var(--s-700) var(--s-800); border-radius: var(--r-3xl); background: var(--tint); }
.project:nth-child(even) .stage { grid-template-columns: auto minmax(0, 1fr); }
.project:nth-child(even) .stage-proto { order: -1; }
.stage-copy { display: grid; gap: var(--s-200); justify-items: start; max-width: 460px; }
.stage-copy h3 { font-size: 36px; line-height: 40px; letter-spacing: -0.02em; }
.stage-copy .project-year { color: var(--muted); }
.stage-copy .project-tags li { background: rgba(255, 255, 255, 0.7); }
.stage-copy .project-tags li.tag-proto { background: var(--ink); }
.try, .intro-hint { display: flex; gap: var(--s-75); align-items: flex-start; color: var(--ink-2); }
.intro-hint { margin-top: var(--s-300); }
.try-dot { width: 10px; height: 10px; margin-top: 5px; flex: none; border-radius: 50%; background: #0a84ff; box-shadow: 0 0 0 4px rgba(10, 132, 255, 0.2); animation: trypulse 1.8s ease-out infinite; }
@keyframes trypulse { 50% { box-shadow: 0 0 0 8px rgba(10, 132, 255, 0.05); } }
.stage-kpis { display: flex; gap: var(--s-500); padding-top: var(--s-200); margin-top: var(--s-75); border-top: 1px solid rgba(0, 0, 0, 0.08); width: 100%; }
.stage-kpis div { display: grid; gap: var(--s-25); }
.stage-kpis b { font-size: 24px; line-height: 32px; font-weight: 600; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.stage-cta { margin-top: var(--s-100); }
.stage-proto { display: grid; justify-items: center; gap: var(--s-200); }
.stage-proto .proto-tools .btn { background: rgba(255, 255, 255, 0.7); }
.stage .proto-device { --w: 300px; }
.credits a { color: inherit; }
footer .credits { flex-basis: 100%; font-size: 12px; line-height: 16px; }
@media (max-width: 980px) {
  .stage, .project:nth-child(even) .stage { grid-template-columns: minmax(0, 1fr); padding: var(--s-500) var(--s-300); justify-items: center; }
  .project:nth-child(even) .stage-proto { order: 0; }
  .stage-copy { max-width: none; }
}
@media (prefers-reduced-motion: reduce) { .try-dot { animation: none; } }

/* client logos */
.logo-row { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s-100) var(--s-300); }
.logo, .logo-sm { display: block; max-width: 100%; }
.logo-text { font-size: 18px; line-height: 28px; font-weight: 600; letter-spacing: -0.01em; }
.tl-co { display: flex; align-items: center; min-height: 24px; }
.next-project .logo { margin: var(--s-75) 0; }
.case-hero .logo-row { margin-bottom: var(--s-100); }

/* ---------- finitions : entrée du titre, chiffres, relief ---------- */
.intro-title .iw { display: inline-block; }
.js .intro-title .iw { opacity: 0; transform: translateY(0.4em); filter: blur(6px); animation: iw 900ms var(--ease) forwards; animation-delay: calc(var(--i) * 45ms + 120ms); }
@keyframes iw { to { opacity: 1; transform: none; filter: none; } }
.stage-proto { perspective: 1400px; }
.stage-proto .proto-device { transition: transform 700ms var(--ease); transform-style: preserve-3d; will-change: transform; }
.count { font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) { .js .intro-title .iw { animation: none; opacity: 1; transform: none; filter: none; } .stage-proto .proto-device { transform: none !important; } }

/* ---------- tuiles annotées : phrase, flèche dessinée, forme douce ---------- */
.stage { position: relative; overflow: hidden; isolation: isolate; grid-template-columns: minmax(0, 1fr) 230px auto; gap: var(--s-400); background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.project:nth-child(even) .stage { grid-template-columns: auto 230px minmax(0, 1fr); }
.project:nth-child(even) .stage-copy { order: 3; }
.project:nth-child(even) .callout-col { order: 2; }
.project:nth-child(even) .stage-proto { order: 1; }
.stage-proto { position: relative; }
.stage-proto::before { content: ""; position: absolute; z-index: -1; width: 640px; height: 640px; left: 50%; top: 55%; transform: translate(-42%, -50%) rotate(-8deg); border-radius: 58% 42% 46% 54% / 48% 56% 44% 52%; background: var(--tint); }
.project:nth-child(even) .stage-proto::before { transform: translate(-58%, -50%) rotate(10deg); }
.stage-copy .project-tags li { background: var(--tile); }
.callout-col { position: relative; align-self: stretch; }
.callout-text { position: absolute; left: 0; right: 0; margin: 0; font-size: 26px; line-height: 30px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); text-wrap: balance; opacity: 0; transform: translateY(6px); transition: opacity 400ms var(--ease), transform 400ms var(--ease), top 500ms var(--ease); }
.project:nth-child(even) .callout-text { text-align: right; }
.callout-text.show { opacity: 1; transform: none; }
.callout-svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; z-index: 5; }
.callout-svg path { fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.callout-path { transition: stroke-dashoffset 700ms var(--ease) 150ms; }
.callout-head { opacity: 0; transition: opacity 200ms 750ms; }
.callout-svg.show .callout-head { opacity: 1; }
@media (max-width: 980px) {
  .stage, .project:nth-child(even) .stage { grid-template-columns: minmax(0, 1fr); }
  .callout-col, .callout-svg { display: none; }
  .project:nth-child(even) .stage-copy { order: 0; }
  .stage-proto::before { width: 520px; height: 520px; }
}
@media (prefers-reduced-motion: reduce) { .callout-path, .callout-head, .callout-text { transition: none; } }


/* survol réservé aux pointeurs précis : pas d’état collé après un tap */
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--link-hover); }
  .btn-ghost:hover { color: var(--link-hover); text-decoration: underline; text-underline-offset: 4px; }
  .btn-light:hover { background: #ffffff; }
  .btn-outline-dark:hover { box-shadow: inset 0 0 0 1px var(--on-dark); }
  .link:hover { text-decoration: underline; text-underline-offset: 4px; }
  .nav-links a:hover { background: var(--tile); color: var(--ink); }
  .faq summary:hover { color: var(--link); }
  .mail:hover { text-decoration: underline; text-underline-offset: 6px; }
  footer a:hover { color: var(--on-dark); }
  .icon-btn:hover { background: var(--line); }
  .flow-steps button:hover { background: var(--tile-2); color: var(--ink); }
  .next-case:hover { background: var(--tile-2); }
  .btn-dark:hover { background: #333336; }
  .project:hover .project-visual { transform: scale(0.99); }
  .back:hover { text-decoration: underline; text-underline-offset: 4px; }
  .next-project:hover .heading-3 { text-decoration: underline; text-underline-offset: 6px; }
}
