/* =========================================================
   Guillaume Sites & Systèmes — feuille de style
   Direction : galerie nocturne façon Apple. Scènes noires,
   bandes carbone, bleu réservé aux actions, angles 28px.
   ========================================================= */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-ext-var.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Couleurs */
  --obsidian: #000000;
  --graphite: #0e0e0e;
  --carbon: #1d1d1f;
  --carbon-fade: linear-gradient(#1d1d1f, #000000 288px);
  --steel: #333336;
  --slate: #6e6e73;
  --ash: #86868b;
  --porcelain: #f5f5f7;
  --white: #ffffff;
  --blue: #0071e3;
  --link: #2997ff;
  --copper: #b64400;
  --yellow: #ffd500;
  --live: #30d158;

  /* Typographie : SF Pro sur les appareils Apple, Inter ailleurs */
  --font-text: "SF Pro Text", -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
  --font-display: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;

  /* Formes */
  --r-card: 28px;
  --r-nav: 20px;
  --r-pill: 9999px;
  --ring: rgb(40, 40, 40) 0 0 0 1px;
  --ring-2: rgb(110, 110, 115) 0 0 0 1px;

  /* Mise en page */
  --gutter: 22px;
  --max: 1180px;
  --nav-h: 44px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
}

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

html {
  background: var(--obsidian);
  color: var(--porcelain);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 64px;
}
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  background: var(--obsidian);
  color: var(--porcelain);
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.374px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
ul, ol { list-style: none; }
::selection { background: var(--blue); color: var(--white); }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: fixed; top: 8px; left: 8px; z-index: 200;
  padding: 10px 16px; border-radius: var(--r-pill);
  background: var(--blue); color: var(--white); font-size: 14px;
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 160px 0; }
.dim { color: var(--ash); }

/* ---------- Typographie ---------- */
.eyebrow {
  font-family: var(--font-display);
  font-size: 19px; font-weight: 600; line-height: 1.21; letter-spacing: 0.228px;
  color: var(--ash);
  margin-bottom: 18px;
}
.display-2 {
  font-family: var(--font-display);
  font-size: clamp(44px, 6.4vw, 80px);
  font-weight: 600; line-height: 1.05; letter-spacing: -0.015em;
}
.display-3 {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.6vw, 56px);
  font-weight: 600; line-height: 1.07; letter-spacing: -0.015em;
}
.lead {
  font-size: clamp(19px, 1.7vw, 21px);
  line-height: 1.38; letter-spacing: 0.011em;
  color: var(--ash);
  max-width: 640px;
}
.lead + .lead { margin-top: 18px; }

.link { color: var(--link); transition: color .3s; }
.link span { display: inline-block; transition: transform .35s var(--ease); }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }
.link:hover span { transform: translateX(4px); }
.link--lg { font-size: 19px; font-weight: 400; }

/* Révélation des titres (mots découpés en JS) */
.split-line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.split-line > span { display: inline-block; will-change: transform; }

/* ---------- Pilules et capsules ---------- */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 7px 14px;
  border: 0; border-radius: 170px;
  font-family: var(--font-text); font-size: 12px; line-height: 16px; letter-spacing: -0.12px;
  cursor: pointer; white-space: nowrap;
  transition: background-color .3s, transform .4s var(--ease), box-shadow .3s;
}
.pill--blue { background: var(--blue); color: var(--white); }
.pill--blue:hover { background: #0077ed; box-shadow: 0 0 0 6px rgba(0, 113, 227, .18); }
.pill--lg { font-size: 17px; line-height: 1.2; padding: 14px 26px; }
.capsule {
  display: inline-flex; align-items: center;
  padding: 7px 14px; border-radius: 36px;
  background: rgba(66, 66, 69, .72);
  color: rgba(255, 255, 255, .8);
  font-size: 12px; line-height: 16px; letter-spacing: -0.12px;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}

/* ---------- Préchargement ---------- */
.loader {
  position: fixed; inset: 0; z-index: 150;
  display: grid; place-items: center; align-content: center; gap: 28px;
  background: var(--obsidian);
  transition: opacity .6s var(--ease), visibility .6s;
}
.loader__mark { display: flex; align-items: center; gap: 14px; }
.loader__logo { width: 44px; height: 44px; fill: none; stroke: var(--porcelain); stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; }
.loader__logo path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.1s var(--ease) .1s forwards; }
.loader__name { font-family: var(--font-display); font-size: 21px; font-weight: 600; letter-spacing: 0.231px; opacity: 0; animation: fadeIn .8s var(--ease) .4s forwards; }
.loader__bar { width: 180px; height: 2px; border-radius: 2px; background: var(--steel); overflow: hidden; }
.loader__bar span { display: block; height: 100%; background: var(--porcelain); transform: scaleX(0); transform-origin: left; animation: grow 1.3s var(--ease-io) forwards; }
.is-loaded .loader { opacity: 0; visibility: hidden; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadeIn { to { opacity: 1; } }
@keyframes grow { to { transform: scaleX(1); } }

/* ---------- Curseur ---------- */
.cursor { display: none; }
.has-cursor .cursor { display: block; }
.has-cursor, .has-cursor a, .has-cursor button, .has-cursor label { cursor: none; }
.has-cursor input, .has-cursor textarea { cursor: text; }
.cursor__dot, .cursor__ring {
  position: fixed; top: 0; left: 0; z-index: 140;
  pointer-events: none; border-radius: 50%;
}
.cursor__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--porcelain); }
.cursor__ring {
  width: 38px; height: 38px; margin: -19px 0 0 -19px;
  border: 1px solid rgba(245, 245, 247, .45);
  display: grid; place-items: center;
  transition: width .45s var(--ease), height .45s var(--ease), margin .45s var(--ease), background-color .35s, border-color .35s;
}
.cursor__label { font-size: 12px; font-weight: 600; letter-spacing: -0.12px; color: var(--white); opacity: 0; transform: scale(.6); transition: opacity .3s, transform .45s var(--ease); }
.cursor.is-link .cursor__ring { width: 56px; height: 56px; margin: -28px 0 0 -28px; border-color: rgba(245, 245, 247, .8); }
.cursor.is-view .cursor__ring { width: 92px; height: 92px; margin: -46px 0 0 -46px; background: var(--blue); border-color: var(--blue); }
.cursor.is-view .cursor__label { opacity: 1; transform: none; }
.cursor.is-view .cursor__dot, .cursor.is-hidden { opacity: 0; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(0, 0, 0, .72);
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  transition: transform .5s var(--ease), background-color .3s;
}
.nav.is-hidden { transform: translateY(-100%); }
.nav__inner {
  height: 100%; max-width: 1024px; margin: 0 auto; padding: 0 var(--gutter);
  display: flex; align-items: center; gap: 24px;
}
.nav__brand { display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 600; letter-spacing: -0.224px; color: var(--porcelain); }
.nav__logo { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; transition: transform .6s var(--ease); }
.nav__brand:hover .nav__logo { transform: rotate(-30deg); }
.nav__links { display: flex; gap: 28px; margin-left: auto; }
.nav__links a {
  position: relative;
  font-size: 12px; line-height: 1.33; letter-spacing: -0.12px;
  color: rgba(255, 255, 255, .8);
  transition: color .3s;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px;
  background: var(--porcelain); transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease);
}
.nav__links a:hover, .nav__links a.is-active { color: var(--white); }
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__progress { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: rgba(255, 255, 255, .06); }
.nav__progress span { display: block; height: 100%; background: var(--link); transform: scaleX(0); transform-origin: left; }

.nav__burger { display: none; margin-left: auto; width: 36px; height: 36px; border: 0; background: none; position: relative; }
.nav__burger span { position: absolute; left: 10px; right: 10px; height: 1.5px; border-radius: 2px; background: var(--porcelain); transition: transform .45s var(--ease), top .45s var(--ease); }
.nav__burger span:first-child { top: 14px; }
.nav__burger span:last-child { top: 21px; }
.menu-open .nav__burger span:first-child { top: 17.5px; transform: rotate(45deg); }
.menu-open .nav__burger span:last-child { top: 17.5px; transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 90;
  padding: calc(var(--nav-h) + 40px) 32px 40px;
  display: flex; flex-direction: column; justify-content: space-between;
  background: rgba(22, 22, 23, .96);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  opacity: 0; visibility: hidden; transition: opacity .45s var(--ease), visibility .45s;
}
.menu nav { display: flex; flex-direction: column; gap: 6px; }
.menu nav a {
  font-family: var(--font-display); font-size: 32px; font-weight: 600; line-height: 1.3; letter-spacing: 0.128px;
  opacity: 0; transform: translateY(16px); transition: opacity .5s var(--ease), transform .6s var(--ease);
}
.menu .pill { align-self: flex-start; }
.menu-open .menu { opacity: 1; visibility: visible; }
.menu-open .menu nav a { opacity: 1; transform: none; }
.menu-open .menu nav a:nth-child(2) { transition-delay: .04s; }
.menu-open .menu nav a:nth-child(3) { transition-delay: .08s; }
.menu-open .menu nav a:nth-child(4) { transition-delay: .12s; }
.menu-open .menu nav a:nth-child(5) { transition-delay: .16s; }

/* Bandeau d’annonce (posé sur le héro, part avec le défilement) */
.strip {
  position: absolute; top: var(--nav-h); left: 0; right: 0; z-index: 5;
  padding: 14px var(--gutter);
  background: var(--carbon);
  text-align: center;
  font-size: 14px; line-height: 20px; letter-spacing: -0.224px;
  color: var(--porcelain);
}
.new { color: #e8732c; font-size: 12px; font-weight: 600; line-height: 16px; letter-spacing: -0.12px; margin-right: 6px; }

/* ---------- Héro ---------- */
.hero { position: relative; height: 340vh; }
.hero__stage {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  overflow: hidden;
  display: flex; flex-direction: column; align-items: center;
  padding: calc(var(--nav-h) + 48px + 4vh) var(--gutter) 0;
}
.hero__copy { position: relative; z-index: 3; text-align: center; }
.hero__label {
  font-family: var(--font-display);
  font-size: clamp(21px, 2.4vw, 32px); font-weight: 600; line-height: 1.13; letter-spacing: 0.128px;
  color: var(--porcelain);
  margin-bottom: 10px;
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.6vw, 80px);
  font-weight: 600; line-height: 1.05; letter-spacing: -0.015em;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__title .line > span {
  display: inline-block;
  background: linear-gradient(180deg, #ffffff 35%, #a1a1a6 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.hero__sub { margin: 16px auto 0; max-width: 520px; font-size: clamp(17px, 1.5vw, 21px); line-height: 1.38; color: var(--ash); }

.hero__actions {
  margin-top: 24px;
  display: flex; justify-content: center; align-items: center; gap: 12px;
}
.hero__hint {
  position: absolute; right: var(--gutter); bottom: max(32px, 4.4vh); z-index: 3;
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; color: var(--ash);
}
.hero__hint i { width: 1px; height: 28px; background: linear-gradient(var(--ash), transparent); animation: hint 1.8s var(--ease-io) infinite; transform-origin: top; }
@keyframes hint { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* Ordinateur en 3D WebGL (voir outils/3d/ordinateur.js) */
.hero__canvas {
  position: absolute; inset: 0; z-index: 2;
  width: 100%; height: 100%;
  display: none; pointer-events: none;
}
.webgl .hero__canvas { display: block; }
.webgl .laptop { display: none; }

/* Ordinateur en CSS (secours sans WebGL) */
.laptop {
  --lw: min(860px, 90vw, calc((80svh - 84px) / .65));
  position: absolute; z-index: 2;
  left: 0; right: 0; bottom: 20vh; bottom: 20svh;
  width: var(--lw); margin: 0 auto;
  perspective: calc(var(--lw) * 2.6);
  perspective-origin: 50% 8%;
  transform-origin: 50% 46%;
  will-change: transform;
}
.laptop__lid {
  position: relative;
  aspect-ratio: 16 / 10.4;
  transform-origin: 50% 100%;
  transform-style: preserve-3d;
  transform: rotateX(-86deg);
  will-change: transform;
}
.laptop__screen, .laptop__back {
  position: absolute; inset: 0;
  border-radius: calc(var(--lw) * .028) calc(var(--lw) * .028) 6px 6px;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
.laptop__screen {
  background: #050505;
  padding: calc(var(--lw) * .018) calc(var(--lw) * .018) calc(var(--lw) * .028);
  box-shadow: inset 0 0 0 1px #2a2a2c, inset 0 0 0 3px #0b0b0c;
  overflow: hidden;
}
.laptop__shots {
  position: relative; width: 100%; height: 100%;
  border-radius: calc(var(--lw) * .01);
  overflow: hidden; background: #000;
}
.laptop__shots img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: top;
  opacity: 0; transform: scale(1.04);
  transition: opacity .9s var(--ease), transform 1.6s var(--ease);
}
.laptop__shots img.is-on { opacity: 1; transform: none; }
.laptop__glare {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, .09) 0%, rgba(255, 255, 255, 0) 38%);
  border-radius: inherit;
}
.laptop__back {
  transform: rotateX(180deg);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath d='M36 16.5A14 14 0 1 0 38 26H25' fill='none' stroke='%23c7c7cc' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 9% no-repeat,
    radial-gradient(60% 50% at 50% 50%, rgba(41, 151, 255, .18), transparent 70%),
    linear-gradient(180deg, #3a3a3c, #1c1c1e);
  box-shadow: inset 0 0 0 1px #48484a, inset 0 -2px 0 rgba(255, 255, 255, .08);
}
.laptop__base {
  position: relative;
  width: 116%; margin-left: -8%;
  height: calc(var(--lw) * .024);
  background: linear-gradient(180deg, #4a4a4d 0%, #2b2b2d 35%, #121213 100%);
  border-radius: 2px 2px calc(var(--lw) * .02) calc(var(--lw) * .02) / 2px 2px calc(var(--lw) * .014) calc(var(--lw) * .014);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18);
}
.laptop__base span {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 15%; height: 42%;
  background: #1a1a1b; border-radius: 0 0 8px 8px;
}
.laptop__shadow {
  position: absolute; left: 4%; right: 4%; bottom: -26px; height: 36px;
  background: radial-gradient(ellipse at center, rgba(41, 151, 255, .22), transparent 70%);
  filter: blur(10px); opacity: .4;
}

.hero__zoomtext {
  position: absolute; inset: 0; z-index: 4;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  pointer-events: none; opacity: 0;
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(48px, 8vw, 112px); line-height: 1.02; letter-spacing: -0.02em;
  text-align: center;
}
.hero__zoomtext .dim { color: var(--ash); }
.hero__zoomtext::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(70% 60% at 50% 50%, rgba(0, 0, 0, .72), rgba(0, 0, 0, .4));
}

/* ---------- Manifeste ---------- */
.manifesto__text {
  font-family: var(--font-display);
  font-size: clamp(30px, 4.2vw, 56px);
  font-weight: 600; line-height: 1.14; letter-spacing: -0.01em;
  max-width: 1040px;
}
.manifesto__text .w { color: var(--steel); transition: color .2s linear; }
.no-motion .manifesto__text .w, .manifesto__text .w.is-lit { color: var(--porcelain); }

/* ---------- Tuiles ---------- */
.tile {
  position: relative;
  background: var(--obsidian);
  border-radius: var(--r-card);
  box-shadow: var(--ring);
  overflow: hidden;
  isolation: isolate;
}
.tile::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(41, 151, 255, .14), transparent 60%);
  opacity: 0; transition: opacity .4s;
}
.tile::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  padding: 1px;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .5), transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .4s;
}
.tile:hover::before, .tile:hover::after { opacity: 1; }

.metrics { padding-top: 0; }
.metrics__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.metric { padding: 36px 28px 32px; min-height: 300px; display: flex; flex-direction: column; background: var(--graphite); }
.metric__visual { width: 56px; height: 56px; margin-bottom: auto; }
.metric__visual svg { width: 100%; height: 100%; fill: none; stroke: var(--porcelain); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.metric__value {
  margin-top: 48px;
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(44px, 4.4vw, 64px); line-height: 1; letter-spacing: -0.02em;
}
.metric__label { margin-top: 12px; font-size: 14px; line-height: 1.29; letter-spacing: -0.224px; color: var(--ash); }
.metric:nth-child(3) .metric__value span { color: var(--yellow); }

/* ---------- Réalisations ---------- */
.head { max-width: 860px; margin-bottom: 72px; }
.head .lead { margin-top: 24px; }

.stack { display: flex; flex-direction: column; gap: 6vh; }
.feature {
  position: sticky; top: calc(var(--nav-h) + 28px);
  display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: 48px; align-items: center;
  min-height: min(680px, calc(100svh - var(--nav-h) - 56px));
  padding: 48px;
  border-radius: var(--r-card);
  background: var(--carbon-fade);
  box-shadow: var(--ring);
  overflow: hidden;
  transform-origin: 50% 0;
  will-change: transform;
}
.feature::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: #000; opacity: var(--dim, 0);
  border-radius: inherit;
}
.feature__num { font-family: var(--font-display); font-size: 14px; font-weight: 600; color: var(--slate); letter-spacing: .02em; margin-bottom: 20px; }
.feature h3 {
  font-family: var(--font-display);
  font-size: clamp(32px, 3.6vw, 48px); font-weight: 600; line-height: 1.08; letter-spacing: -0.01em;
  margin-top: 10px;
}
.feature__kind { margin-top: 8px; font-size: 17px; color: var(--ash); }
.feature__desc { margin-top: 22px; font-size: 17px; line-height: 1.47; color: #d2d2d7; max-width: 460px; }
.feature .link { display: inline-block; margin-top: 28px; }

.status { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; line-height: 16px; letter-spacing: -0.12px; color: var(--ash); }
.status i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; position: relative; }
.status--live { color: var(--live); }
.status--live i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: ping 1.8s var(--ease) infinite; }
.status--app { color: var(--link); }
@keyframes ping { from { transform: scale(1); opacity: .8; } to { transform: scale(3); opacity: 0; } }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.tags li {
  padding: 5px 12px; border-radius: var(--r-pill);
  box-shadow: var(--ring-2);
  font-size: 12px; line-height: 16px; letter-spacing: -0.12px; color: var(--porcelain);
}

.browser {
  position: relative; display: block;
  border-radius: 18px; overflow: hidden;
  background: var(--graphite);
  box-shadow: 0 0 0 1px #2a2a2c;
  transform: perspective(1400px) rotateY(var(--ry, 0deg)) rotateX(var(--rx, 0deg));
  transition: transform .6s var(--ease);
}
.browser__bar {
  display: flex; align-items: center; gap: 6px;
  height: 34px; padding: 0 14px;
  background: #161617; border-bottom: 1px solid #222224;
}
.browser__bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--steel); }
.browser__bar b {
  margin: 0 auto; transform: translateX(-20px);
  padding: 3px 14px; border-radius: 8px; background: #0a0a0b;
  font-size: 11px; font-weight: 400; color: var(--ash); letter-spacing: -0.1px;
  max-width: 70%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.browser__view { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #000; }
.browser__view video { width: 100%; height: 100%; object-fit: cover; object-position: top; transform: scale(1.001); transition: transform 1.2s var(--ease); }
.feature:hover .browser__view video { transform: scale(1.03); }

/* Application : téléphones */
.feature__media--app {
  position: relative; display: flex; justify-content: center; align-items: center;
  min-height: 520px;
}
.app-glow {
  position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(104, 239, 63, .22), rgba(41, 151, 255, .12) 45%, transparent 70%);
  filter: blur(20px);
}
.phone {
  position: relative; z-index: 2;
  width: min(250px, 42%); aspect-ratio: 390 / 844;
  padding: 9px; border-radius: 44px;
  background: linear-gradient(145deg, #3a3a3c, #1c1c1e 40%, #2c2c2e);
  box-shadow: inset 0 0 0 1px #4a4a4d, inset 0 0 0 3px #111;
  transition: transform .8s var(--ease);
}
.phone__screen { display: block; width: 100%; height: 100%; border-radius: 36px; overflow: hidden; background: #fff; }
.phone__screen img, .phone__screen video { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.phone__island { position: absolute; top: 18px; left: 50%; width: 30%; height: 22px; transform: translateX(-50%); border-radius: 20px; background: #000; }
.phone--back {
  position: absolute; z-index: 1;
  transform: translateX(-62%) rotate(-9deg) scale(.86);
  opacity: .55;
}
.feature:hover .phone:not(.phone--back) { transform: translateY(-10px) rotate(2deg); }
.feature:hover .phone--back { transform: translateX(-72%) rotate(-13deg) scale(.86); }

/* ---------- Galerie horizontale ---------- */
.gallery { position: relative; padding: 40px 0 120px; }
.gallery__pin {
  position: relative; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--nav-h) + 24px) 0 24px;
}
.gallery__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 48px; }
.gallery__count { font-family: var(--font-display); font-size: 19px; font-weight: 600; color: var(--ash); font-variant-numeric: tabular-nums; }
.gallery__count span { color: var(--porcelain); }
.gallery__track {
  display: flex; gap: 24px;
  padding: 0 max(var(--gutter), calc((100vw - var(--max)) / 2));
  width: max-content;
  will-change: transform;
}
.card { display: block; width: clamp(290px, 36vw, 540px); flex: none; perspective: 1200px; }
.card__media {
  position: relative; display: block;
  aspect-ratio: 16 / 10;
  border-radius: var(--r-card); overflow: hidden;
  background: var(--graphite);
  box-shadow: var(--ring);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transform-style: preserve-3d;
  transition: transform .6s var(--ease), box-shadow .4s;
}
.card__media img, .card__media video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: top;
  transition: transform 1.2s var(--ease), opacity .5s;
}
.card__media video { opacity: 0; }
.card.is-playing .card__media video { opacity: 1; }
.card:hover .card__media img, .card:hover .card__media video { transform: scale(1.05); }
.card:hover .card__media { box-shadow: 0 0 0 1px #48484a; }
.card__glare {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(500px circle at var(--gx, 50%) var(--gy, 0%), rgba(255, 255, 255, .16), transparent 45%);
  opacity: 0; transition: opacity .4s;
}
.card:hover .card__glare { opacity: 1; }
.card__body { display: grid; gap: 4px; padding: 20px 6px 0; }
.card__kind { font-size: 12px; line-height: 16px; letter-spacing: -0.12px; color: var(--ash); }
.card__title { font-family: var(--font-display); font-size: 28px; font-weight: 600; line-height: 1.1; letter-spacing: 0.196px; }
.card__more { font-size: 14px; color: var(--link); }
.card__more b { font-weight: 400; display: inline-block; transition: transform .35s var(--ease); }
.card:hover .card__more b { transform: translateX(4px); }

.gallery__progress { margin-top: 48px; }
.gallery__progress span { display: block; height: 2px; border-radius: 2px; background: var(--steel); overflow: hidden; position: relative; }
.gallery__progress span::after { content: ""; position: absolute; inset: 0; background: var(--porcelain); transform: scaleX(var(--p, 0)); transform-origin: left; }

/* ---------- Texte masque ---------- */
.mask { position: relative; height: 320vh; }
.mask__pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.mask__wall {
  position: absolute; left: 50%; top: 50%;
  width: 150vw; height: 190vh;
  display: flex; gap: 18px; justify-content: center;
  transform: translate(-50%, -50%) rotate(-10deg);
}
.mask__col { display: flex; flex-direction: column; gap: 18px; width: 34vw; flex: none; will-change: transform; }
.mask__col img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: 18px; }
.mask__wall::after { content: ""; position: fixed; inset: 0; background: #000; opacity: var(--wall-dim, 0); pointer-events: none; }
.mask__cover {
  position: absolute; inset: -2px;
  display: grid; place-items: center;
  background: #000; color: #fff;
  mix-blend-mode: multiply;
  will-change: transform, opacity;
}
.mask__cover span {
  font-family: var(--font-display); font-weight: 800;
  font-size: 19.5vw; line-height: 1; letter-spacing: -0.05em;
  white-space: nowrap; transform: translateX(-0.02em);
}
.mask__after {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center;
  padding: 0 var(--gutter);
  opacity: 0; pointer-events: none;
}
.mask__after .eyebrow { color: var(--porcelain); }
.mask__after .display-3 { font-size: clamp(40px, 6vw, 80px); line-height: 1.05; }

/* ---------- Services ---------- */
.panel {
  border-radius: var(--r-card);
  background: var(--carbon-fade);
  box-shadow: var(--ring);
  padding: clamp(28px, 5vw, 64px);
}
.head--panel { margin-bottom: 56px; }
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.service { padding: 36px 32px 40px; min-height: 290px; }
.service__icon { width: 44px; height: 44px; fill: none; stroke: var(--porcelain); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 64px; transition: transform .6s var(--ease), stroke .3s; }
.service:hover .service__icon { transform: translateY(-4px) scale(1.08); stroke: var(--link); }
.service h3 { font-family: var(--font-display); font-size: 28px; font-weight: 600; line-height: 1.1; letter-spacing: 0.196px; }
.service p { margin-top: 12px; font-size: 17px; line-height: 1.47; color: var(--ash); }

/* ---------- Méthode ---------- */
.method__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.method__head { position: sticky; top: calc(var(--nav-h) + 72px); }
.method__head .display-2 { font-size: clamp(40px, 4.8vw, 64px); }
.steps { position: relative; padding-left: 56px; }
.steps__line { position: absolute; left: 14px; top: 10px; bottom: 10px; width: 2px; background: var(--steel); border-radius: 2px; overflow: hidden; }
.steps__line span { position: absolute; inset: 0; background: linear-gradient(var(--link), var(--blue)); transform: scaleY(var(--p, 0)); transform-origin: top; }
.step { position: relative; padding: 0 0 120px; }
.step:last-of-type { padding-bottom: 0; }
.step::before {
  content: ""; position: absolute; left: -49px; top: 6px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--obsidian); box-shadow: 0 0 0 2px var(--steel);
  transition: background-color .4s, box-shadow .4s;
}
.step.is-active::before { background: var(--link); box-shadow: 0 0 0 2px var(--link), 0 0 0 8px rgba(41, 151, 255, .18); }
.step__num { font-family: var(--font-display); font-size: 14px; font-weight: 600; color: var(--slate); transition: color .4s; }
.step.is-active .step__num { color: var(--link); }
.step h3 { margin-top: 8px; font-family: var(--font-display); font-size: clamp(28px, 3vw, 40px); font-weight: 600; line-height: 1.1; letter-spacing: -0.005em; color: var(--slate); transition: color .5s; }
.step.is-active h3 { color: var(--porcelain); }
.step p { margin-top: 14px; font-size: 19px; line-height: 1.42; color: var(--ash); max-width: 460px; }

/* ---------- Bandeau technologies ---------- */
.marquee { padding: 40px 0 140px; overflow: hidden; }
.marquee__row { overflow: hidden; }
.marquee__row + .marquee__row { margin-top: 8px; }
.marquee__inner { display: flex; width: max-content; will-change: transform; }
.marquee__inner span {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(48px, 7vw, 104px); line-height: 1.12; letter-spacing: -0.02em;
  padding-right: .6em; white-space: nowrap;
  color: var(--porcelain);
  transition: color .3s;
}
.marquee__inner span::after { content: "·"; margin-left: .6em; color: var(--steel); }
.marquee__row--alt .marquee__inner span { color: transparent; -webkit-text-stroke: 1px var(--slate); }
.marquee__row--alt .marquee__inner span:hover { color: var(--porcelain); -webkit-text-stroke-color: transparent; }
.marquee__row:not(.marquee__row--alt) .marquee__inner span:hover { color: var(--link); }

/* ---------- À propos ---------- */
.about__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 72px; align-items: center; }
.about__visual {
  position: relative; aspect-ratio: 4 / 5;
  border-radius: var(--r-card);
  background:
    radial-gradient(120% 80% at 50% 0%, #1d1d1f 0%, #000 70%);
  box-shadow: var(--ring);
  overflow: hidden;
  display: grid; place-items: center;
  transform: perspective(1200px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .7s var(--ease);
}
.about__badge { position: relative; z-index: 2; text-align: center; }
.about__age {
  display: block;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(140px, 18vw, 240px); line-height: .9; letter-spacing: -0.06em;
  background: linear-gradient(170deg, #ffffff 20%, #6e6e73 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.about__unit { font-family: var(--font-display); font-size: 28px; font-weight: 600; color: var(--ash); letter-spacing: 0.196px; }
.about__orbit { position: absolute; inset: 0; display: grid; place-items: center; }
.about__orbit span { position: absolute; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .07); animation: spin 22s linear infinite; }
.about__orbit span:nth-child(1) { width: 62%; aspect-ratio: 1; }
.about__orbit span:nth-child(2) { width: 84%; aspect-ratio: 1; animation-duration: 34s; animation-direction: reverse; }
.about__orbit span:nth-child(3) { width: 108%; aspect-ratio: 1; animation-duration: 48s; }
.about__orbit span::after { content: ""; position: absolute; top: 50%; left: -4px; width: 7px; height: 7px; border-radius: 50%; background: var(--link); box-shadow: 0 0 18px var(--link); }
.about__orbit span:nth-child(2)::after { background: var(--porcelain); box-shadow: 0 0 14px rgba(255, 255, 255, .6); left: auto; right: -4px; }
.about__orbit span:nth-child(3)::after { background: var(--yellow); box-shadow: 0 0 14px var(--yellow); top: 12%; left: 22%; }
@keyframes spin { to { transform: rotate(360deg); } }
.about__place { position: absolute; bottom: 24px; left: 0; right: 0; text-align: center; font-size: 12px; letter-spacing: -0.12px; color: var(--ash); }
.about__text .display-3 { margin-bottom: 28px; }
.facts { margin-top: 36px; border-top: 1px solid var(--steel); }
.facts li { padding: 16px 0; border-bottom: 1px solid var(--steel); font-size: 17px; color: var(--porcelain); display: grid; grid-template-columns: 130px 1fr; gap: 16px; }
.facts b { font-weight: 400; color: var(--ash); }

/* ---------- Contact ---------- */
.contact { padding-top: 40px; }
.contact__panel { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; }
.contact__intro .lead { margin-top: 24px; }
.contact__mail { display: inline-block; margin-top: 32px; word-break: break-all; }

.form { display: grid; gap: 16px; align-content: start; }
.form__chips { border: 0; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.form__chips legend { width: 100%; margin-bottom: 12px; font-size: 14px; color: var(--ash); letter-spacing: -0.224px; }
.form__chips label { position: relative; }
.form__chips input { position: absolute; opacity: 0; pointer-events: none; }
.form__chips span {
  display: inline-block; padding: 8px 16px; border-radius: var(--r-pill);
  box-shadow: var(--ring-2); font-size: 14px; color: var(--porcelain); letter-spacing: -0.224px;
  transition: background-color .3s, color .3s, box-shadow .3s;
}
.form__chips label:hover span { box-shadow: 0 0 0 1px var(--porcelain); }
.form__chips input:checked + span { background: var(--porcelain); color: #000; box-shadow: 0 0 0 1px var(--porcelain); }
.form__chips input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 8px; }
.field > span { font-size: 12px; letter-spacing: -0.12px; color: var(--ash); padding-left: 24px; }
.field input, .field textarea {
  width: 100%;
  padding: 14px 24px;
  border-radius: 980px;
  border: 1px solid var(--slate);
  background: rgba(255, 255, 255, .04);
  color: var(--porcelain);
  font-size: 17px; letter-spacing: -0.374px;
  transition: border-color .3s, background-color .3s;
}
.field textarea { border-radius: 24px; resize: vertical; min-height: 128px; }
.field input::placeholder, .field textarea::placeholder { color: #5b5b60; }
.field input:hover, .field textarea:hover { border-color: var(--ash); }
.field input:focus, .field textarea:focus { outline: 1px solid var(--blue); outline-offset: 1px; border-color: var(--blue); background: rgba(255, 255, 255, .06); }
.field.is-invalid input, .field.is-invalid textarea { border-color: #ff453a; }
.form__foot { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 8px; }
.form__note { font-size: 12px; color: var(--ash); letter-spacing: -0.12px; max-width: 280px; }
.form__note.is-error { color: #ff6961; }

/* ---------- Pied de page ---------- */
.footer { padding: 120px 0 40px; background: var(--obsidian); overflow: hidden; }
.footer__big {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(34px, 6.6vw, 104px); line-height: .95; letter-spacing: -0.045em;
  color: transparent; -webkit-text-stroke: 1px var(--steel);
  white-space: nowrap;
  margin-bottom: 72px;
}
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; padding-bottom: 40px; border-bottom: 1px solid #424245; }
.footer__cols h4 { font-size: 12px; font-weight: 600; color: var(--porcelain); letter-spacing: -0.12px; margin-bottom: 12px; }
.footer__cols a { display: block; width: fit-content; font-size: 12px; line-height: 2.1; color: var(--ash); letter-spacing: -0.12px; transition: color .3s; }
.footer__cols a:hover { color: var(--porcelain); text-decoration: underline; }
.footer__legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 20px; font-size: 12px; color: var(--ash); letter-spacing: -0.12px; }
.footer__top:hover { color: var(--porcelain); }

/* ---------- Apparitions ---------- */
.js .reveal { opacity: 0; transform: translateY(48px); }

/* ---------- Responsive ---------- */
@media (max-width: 1068px) {
  .metrics__grid { grid-template-columns: repeat(2, 1fr); }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .feature { grid-template-columns: 1fr; gap: 32px; padding: 36px; min-height: 0; }
  .feature__desc { max-width: none; }
  .about__grid { gap: 48px; }
}

@media (max-width: 834px) {
  :root { --gutter: 16px; }
  .section { padding: 112px 0; }
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: block; }
  .nav__brand span { font-size: 14px; }
  .hero { height: 260vh; }
  .hero__hint { display: none; }
  .hero__actions { flex-direction: column; gap: 10px; margin-top: 20px; }
  .laptop { --lw: 80vw; bottom: 16svh; }
  .head { margin-bottom: 48px; }
  .feature { position: relative; top: auto; padding: 24px; gap: 24px; }
  .feature .link { margin-top: 20px; }
  .stack { gap: 20px; }
  .gallery__track { overflow-x: auto; width: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: none; }
  .gallery__track::-webkit-scrollbar { display: none; }
  .card { width: 82vw; scroll-snap-align: center; }
  .gallery__progress { display: none; }
  .gallery__pin { min-height: 0; padding: 0; }
  .mask { height: 240vh; }
  .mask__col { width: 56vw; }
  .mask__cover span { font-size: 21vw; }
  .services__grid { grid-template-columns: 1fr; }
  .service { min-height: 0; }
  .service__icon { margin-bottom: 40px; }
  .method__grid { grid-template-columns: 1fr; gap: 48px; }
  .method__head { position: static; }
  .steps { padding-left: 44px; }
  .steps__line { left: 9px; }
  .step::before { left: -42px; }
  .step { padding-bottom: 64px; }
  .about__grid { grid-template-columns: 1fr; }
  .about__visual { aspect-ratio: 1 / 1; }
  .facts li { grid-template-columns: 1fr; gap: 2px; }
  .contact__panel { grid-template-columns: 1fr; gap: 40px; }
  .form__row { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .footer__cols > div:last-child { grid-column: 1 / -1; }
}

@media (max-width: 480px) {
  .metrics__grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .metric { padding: 24px 18px; min-height: 220px; border-radius: 22px; }
  .metric__visual { width: 40px; height: 40px; }
  .metric__value { font-size: 40px; margin-top: 28px; }
  .metric__label { font-size: 12px; }
  .strip { font-size: 12px; line-height: 17px; }
  .hero__sub { font-size: 16px; }
}

/* Mouvement réduit : tout est visible, rien n’est épinglé */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .hero, .mask { height: auto; }
  .hero__stage, .mask__pin { position: relative; height: auto; min-height: 100svh; padding-bottom: 120px; }
  .laptop__lid { transform: none; }
  .mask__cover { display: none; }
  .mask__after { opacity: 1; background: rgba(0, 0, 0, .6); }
  .feature { position: relative; top: auto; }
  .js .reveal { opacity: 1; transform: none; }
}
