/* MyDigitalSpot — landing. Aucune règle de style en ligne (CSP style-src 'self'). */

@font-face { font-family: "Space Grotesk"; font-style: normal; font-display: swap; font-weight: 300 700;
  src: url(/fonts/space-grotesk-latin-wght-normal.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: "Space Grotesk"; font-style: normal; font-display: swap; font-weight: 300 700;
  src: url(/fonts/space-grotesk-latin-ext-wght-normal.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; }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap;
  src: url(/fonts/instrument-serif-latin-400-italic.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: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap;
  src: url(/fonts/instrument-serif-latin-ext-400-italic.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/fonts/instrument-serif-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/fonts/jetbrains-mono-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 500; font-display: swap;
  src: url(/fonts/jetbrains-mono-latin-500-normal.woff2) format("woff2"); }

:root {
  --night: #050a09;
  --night-2: #0a1411;
  --night-3: #11201b;
  --ink: #eef2e8;
  --mute: rgba(238, 242, 232, .62);
  --line: rgba(238, 242, 232, .14);
  --yellow: #ffe600;
  --cyan: #8ff6ff;
  --leaf: #9ddc6a;
  --cream: #f4eedc;
  --cream-2: #e9e0c6;
  --forest: #10231b;
  --forest-mute: rgba(16, 35, 27, .66);
  --sans: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", ui-serif, Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --gutter: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --nav-h: 76px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: auto; }
html.no-lenis { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--night); color: var(--ink); font-family: var(--sans);
  font-size: clamp(16px, 1.05vw, 18px); line-height: 1.5; font-weight: 400;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden;
  text-rendering: optimizeLegibility;
}
img, video, svg, canvas { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--yellow); color: #000; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 4px; border-radius: 4px; }
.serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
.wrap { width: 100%; padding-inline: var(--gutter); margin-inline: auto; max-width: 1680px; }
.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 200; background: var(--yellow); color: #000; padding: 10px 16px; border-radius: 8px; font-weight: 600; }
.skip:focus { top: 12px; }

/* ---------- couches fixes ---------- */
.gl { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; opacity: 0; transition: opacity 1.2s var(--ease); }
.gl.is-on { opacity: 1; }
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(6) infinite;
}
@keyframes grain { 0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); } 60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); } }

/* ---------- loader ---------- */
.loader { display: none; }
.js .loader {
  display: flex; position: fixed; inset: 0; z-index: 150; background: var(--night); color: var(--ink);
  flex-direction: column; justify-content: flex-end; padding: var(--gutter);
}
.loader__inner { display: flex; justify-content: space-between; align-items: flex-end; }
.loader__mark { font-weight: 700; font-size: clamp(28px, 4vw, 56px); letter-spacing: -.04em; }
.loader__mark i, .brand__dot { color: var(--yellow); font-style: normal; }
.loader__count { font-family: var(--mono); font-size: clamp(48px, 12vw, 180px); font-weight: 500; line-height: .8; letter-spacing: -.06em; font-variant-numeric: tabular-nums; }
.loader__bar { height: 2px; margin-top: 24px; background: var(--line); overflow: hidden; }
.loader__bar i { display: block; height: 100%; width: 100%; background: var(--yellow); transform-origin: 0 50%; transform: scaleX(0); }
html.is-loaded .loader { pointer-events: none; }

/* ---------- curseur ---------- */
.cursor { display: none; }
.has-cursor .cursor { display: block; position: fixed; left: 0; top: 0; z-index: 160; pointer-events: none; }
.has-cursor, .has-cursor a, .has-cursor button, .has-cursor label { cursor: none; }
.has-cursor input, .has-cursor textarea, .has-cursor select { cursor: auto; }
.cursor__dot, .cursor__ring { position: fixed; left: 0; top: 0; border-radius: 50%; will-change: transform; }
.cursor__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--yellow); }
.cursor__ring {
  width: 40px; height: 40px; margin: -20px 0 0 -20px; border: 1px solid rgba(238, 242, 232, .55);
  display: grid; place-items: center; transition: width .45s var(--ease), height .45s var(--ease), margin .45s var(--ease), background .3s, border-color .3s;
}
.cursor.is-link .cursor__ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; border-color: var(--yellow); }
.cursor.is-label .cursor__ring { width: 96px; height: 96px; margin: -48px 0 0 -48px; background: var(--yellow); border-color: var(--yellow); }
.cursor__label { font-family: var(--mono); font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; color: #000; opacity: 0; transition: opacity .2s; }
.cursor.is-label .cursor__label { opacity: 1; }
.cursor.is-label .cursor__dot { opacity: 0; }
.cursor.is-hidden { opacity: 0; }
.cursor.on-light .cursor__ring { border-color: rgba(16, 35, 27, .55); }
.cursor.on-light .cursor__dot { background: var(--forest); }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--nav-h); display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding-inline: var(--gutter); transition: transform .6s var(--ease), background .4s, backdrop-filter .4s;
}
.nav.is-scrolled { background: rgba(5, 10, 9, .55); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3); }
.nav.is-hidden { transform: translateY(-110%); }
.nav.is-light { color: var(--forest); }
.nav.is-light.is-scrolled { background: rgba(244, 238, 220, .7); }
.brand { display: inline-flex; align-items: baseline; font-weight: 600; font-size: 19px; letter-spacing: -.03em; }
.brand__name b { font-weight: 700; }
.brand__dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--yellow); margin-left: 3px; }
.nav__links { display: flex; gap: clamp(16px, 2.4vw, 40px); font-size: 14px; }
.nav__links a { position: relative; padding-block: 6px; opacity: .78; transition: opacity .3s; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: 100% 50%; transition: transform .5s var(--ease); }
.nav__links a:hover { opacity: 1; }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: 0 50%; }
.nav__right { display: flex; align-items: center; gap: 14px; }
.lang { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; padding: 8px 6px; opacity: .7; transition: opacity .3s; }
.lang:hover { opacity: 1; }
.lang__on { color: var(--yellow); }
.nav.is-light .lang__on { color: var(--forest); font-weight: 500; text-decoration: underline; text-underline-offset: 4px; }
.lang__sep { opacity: .4; margin-inline: 4px; }

/* ---------- boutons ---------- */
.btn {
  --bg: transparent; position: relative; display: inline-flex; align-items: center; gap: 12px; height: 54px; padding: 0 26px;
  border-radius: 999px; font-weight: 500; font-size: 15px; letter-spacing: -.01em; overflow: hidden; isolation: isolate;
  background: var(--bg); transition: color .45s var(--ease), border-color .45s;
}
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; transform: translateY(101%); transition: transform .55s var(--ease); }
.btn:hover::before, .btn:focus-visible::before { transform: translateY(0); }
.btn--yellow { --bg: var(--yellow); color: #000; }
.btn--yellow::before { background: var(--ink); }
.btn--ghost { border: 1px solid rgba(238, 242, 232, .35); }
.btn--ghost::before { background: var(--ink); }
.btn--ghost:hover { color: #000; }
.btn--ghost-dark { border-color: rgba(16, 35, 27, .3); color: var(--forest); }
.btn--ghost-dark::before { background: var(--forest); }
.btn--ghost-dark:hover { color: var(--cream); }
.btn--pill { height: 42px; padding: 0 20px; font-size: 14px; border: 1px solid rgba(238, 242, 232, .3); }
.btn--pill::before { background: var(--yellow); }
.btn--pill:hover { color: #000; border-color: var(--yellow); }
.nav.is-light .btn--pill { border-color: rgba(16, 35, 27, .3); }
.btn--dark { --bg: var(--forest); color: var(--cream); }
.btn--dark::before { background: var(--yellow); }
.btn--dark:hover { color: #000; }
.btn__icon { width: 0; height: 0; border-left: 9px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.magnetic { will-change: transform; }

/* ---------- labels ---------- */
.label { display: flex; align-items: center; gap: 12px; margin: 0 0 28px; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: var(--mute); }
.label::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.label--light { color: rgba(255, 255, 255, .8); }
.label--dark { color: var(--forest-mute); }
.kicker { display: inline-flex; align-items: center; gap: 12px; margin: 0 0 clamp(18px, 3vh, 36px); font-family: var(--mono); font-size: clamp(11px, .9vw, 13px); letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.kicker__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 0 rgba(143, 246, 255, .6); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(143, 246, 255, .55); } 70% { box-shadow: 0 0 0 12px rgba(143, 246, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(143, 246, 255, 0); } }
.h2 { margin: 0; font-size: clamp(40px, 6.4vw, 112px); line-height: .95; letter-spacing: -.045em; font-weight: 600; max-width: 14ch; }

/* split : mots insécables, lettres animables */
.word { display: inline-block; white-space: nowrap; }
.char { display: inline-block; will-change: transform; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding-top: var(--nav-h); overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: 0; overflow: hidden; background: #0b1530 url(/media/hero-poster.webp) 60% 50% / cover no-repeat; }
@media (max-width: 900px) { .hero__media { background-image: url(/media/hero-poster-sm.webp); background-position: 64% 50%; } }
.hero__video { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s; object-position: 60% 50%; transform-origin: 60% 50%; }
.hero__video.is-playing { opacity: 1; }
.hero__shade {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 78% 40%, rgba(5, 10, 9, 0) 0%, rgba(5, 10, 9, .35) 55%, rgba(5, 10, 9, .9) 100%),
    linear-gradient(90deg, rgba(5, 10, 9, .92) 0%, rgba(5, 10, 9, .55) 38%, rgba(5, 10, 9, .05) 70%),
    linear-gradient(0deg, var(--night) 0%, rgba(5, 10, 9, 0) 30%);
}
.hero__content { position: relative; z-index: 3; padding-bottom: clamp(36px, 7vh, 96px); }
.hero__title { margin: 0; font-weight: 600; font-size: clamp(54px, 10.4vw, 188px); line-height: .9; letter-spacing: -.055em; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.hero__title .line--serif { padding-right: .1em; }
.hero__title .serif { color: var(--yellow); letter-spacing: -.03em; font-size: 1.06em; line-height: .86; }
.hero__lead { max-width: 34ch; margin: clamp(22px, 3.4vh, 40px) 0 0; font-size: clamp(17px, 1.35vw, 22px); line-height: 1.45; color: rgba(238, 242, 232, .82); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(24px, 4vh, 44px); }
.hero__foot { position: relative; z-index: 3; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-bottom: 22px; font-family: var(--mono); font-size: 12px; color: var(--mute); letter-spacing: .06em; }
.scrollcue { display: inline-flex; align-items: center; gap: 12px; text-transform: uppercase; letter-spacing: .14em; }
.scrollcue i { position: relative; width: 1px; height: 44px; background: var(--line); overflow: hidden; }
.scrollcue i::after { content: ""; position: absolute; left: 0; top: -40%; width: 100%; height: 40%; background: var(--yellow); animation: cue 2s var(--ease) infinite; }
@keyframes cue { to { top: 100%; } }
.hero__now { display: inline-flex; align-items: center; gap: 10px; }
.hero__now b { color: var(--ink); font-weight: 500; }
.eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.eq i { width: 2px; height: 100%; background: var(--cyan); transform-origin: 50% 100%; animation: eq 1s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -.4s; }
.eq i:nth-child(3) { animation-delay: -.7s; }
@keyframes eq { 0%, 100% { transform: scaleY(.25); } 50% { transform: scaleY(1); } }

/* ---------- manifeste ---------- */
.manifesto { position: relative; z-index: 3; padding: clamp(120px, 22vh, 260px) 0 clamp(100px, 18vh, 220px); }
.manifesto__text { margin: 0; max-width: 22ch; font-size: clamp(34px, 5.3vw, 96px); line-height: 1.02; letter-spacing: -.04em; font-weight: 500; }
.manifesto__text em { font-family: var(--serif); font-weight: 400; font-style: italic; color: var(--cyan); letter-spacing: -.01em; }
.manifesto__text .w { display: inline; }
.js .manifesto__text .w { opacity: .14; }

/* ---------- film ---------- */
.film { position: relative; z-index: 3; }
.film__pin { position: relative; height: 100vh; height: 100svh; overflow: hidden; }
.film__frame { position: absolute; inset: 0; overflow: hidden; background: #000; }
.js .film__frame { clip-path: inset(14% 18% 14% 18% round 28px); }
.film__poster, .film__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.film__video { object-fit: contain; background: #000; z-index: 4; }
.film__poster { transform-origin: 50% 50%; }
.film__ui {
  position: absolute; inset: 0; z-index: 3; display: grid; grid-template-rows: auto 1fr auto; padding: calc(var(--nav-h) + 16px) var(--gutter) 28px;
  background: linear-gradient(180deg, rgba(5, 10, 9, .5) 0%, rgba(5, 10, 9, 0) 28%, rgba(5, 10, 9, 0) 50%, rgba(5, 10, 9, .78) 100%);
  transition: opacity .6s var(--ease);
}
.film.is-playing .film__ui { opacity: 0; pointer-events: none; }
.film__title { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 64px; margin: 0; text-align: left; font-size: clamp(48px, 8.4vw, 168px); line-height: .9; letter-spacing: -.05em; font-weight: 600; color: #fff; text-shadow: 0 10px 50px rgba(0, 0, 0, .45); pointer-events: none; }
.film__title .serif { font-size: 1.05em; }
.film__play {
  position: absolute; left: 50%; top: 50%; width: clamp(110px, 11vw, 168px); aspect-ratio: 1; margin: calc(clamp(110px, 11vw, 168px) / -2) 0 0 calc(clamp(110px, 11vw, 168px) / -2);
  border-radius: 50%; display: grid; place-items: center; color: #000; z-index: 2;
}
.film__play-ring { position: absolute; inset: 0; border-radius: 50%; background: var(--yellow); transition: transform .5s var(--ease); }
.film__play:hover .film__play-ring { transform: scale(1.12); }
.film__play-ico { position: relative; width: 0; height: 0; border-left: 20px solid #000; border-top: 13px solid transparent; border-bottom: 13px solid transparent; margin-left: 6px; }
.film__play-txt { position: absolute; bottom: 22%; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.film__meta { grid-row: 3; display: flex; justify-content: space-between; gap: 16px; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; color: rgba(255, 255, 255, .85); }

/* ---------- savoir-faire ---------- */
.skills { position: relative; z-index: 3; }
.skills__pin { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; gap: clamp(28px, 5vh, 56px); padding-block: clamp(90px, 12vh, 140px) 40px; overflow: hidden; }
.skills__viewport { overflow: visible; }
.skills__track { display: flex; gap: clamp(16px, 2vw, 28px); padding-inline: var(--gutter); width: max-content; will-change: transform; }
.skill {
  position: relative; flex: 0 0 auto; width: clamp(300px, 34vw, 520px); display: flex; flex-direction: column; border-radius: 26px; overflow: hidden;
  background: linear-gradient(160deg, rgba(17, 32, 27, .9), rgba(8, 15, 13, .92)); border: 1px solid var(--line);
  transition: border-color .4s, transform .6s var(--ease);
}
.skill:hover { border-color: rgba(255, 230, 0, .45); }
.skill__vis { position: relative; height: clamp(190px, 26vh, 280px); overflow: hidden; border-bottom: 1px solid var(--line); background: radial-gradient(80% 90% at 50% 100%, rgba(143, 246, 255, .12), transparent 70%); }
.skill__body { padding: 26px 28px 30px; }
.skill__num { font-family: var(--mono); font-size: 12px; color: var(--yellow); letter-spacing: .1em; }
.skill h3 { margin: 10px 0 10px; font-size: clamp(24px, 2.1vw, 34px); line-height: 1.02; letter-spacing: -.035em; font-weight: 600; }
.skill p { margin: 0 0 20px; color: var(--mute); max-width: 36ch; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tags li { font-family: var(--mono); font-size: 11px; letter-spacing: .04em; padding: 6px 11px; border: 1px solid var(--line); border-radius: 999px; color: rgba(238, 242, 232, .8); }
.skills__progress { height: 2px; }
.skills__progress i { display: block; height: 2px; background: var(--yellow); transform-origin: 0 50%; transform: scaleX(0); }

/* visuels des cartes */
.vis-cube { display: grid; place-items: center; perspective: 700px; }
.cube { position: relative; width: 104px; height: 104px; transform-style: preserve-3d; animation: spin 14s linear infinite; }
.cube i { position: absolute; inset: 0; border: 1px solid rgba(143, 246, 255, .75); background: linear-gradient(135deg, rgba(143, 246, 255, .14), rgba(143, 246, 255, .02)); background-size: 13px 13px; }
.cube i { background-image: linear-gradient(rgba(143, 246, 255, .18) 1px, transparent 1px), linear-gradient(90deg, rgba(143, 246, 255, .18) 1px, transparent 1px); }
.cube i:nth-child(1) { transform: translateZ(52px); }
.cube i:nth-child(2) { transform: rotateY(180deg) translateZ(52px); }
.cube i:nth-child(3) { transform: rotateY(90deg) translateZ(52px); }
.cube i:nth-child(4) { transform: rotateY(-90deg) translateZ(52px); }
.cube i:nth-child(5) { transform: rotateX(90deg) translateZ(52px); border-color: var(--yellow); }
.cube i:nth-child(6) { transform: rotateX(-90deg) translateZ(52px); }
@keyframes spin { from { transform: rotateX(-24deg) rotateY(0); } to { transform: rotateX(-24deg) rotateY(360deg); } }
.vis-strip { display: flex; align-items: center; }
.strip { display: flex; gap: 10px; width: max-content; animation: strip 22s linear infinite; }
.strip img { width: 200px; height: 112px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
@keyframes strip { to { transform: translateX(-50%); } }
.vis-term { display: grid; place-items: center; }
.miniterm { margin: 0; font-family: var(--mono); font-size: 12.5px; line-height: 1.75; color: rgba(238, 242, 232, .85); }
.miniterm b { color: var(--yellow); font-weight: 500; }
.miniterm u { text-decoration: none; color: var(--cyan); }
.miniterm span { display: block; opacity: .85; }
.caret, .term__caret { display: inline-block; width: 8px; height: 15px; background: var(--yellow); vertical-align: -2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.vis-eq { display: grid; place-items: center; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 120px; }
.bars i { width: 7px; height: 100%; border-radius: 4px; background: linear-gradient(0deg, var(--leaf), var(--cyan)); transform-origin: 50% 100%; animation: eq 1.3s ease-in-out infinite; }
.bars i:nth-child(3n) { animation-duration: .9s; }
.bars i:nth-child(4n+1) { animation-duration: 1.6s; animation-delay: -.5s; }
.bars i:nth-child(5n+2) { animation-delay: -.8s; }
.bars i:nth-child(7n) { background: linear-gradient(0deg, var(--yellow), #fff); }
.vis-graph { display: grid; place-items: center; }
.graph { width: 82%; height: auto; overflow: visible; }
.graph__l { fill: none; stroke: rgba(238, 242, 232, .22); stroke-width: 1.5; }
.graph__p { fill: none; stroke: var(--yellow); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 26 400; animation: flow 2.6s linear infinite; }
.graph__p--2 { stroke: var(--cyan); animation-delay: -1.3s; }
@keyframes flow { from { stroke-dashoffset: 26; } to { stroke-dashoffset: -340; } }
.graph circle { fill: var(--night-3); stroke: rgba(238, 242, 232, .6); stroke-width: 1.5; }
.graph .graph__end { fill: var(--yellow); stroke: none; }
.vis-game { display: grid; place-items: center; background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .03) 0 2px, transparent 2px 4px), radial-gradient(70% 80% at 50% 60%, rgba(255, 230, 0, .16), transparent 70%); }
.game { position: relative; display: grid; place-items: center; gap: 18px; }
.game__pow { font-weight: 700; font-size: 58px; letter-spacing: -.04em; color: var(--yellow); -webkit-text-stroke: 2px #000; text-shadow: 5px 5px 0 #e2412e; transform: rotate(-8deg); animation: pow 1.8s var(--ease) infinite; }
@keyframes pow { 0%, 100% { transform: rotate(-8deg) scale(1); } 12% { transform: rotate(-4deg) scale(1.18); } 24% { transform: rotate(-8deg) scale(1); } }
.game__start { font-family: var(--mono); font-size: 12px; letter-spacing: .2em; animation: blink 1.2s steps(1) infinite; }
.game__hp { width: 160px; height: 8px; border: 1px solid var(--ink); background: linear-gradient(90deg, var(--leaf) 70%, transparent 70%); }

/* ---------- chiffres ---------- */
.stats { position: relative; z-index: 3; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; padding-block: clamp(70px, 12vh, 140px); }
.stat { padding: 28px clamp(10px, 2vw, 28px) 10px; border-left: 1px solid var(--line); }
.stat__n { display: block; font-size: clamp(48px, 7vw, 124px); line-height: .9; letter-spacing: -.06em; font-weight: 600; font-variant-numeric: tabular-nums; }
.stat:nth-child(2) .stat__n { color: var(--yellow); }
.stat__l { display: block; margin-top: 14px; max-width: 18ch; color: var(--mute); font-size: 15px; }

/* ---------- univers ---------- */
.worlds { position: relative; z-index: 3; padding-block: clamp(80px, 14vh, 160px) clamp(60px, 10vh, 120px); }
.worlds__head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 24px 48px; }
.worlds__head .label { grid-column: 1 / -1; margin-bottom: 0; }
.worlds__lead { margin: 0; max-width: 32ch; color: var(--mute); }
.worlds__grid { display: flex; gap: 10px; height: clamp(380px, 68vh, 720px); margin-top: clamp(36px, 6vh, 64px); padding-inline: var(--gutter); }
.world {
  position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; border-radius: 22px; background: var(--night-3); text-align: left;
  transition: flex-grow .9s var(--ease), filter .6s; isolation: isolate;
}
.world.is-active { flex-grow: 5; }
.world img, .world video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), opacity .6s; }
.world video { opacity: 0; }
.world.is-playing video { opacity: 1; }
.world:not(.is-active) img { transform: scale(1.25); }
.world::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 10, 9, .1) 40%, rgba(5, 10, 9, .85) 100%); z-index: 1; }
.world:not(.is-active)::after { background: rgba(5, 10, 9, .55); }
.world__n, .world__name { position: absolute; z-index: 2; left: 22px; }
.world__n { top: 20px; font-family: var(--mono); font-size: 12px; color: var(--yellow); }
.world__name { bottom: 22px; font-size: clamp(22px, 2.4vw, 40px); font-weight: 600; letter-spacing: -.04em; line-height: 1; white-space: nowrap; transition: opacity .5s, transform .7s var(--ease); }
.world:not(.is-active) .world__name { opacity: 0; transform: translateY(16px); }

/* ---------- bandeau défilant ---------- */
.marquee { position: relative; z-index: 3; padding-block: clamp(30px, 6vh, 70px); overflow: hidden; border-block: 1px solid var(--line); }
.marquee__row { display: flex; overflow: hidden; }
.marquee__inner { display: flex; flex: 0 0 auto; align-items: center; gap: clamp(20px, 3vw, 48px); padding-right: clamp(20px, 3vw, 48px); font-size: clamp(44px, 8vw, 150px); line-height: 1.05; letter-spacing: -.05em; font-weight: 600; white-space: nowrap; will-change: transform; }
.marquee__inner i { font-style: normal; color: var(--yellow); font-size: .45em; }
.marquee__row--rev .marquee__inner { color: transparent; -webkit-text-stroke: 1px rgba(238, 242, 232, .5); }
.marquee__row--rev .marquee__inner .serif { color: var(--cyan); -webkit-text-stroke: 0; }
.no-js .marquee__inner, .reduced .marquee__inner { animation: none; }

/* ---------- méthode ---------- */
.method { position: relative; z-index: 3; padding-block: clamp(100px, 16vh, 200px); }
.method__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 90px); margin-top: clamp(40px, 7vh, 80px); align-items: start; }
.method__term { position: sticky; top: calc(var(--nav-h) + 24px); }
.term { border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: rgba(6, 12, 10, .9); box-shadow: 0 40px 120px -40px rgba(143, 246, 255, .25); }
.term__bar { display: flex; align-items: center; gap: 8px; padding: 14px 16px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 12px; color: var(--mute); }
.term__bar i { width: 11px; height: 11px; border-radius: 50%; background: #3a4642; }
.term__bar i:first-child { background: #e2574c; }
.term__bar i:nth-child(2) { background: #e5c33a; }
.term__bar i:nth-child(3) { background: #5fbf5a; }
.term__bar span { margin-left: 10px; }
.term__body { margin: 0; min-height: 300px; padding: 22px 22px 26px; font-family: var(--mono); font-size: clamp(12px, .95vw, 14.5px); line-height: 1.85; white-space: pre-wrap; word-break: break-word; color: rgba(238, 242, 232, .85); }
.term__body span { display: block; }
.term__body .t-cmd { color: var(--ink); }
.term__body .t-cmd b { color: var(--yellow); font-weight: 500; }
.term__body .t-ok { color: var(--leaf); }
.term__body .t-end { color: var(--yellow); }
.method__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.step { position: sticky; top: calc(var(--nav-h) + 24px); padding: clamp(26px, 3vw, 40px); border-radius: 22px; background: linear-gradient(160deg, #13261f, #0b1613); border: 1px solid var(--line); transform-origin: 50% 0; min-height: 230px; }
.step:nth-child(2) { top: calc(var(--nav-h) + 48px); background: linear-gradient(160deg, #183028, #0d1a16); }
.step:nth-child(3) { top: calc(var(--nav-h) + 72px); background: var(--yellow); color: #000; border-color: var(--yellow); }
.step__n { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; color: var(--yellow); }
.step:nth-child(3) .step__n { color: #000; }
.step h3 { margin: 16px 0 10px; font-size: clamp(30px, 3vw, 52px); letter-spacing: -.045em; line-height: 1; font-weight: 600; }
.step p { margin: 0; max-width: 34ch; color: var(--mute); font-size: clamp(16px, 1.15vw, 19px); }
.step:nth-child(3) p { color: rgba(0, 0, 0, .72); }

/* ---------- contact (aube) ---------- */
.contact { position: relative; color: var(--forest); background: var(--cream); padding-block: clamp(110px, 16vh, 190px) clamp(80px, 12vh, 140px); overflow: hidden; }
.contact::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 14vh; background: linear-gradient(180deg, var(--night) 0%, rgba(5, 10, 9, .4) 40%, rgba(244, 238, 220, 0) 100%); z-index: 1; pointer-events: none; }
.contact__bg { position: absolute; inset: 0; z-index: 0; }
.contact__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%; opacity: .5; }
.contact__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(244, 238, 220, .96) 0%, rgba(244, 238, 220, .86) 45%, rgba(244, 238, 220, .55) 100%); }
.contact__grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr minmax(320px, 560px); gap: clamp(36px, 6vw, 110px); align-items: end; }
.contact__title { margin: 0; font-size: clamp(54px, 8.6vw, 160px); line-height: .9; letter-spacing: -.055em; font-weight: 600; }
.contact__title .serif { display: block; color: #1f6b4a; font-size: 1.04em; }
.contact__lead { margin: 28px 0 22px; max-width: 30ch; font-size: clamp(18px, 1.4vw, 22px); color: var(--forest-mute); }
.link-arrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; border-bottom: 1px solid currentColor; padding-bottom: 4px; }
.link-arrow::after { content: "↗"; transition: transform .4s var(--ease); }
.link-arrow:hover::after { transform: translate(3px, -3px); }

.form { display: grid; gap: 14px; padding: clamp(22px, 2.6vw, 36px); border-radius: 26px; background: rgba(255, 252, 242, .72); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border: 1px solid rgba(16, 35, 27, .12); box-shadow: 0 30px 90px -40px rgba(16, 35, 27, .35); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field { position: relative; }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; font-size: 16px; color: var(--forest); background: rgba(255, 255, 255, .7); border: 1px solid rgba(16, 35, 27, .18);
  border-radius: 14px; padding: 24px 16px 10px; outline: none; transition: border-color .3s, box-shadow .3s, background .3s; -webkit-appearance: none; appearance: none;
}
.field textarea { resize: vertical; min-height: 140px; }
.field select { padding-right: 44px; background-image: linear-gradient(45deg, transparent 50%, var(--forest) 50%), linear-gradient(135deg, var(--forest) 50%, transparent 50%); background-position: calc(100% - 22px) 55%, calc(100% - 16px) 55%; background-size: 6px 6px; background-repeat: no-repeat; }
.field label { position: absolute; left: 17px; top: 17px; font-size: 16px; color: var(--forest-mute); pointer-events: none; transform-origin: 0 0; transition: transform .35s var(--ease), color .3s; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--forest); box-shadow: 0 0 0 4px rgba(31, 107, 74, .14); background: #fff; }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label,
.field--select label { transform: translateY(-10px) scale(.74); }
.field.is-invalid input, .field.is-invalid textarea, .field.is-invalid select { border-color: #c2412d; box-shadow: 0 0 0 4px rgba(194, 65, 45, .12); }
.check { position: relative; display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.45; color: var(--forest-mute); cursor: pointer; }
.check input { position: absolute; opacity: 0; width: 22px; height: 22px; margin: 0; }
.check__box { flex: 0 0 22px; width: 22px; height: 22px; border-radius: 7px; border: 1px solid rgba(16, 35, 27, .35); background: #fff; display: grid; place-items: center; transition: background .3s, border-color .3s; }
.check__box::after { content: ""; width: 10px; height: 6px; border-left: 2px solid var(--yellow); border-bottom: 2px solid var(--yellow); transform: rotate(-45deg) scale(0); margin-top: -2px; transition: transform .3s var(--ease); }
.check input:checked + .check__box { background: var(--forest); border-color: var(--forest); }
.check input:checked + .check__box::after { transform: rotate(-45deg) scale(1); }
.check input:focus-visible + .check__box { outline: 2px solid var(--forest); outline-offset: 3px; }
.check.is-invalid .check__box { border-color: #c2412d; box-shadow: 0 0 0 4px rgba(194, 65, 45, .12); }
.check a { text-decoration: underline; text-underline-offset: 3px; }
.btn--submit { justify-self: start; height: 58px; padding: 0 30px; }
.btn--submit[disabled] { opacity: .6; pointer-events: none; }
.btn__arrow { transition: transform .4s var(--ease); }
.btn--submit:hover .btn__arrow { transform: translateX(4px); }
.form__status { min-height: 1.5em; margin: 0; font-size: 15px; font-weight: 500; }
.form__status.is-ok { color: #1f6b4a; }
.form__status.is-err { color: #b03a26; }
.form.is-sent .field, .form.is-sent .check, .form.is-sent .btn--submit { opacity: .35; pointer-events: none; }

/* ---------- pied ---------- */
.foot { position: relative; z-index: 3; background: var(--cream-2); color: var(--forest); padding-top: clamp(50px, 8vh, 90px); overflow: hidden; }
.foot__top { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.foot__line { margin: 0; max-width: 40ch; font-size: clamp(17px, 1.3vw, 21px); }
.foot__word { overflow: hidden; display: flex; align-items: baseline; justify-content: center; padding: clamp(20px, 5vh, 50px) var(--gutter) 0; font-size: clamp(56px, 16.4vw, 330px); line-height: .82; letter-spacing: -.065em; font-weight: 700; white-space: nowrap; }
.foot__word .serif { font-weight: 400; color: #1f6b4a; letter-spacing: -.04em; }
.foot__word .brand__dot { width: .12em; height: .12em; margin-left: .03em; }
.foot__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; padding-block: 26px 30px; font-family: var(--mono); font-size: 12px; color: var(--forest-mute); border-top: 1px solid rgba(16, 35, 27, .14); margin-top: clamp(16px, 3vh, 30px); }
.foot__bottom a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- états initiaux (JS uniquement) ---------- */
.js [data-intro] { opacity: 0; }
.js .hero__title { opacity: 0; }
.reduced [data-intro] { opacity: 1; }
.reduced .hero__title { opacity: 1; }

.reduced .skills__track { width: auto; flex-wrap: wrap; }
.reduced .skill { width: min(100%, 520px); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .method__grid { grid-template-columns: 1fr; }
  .method__term { position: relative; top: 0; }
  .contact__grid { grid-template-columns: 1fr; align-items: start; }
}
@media (max-width: 900px) {
  :root { --nav-h: 64px; }
  .nav__links { display: none; }
  .hero__shade { background: linear-gradient(0deg, rgba(5, 10, 9, .96) 0%, rgba(5, 10, 9, .6) 45%, rgba(5, 10, 9, .25) 100%); }
  .hero__video { object-position: 64% 50%; }
  .skills__pin { min-height: 0; }
  .skills__track { width: auto; flex-direction: column; }
  .skill { width: 100%; }
  .skill__vis { height: 180px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3), .stat:nth-child(4) { border-top: 1px solid var(--line); }
  .worlds__head { grid-template-columns: 1fr; }
  .worlds__grid { height: auto; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; padding-bottom: 8px; scrollbar-width: none; }
  .worlds__grid::-webkit-scrollbar { display: none; }
  .world, .world.is-active { flex: 0 0 82%; aspect-ratio: 4 / 5; scroll-snap-align: center; }
  .world:not(.is-active) img { transform: none; }
  .world:not(.is-active)::after { background: linear-gradient(180deg, rgba(5, 10, 9, .1) 40%, rgba(5, 10, 9, .85) 100%); }
  .world:not(.is-active) .world__name { opacity: 1; transform: none; }
  .film__meta { flex-direction: column; gap: 4px; }
  .film__title { bottom: 96px; }
  .hero__title { font-size: clamp(54px, 16vw, 120px); }
  .js .film__frame { clip-path: inset(22% 6% 22% 6% round 22px); }
  .step { position: relative; top: 0; min-height: 0; }
  .step:nth-child(2), .step:nth-child(3) { top: 0; }
}
@media (max-width: 560px) {
  .nav .btn--pill { display: none; }
  .hero__foot .hero__now { display: none; }
  .hero__ctas .btn { flex: 1 1 auto; justify-content: center; }
  .label { margin-bottom: 20px; }
  .skill__body { padding: 22px 22px 24px; }
  .stat__l { font-size: 14px; }
  .term__body { min-height: 260px; padding: 18px; }
  .foot__word { justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .grain { display: none; }
  .js .manifesto__text .w { opacity: 1; }
  .js .film__frame { clip-path: none; }
}

/* ---------- pages simples (mentions, 404) ---------- */
.legal-page { background: var(--cream); color: var(--forest); }
.legal-page .nav { color: var(--forest); background: rgba(244, 238, 220, .8); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.legal-page .btn--pill { border-color: rgba(16, 35, 27, .3); }
.legal-page .label { color: var(--forest-mute); }
.legal { max-width: 860px; padding-top: calc(var(--nav-h) + 70px); padding-bottom: 90px; font-size: 17px; line-height: 1.65; }
.legal h1 { margin: 0 0 40px; font-size: clamp(44px, 7vw, 96px); line-height: .95; letter-spacing: -.05em; font-weight: 600; }
.legal h2 { margin: 44px 0 12px; font-size: 24px; letter-spacing: -.03em; font-weight: 600; }
.legal a { text-decoration: underline; text-underline-offset: 3px; }
.legal hr { margin: 60px 0 0; border: 0; border-top: 1px solid rgba(16, 35, 27, .16); }
.foot--legal { padding-top: 0; }
.notfound { min-height: 100vh; display: grid; place-content: center; text-align: center; gap: 22px; padding: var(--gutter); }
.notfound h1 { margin: 0; font-size: clamp(90px, 22vw, 300px); line-height: .8; letter-spacing: -.07em; font-weight: 700; }
.notfound h1 em { color: var(--yellow); }
.notfound p { margin: 0; color: var(--mute); font-size: 19px; }
.notfound .btn { justify-self: center; }

/* Lenis (règles recommandées) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.hero__shade::after { content: ""; position: absolute; left: 69%; top: 47%; width: 46vw; height: 46vw; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(143, 246, 255, .16), rgba(143, 246, 255, .05) 55%, transparent 100%); pointer-events: none; }
@media (max-width: 900px) { .hero__shade::after { left: 50%; top: 32%; width: 110vw; height: 110vw; } }
