/* ============================================================
   Portfolio — Yaya Yarbanga
   Palette du logo : bleu nuit + orange
   ============================================================ */

:root {
  --bg: #f6f4f0;
  --bg-alt: #eeeae3;
  --surface: #ffffff;
  --surface-2: #faf8f5;
  --text: #121933;
  --muted: #5a6178;
  --line: #e3ded4;
  --ink: #0f1b3d;
  --ink-text: #f6f4f0;
  --accent: #e2561d;
  --accent-2: #ff9d55;
  --blue: #2a3f86;
  --accent-ink: #ffffff;
  --grad: linear-gradient(120deg, #e2561d 0%, #ff9d55 55%, #ffc48a 100%);
  --shadow: 0 1px 2px rgb(15 27 61 / .05), 0 10px 30px -10px rgb(15 27 61 / .16);
  --shadow-lg: 0 30px 60px -20px rgb(15 27 61 / .35);
  --radius: 20px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, sans-serif;
  --hero-1: #fff3ea;
  --hero-2: #eef1fb;
  --grid-line: rgb(15 27 61 / .07);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #070c1a;
    --bg-alt: #0b1226;
    --surface: #111a33;
    --surface-2: #0e162d;
    --text: #e9ecf5;
    --muted: #98a1b9;
    --line: #1f2a4c;
    --ink: #e9ecf5;
    --ink-text: #070c1a;
    --accent: #f27a3c;
    --accent-2: #ffad6b;
    --blue: #5b8cff;
    --accent-ink: #1a0b03;
    --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 14px 34px -12px rgb(0 0 0 / .6);
    --shadow-lg: 0 34px 70px -24px rgb(0 0 0 / .8);
    --hero-1: #1b1230;
    --hero-2: #071431;
    --grid-line: rgb(120 150 255 / .09);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #070c1a;
  --bg-alt: #0b1226;
  --surface: #111a33;
  --surface-2: #0e162d;
  --text: #e9ecf5;
  --muted: #98a1b9;
  --line: #1f2a4c;
  --ink: #e9ecf5;
  --ink-text: #070c1a;
  --accent: #f27a3c;
  --accent-2: #ffad6b;
  --blue: #5b8cff;
  --accent-ink: #1a0b03;
  --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 14px 34px -12px rgb(0 0 0 / .6);
  --shadow-lg: 0 34px 70px -24px rgb(0 0 0 / .8);
  --hero-1: #1b1230;
  --hero-2: #071431;
  --grid-line: rgb(120 150 255 / .09);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 1rem/1.65 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
html, body { overflow-x: clip; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.015em; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 750; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--accent); color: #fff; }

.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.kicker {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: .8rem;
}
.kicker::before { content: ""; width: 26px; height: 2px; border-radius: 2px; background: var(--grad); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 8px; z-index: 200; }
.skip:focus { left: 8px; }

/* ---------- Préchargement (cube 3D CSS) ---------- */
.loader {
  position: fixed; inset: 0; z-index: 300; display: grid; place-content: center; justify-items: center; gap: 1.6rem;
  background: #070c1a; transition: opacity .7s ease, visibility .7s;
}
.loader.is-done { opacity: 0; visibility: hidden; }
.loader__name { margin: 0; color: #e9ecf5; font: 600 1.05rem var(--font-display); letter-spacing: .3em; text-transform: uppercase; }
.loader__name b { color: #ff9d55; font-weight: 700; }
.loader__cube, .cube3d__inner { --s: 64px; position: relative; width: var(--s); height: var(--s); transform-style: preserve-3d; animation: cubeSpin 2.4s cubic-bezier(.65,0,.35,1) infinite; }
.f { position: absolute; inset: 0; border-radius: 4px; backface-visibility: visible; box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / .55), 0 0 18px rgb(242 122 60 / .25); }
.f--front  { transform: translateZ(calc(var(--s) / 2)); background: linear-gradient(160deg, #16244f, #0a1230); }
.f--back   { transform: rotateY(180deg) translateZ(calc(var(--s) / 2)); background: #14224d; }
.f--left   { transform: rotateY(-90deg) translateZ(calc(var(--s) / 2)); background: linear-gradient(160deg, #2a3f86, #14224d); }
.f--right  { transform: rotateY(90deg) translateZ(calc(var(--s) / 2)); background: linear-gradient(160deg, #16244f, #0a1230); }
.f--top    { transform: rotateX(90deg) translateZ(calc(var(--s) / 2)); background: linear-gradient(135deg, #ffb36b, #e2561d); }
.f--bottom { transform: rotateX(-90deg) translateZ(calc(var(--s) / 2)); background: #c4501a; }
@keyframes cubeSpin {
  0%   { transform: rotateX(-35.26deg) rotateY(45deg); }
  100% { transform: rotateX(-35.26deg) rotateY(405deg); }
}

.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 120; background: var(--grad); transform-origin: 0 50%; transform: scaleX(0); }
.glow {
  position: fixed; left: -300px; top: -300px; width: 600px; height: 600px; border-radius: 50%; pointer-events: none; z-index: 0;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 12%, transparent), transparent 60%);
  opacity: 0; transition: opacity .6s;
}
.glow.is-on { opacity: 1; }
main, .footer { position: relative; z-index: 1; }

/* ---------- Boutons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .9rem 1.5rem; border-radius: 999px; font: inherit; font-weight: 650; text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent; transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s, background .25s, color .25s, border-color .25s;
}
.btn--primary { background: var(--grad); color: #fff; box-shadow: 0 12px 28px -10px color-mix(in srgb, var(--accent) 80%, transparent); }
.btn--primary:hover { box-shadow: 0 18px 36px -10px color-mix(in srgb, var(--accent) 90%, transparent); }
.btn--ghost { border-color: var(--line); color: var(--text); background: color-mix(in srgb, var(--surface) 80%, transparent); backdrop-filter: blur(8px); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--sm { padding: .6rem 1.1rem; font-size: .9rem; }

.icon-btn {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; transition: border-color .2s, color .2s, transform .2s;
}
.icon-btn:hover { border-color: var(--accent); color: var(--accent); transform: rotate(-8deg); }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s;
}
.nav.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px -12px rgb(0 0 0 / .2); }
.nav__inner { display: flex; align-items: center; gap: 1rem; height: 72px; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; margin-right: auto; }
.brand__logo { width: 38px; height: 38px; transition: transform .6s cubic-bezier(.2,.8,.2,1); filter: drop-shadow(0 6px 10px rgb(226 86 29 / .3)); }
.brand:hover .brand__logo { transform: rotate(120deg); }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__text b { font: 750 1.05rem var(--font-display); letter-spacing: -.01em; }
.brand__text small { font-size: .68rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
.nav__links { display: flex; align-items: center; gap: .2rem; }
.nav__links a {
  position: relative; text-decoration: none; font-weight: 550; font-size: .94rem; color: var(--muted);
  padding: .5rem .85rem; border-radius: 999px; transition: color .2s, background .2s;
}
.nav__links a:hover, .nav__links a.is-current { color: var(--text); background: var(--bg-alt); }
.nav__links .nav__cta { background: var(--ink); color: var(--ink-text); margin-left: .5rem; }
.nav__links .nav__cta:hover { background: var(--accent); color: #fff; }
.nav__tools { display: flex; gap: .5rem; }

.i-moon { display: none; }
:root[data-theme="dark"] .i-sun { display: none; }
:root[data-theme="dark"] .i-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .i-sun { display: none; }
  :root:not([data-theme="light"]) .i-moon { display: block; }
}
.burger { display: none; flex-direction: column; gap: 4px; }
.burger span { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .25s, opacity .25s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(calc(100svh - 72px), 920px); display: flex; align-items: center; padding: 3rem 0 5rem; overflow: hidden; isolation: isolate; }
.hero__bg { position: absolute; inset: 0; z-index: -1; overflow: hidden;
  background:
    radial-gradient(60% 60% at 80% 40%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%),
    radial-gradient(50% 60% at 10% 10%, var(--hero-2), transparent 70%),
    linear-gradient(180deg, var(--hero-1), var(--bg));
}
/* Sol quadrillé en perspective */
.hero__bg::after {
  content: ""; position: absolute; left: -50%; right: -50%; bottom: -10%; height: 70%;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  transform: perspective(520px) rotateX(62deg); transform-origin: 50% 100%;
  -webkit-mask-image: linear-gradient(to top, #000 10%, transparent 85%); mask-image: linear-gradient(to top, #000 10%, transparent 85%);
  animation: gridMove 9s linear infinite;
}
@keyframes gridMove { to { background-position: 0 64px, 0 0; } }

.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: center; width: min(1200px, 100% - 32px); }
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem; font-size: .86rem; font-weight: 600;
  padding: .45rem 1rem; border-radius: 999px; background: color-mix(in srgb, var(--surface) 75%, transparent); border: 1px solid var(--line); backdrop-filter: blur(8px);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgb(34 197 94 / .2); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgb(34 197 94 / .04); } }
.hero h1 { margin: 1.3rem 0 .9rem; }
.hero__hi { display: block; font-size: clamp(1rem, 1.6vw, 1.2rem); font-weight: 550; color: var(--muted); letter-spacing: 0; margin-bottom: .3rem; }
.hero__name { display: block; font-size: clamp(3rem, 7.6vw, 6rem); font-weight: 820; letter-spacing: -.045em; line-height: .98; }
.hero__name em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__role { font-size: clamp(1.1rem, 2vw, 1.45rem); font-weight: 650; min-height: 1.6em; display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.role-static { color: var(--muted); font-weight: 500; }
.typed { color: var(--text); }
.caret { display: inline-block; width: 3px; height: 1.15em; background: var(--accent); border-radius: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero__lead { color: var(--muted); font-size: 1.08rem; max-width: 56ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 2rem 0 1.8rem; }
.hero__social { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem; list-style: none; padding: 0; margin: 0; }
.hero__social a {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; color: var(--muted);
  border: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 70%, transparent); transition: all .25s;
}
.hero__social a:hover { color: #fff; background: var(--accent); border-color: var(--accent); transform: translateY(-3px) rotate(-6deg); }
.hero__social svg { width: 20px; height: 20px; }
.hero__loc { font-size: .9rem; color: var(--muted); margin-left: .5rem; }
.hero__loc::before { content: "●"; color: var(--accent); margin-right: .45rem; font-size: .7em; }

/* Entrée de l'accueil après le préchargement */
.js .up { opacity: 0; translate: 0 26px; transition: opacity .9s cubic-bezier(.2,.8,.2,1), translate .9s cubic-bezier(.2,.8,.2,1); }
.is-loaded .up { opacity: 1; translate: 0 0; }
.is-loaded .up:nth-child(2) { transition-delay: .08s; }
.is-loaded .up:nth-child(3) { transition-delay: .18s; }
.is-loaded .up:nth-child(4) { transition-delay: .28s; }
.is-loaded .up:nth-child(5) { transition-delay: .38s; }
.is-loaded .up:nth-child(6) { transition-delay: .48s; }

.hero__visual { position: relative; height: clamp(420px, 62vh, 640px); cursor: grab; }
.hero__visual:active { cursor: grabbing; }
.hero__visual canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero__fallback { display: none; position: absolute; inset: 0; margin: auto; width: min(320px, 70%); height: auto; animation: floatY 5s ease-in-out infinite; filter: drop-shadow(0 30px 40px rgb(226 86 29 / .35)); }
.hero__visual.no-webgl .hero__fallback { display: block; }
.hero__visual.no-webgl canvas { display: none; }
@keyframes floatY { 50% { transform: translateY(-14px) rotate(2deg); } }

.chip3d {
  position: absolute; display: flex; flex-direction: column; line-height: 1.15; padding: .75rem 1.05rem; border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 70%, transparent); border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: var(--shadow); pointer-events: none;
  animation: chipFloat 6s ease-in-out infinite;
}
.chip3d b { font: 800 1.5rem var(--font-display); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.chip3d span { font-size: .78rem; color: var(--muted); font-weight: 600; }
.chip3d--a { top: 12%; left: 2%; }
.chip3d--b { bottom: 16%; right: 0; animation-delay: -2s; }
.chip3d--c { bottom: 6%; left: 14%; animation-delay: -4s; }
@keyframes chipFloat { 50% { transform: translateY(-12px); } }

.scroll-hint { position: absolute; left: 50%; bottom: 22px; translate: -50% 0; width: 26px; height: 42px; border: 2px solid var(--line); border-radius: 14px; }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--accent); animation: scrollDot 1.8s ease-in-out infinite; }
@keyframes scrollDot { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Bandeau défilant ---------- */
.marquee {
  position: relative; z-index: 2; overflow: hidden; padding: 1.1rem 0; background: var(--ink); color: var(--ink-text);
  transform: rotate(-1.5deg) scale(1.03); margin: -1.5rem 0 0; box-shadow: var(--shadow-lg);
}
.marquee__track { display: flex; align-items: center; gap: 1.6rem; width: max-content; animation: marquee 38s linear infinite; }
.marquee__track span { font: 700 1.05rem var(--font-display); white-space: nowrap; letter-spacing: .02em; }
.marquee__track i { width: 10px; height: 10px; flex: none; background: var(--grad); transform: rotate(45deg); border-radius: 2px; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(4.5rem, 9vw, 7.5rem) 0; }
.section--tight { padding-top: 0; }
.section--alt { background: var(--bg-alt); }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem 2rem; flex-wrap: wrap; margin-bottom: 2.6rem; }
.section__head > div { max-width: 660px; }
.section__head .filters { margin: 0; }

/* Inclinaison 3D + reflet */
.tilt {
  --rx: 0deg; --ry: 0deg;
  position: relative; transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d; transition: transform .5s cubic-bezier(.2,.8,.2,1), box-shadow .3s, border-color .3s;
  will-change: transform;
}
.tilt.is-tilting { transition: transform .08s linear, box-shadow .3s, border-color .3s; }
.tilt::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgb(255 255 255 / .22), transparent 45%);
  mix-blend-mode: soft-light;
}
.tilt.is-tilting::after { opacity: 1; }

/* À propos */
.about { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
/* ---------- Scène 3D de la photo détourée ---------- */
@property --t { syntax: "<angle>"; initial-value: 0deg; inherits: true; }
.about__photo { position: relative; }
.stage {
  --mx: 0; --my: 0; --r: 215px;
  position: relative; width: min(470px, 100%); aspect-ratio: 4 / 5.2; margin-inline: auto;
  perspective: 1100px; transform-style: preserve-3d;
}
.stage picture { display: contents; }
.stage__orb {
  position: absolute; left: 8%; right: 8%; top: 16%; aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  background: radial-gradient(circle at 32% 26%, #ffd0a0 0%, #f6914a 22%, #e2561d 46%, #8a3214 66%, #14224d 100%);
  box-shadow: 0 50px 90px -30px rgb(226 86 29 / .7), inset 0 -40px 70px rgb(10 18 48 / .55), inset 0 24px 40px rgb(255 255 255 / .3);
  transform: translate3d(calc(var(--mx) * -16px), calc(var(--my) * -12px), -60px);
  transition: transform .4s ease-out;
}
/* motif tissé, rappel du faso dan fani */
.stage__orb::before {
  content: ""; position: absolute; inset: 0; opacity: .16; mix-blend-mode: overlay;
  background:
    repeating-linear-gradient(45deg, #fff 0 2px, transparent 2px 16px),
    repeating-linear-gradient(-45deg, #fff 0 2px, transparent 2px 16px);
}
/* reflet qui balaie la sphère */
.stage__orb::after {
  content: ""; position: absolute; inset: -20%;
  background: linear-gradient(115deg, transparent 40%, rgb(255 255 255 / .35) 50%, transparent 60%);
  animation: orbShine 7s ease-in-out infinite;
}
@keyframes orbShine { 0%, 55% { transform: translateX(-70%); } 100% { transform: translateX(70%); } }

.stage__ring {
  position: absolute; left: 50%; top: 48%; aspect-ratio: 1; border-radius: 50%; pointer-events: none;
  border: 1.5px solid transparent;
  background: linear-gradient(var(--bg), var(--bg)) padding-box, conic-gradient(from 0deg, transparent, #ff9d55, transparent 40%, #5b8cff, transparent 75%) border-box;
  -webkit-mask: linear-gradient(#000 0 0) padding-box exclude, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) padding-box exclude, linear-gradient(#000 0 0);
}
.stage__ring--1 { width: 104%; transform: translate(-50%, -50%) translateZ(-20px) rotateX(74deg) rotateZ(var(--t)); animation: spinT 14s linear infinite; }
.stage__ring--2 { width: 122%; opacity: .7; transform: translate(-50%, -50%) translateZ(-30px) rotateX(78deg) rotateY(-14deg) rotateZ(calc(var(--t) * -1)); animation: spinT 22s linear infinite; }
@keyframes spinT { to { --t: 360deg; } }

.stage__floor {
  position: absolute; left: 50%; top: 96%; width: 72%; aspect-ratio: 1; border-radius: 50%;
  transform: translate(-50%, -50%) rotateX(78deg);
  background: radial-gradient(closest-side, rgb(242 122 60 / .65), rgb(242 122 60 / .18) 55%, transparent 72%);
}
.stage__floor i {
  position: absolute; inset: 8%; border-radius: 50%; border: 2px dashed rgb(255 173 107 / .7);
  animation: spinSlow 18s linear infinite;
}

.stage__orbit {
  position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform-style: preserve-3d;
  transform: rotateX(calc(-10deg + var(--my) * 6deg)) rotateZ(-6deg);
  animation: spinT 26s linear infinite;
}
.stage__orbit span {
  position: absolute; left: 0; top: 0; white-space: nowrap; translate: -50% -50%;
  font-size: .8rem; font-weight: 750; padding: .35rem .75rem; border-radius: 999px;
  color: var(--text); background: color-mix(in srgb, var(--surface) 82%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--line));
  backdrop-filter: blur(8px); box-shadow: 0 10px 22px -10px rgb(0 0 0 / .45);
  /* les étiquettes restent toujours face à l'écran */
  transform: rotateY(calc(var(--a) + var(--t))) translateZ(var(--r)) rotateY(calc((var(--a) + var(--t)) * -1)) rotateZ(6deg) rotateX(calc(10deg - var(--my) * 6deg));
}

.stage__person {
  position: absolute; left: 50%; bottom: 3%; height: 95%; width: auto; max-width: none;
  transform: translateX(-50%) translate3d(calc(var(--mx) * 10px), calc(var(--my) * 6px), 40px);
  filter: drop-shadow(0 26px 24px rgb(7 12 26 / .4)) drop-shadow(0 0 1px rgb(255 255 255 / .4));
  transition: transform .4s ease-out, clip-path 1.6s cubic-bezier(.65, 0, .35, 1) .2s;
  clip-path: inset(0 0 0 0);
}
/* Apparition : la silhouette monte depuis le socle avec un trait de lumière */
.js .about__photo:not(.is-in) .stage__person { clip-path: inset(100% 0 0 0); }
.stage::after {
  content: ""; position: absolute; left: 18%; right: 18%; height: 3px; bottom: 3%; border-radius: 3px; opacity: 0; pointer-events: none;
  background: linear-gradient(90deg, transparent, #ffd0a0, #fff, #ffd0a0, transparent);
  box-shadow: 0 0 18px 4px rgb(255 157 85 / .8); transform: translateZ(60px);
}
.is-in .stage::after { animation: scan 1.6s cubic-bezier(.65, 0, .35, 1) .2s; }
@keyframes scan { 0% { bottom: 3%; opacity: 1; } 90% { opacity: 1; } 100% { bottom: 97%; opacity: 0; } }

.stage__sparks { position: absolute; inset: 0; pointer-events: none; transform: translateZ(70px); }
.stage__sparks i {
  position: absolute; width: var(--s); height: var(--s); border-radius: 50%;
  background: radial-gradient(circle, #fff, #ffb36b 45%, transparent 70%);
  animation: twinkle var(--d) ease-in-out infinite; animation-delay: var(--delay); opacity: 0;
}
@keyframes twinkle { 0%, 100% { opacity: 0; transform: translateY(0) scale(.4); } 50% { opacity: 1; transform: translateY(-14px) scale(1); } }

.photo3d__card {
  position: absolute; left: -24px; bottom: 34px; display: flex; align-items: center; gap: .75rem;
  padding: .8rem 1.1rem .8rem .85rem; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  transform: translateZ(60px);
}
.photo3d__card div { display: flex; flex-direction: column; line-height: 1.2; }
.photo3d__card b { font-size: .98rem; }
.photo3d__card span { font-size: .8rem; color: var(--muted); }
.about__text > p { color: var(--muted); font-size: 1.06rem; }
.about__text strong { color: var(--text); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; margin: 2rem 0 1rem; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 1.1rem 1rem; box-shadow: var(--shadow); }
.stat b { display: block; font: 820 2.1rem/1 var(--font-display); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: .3rem; }
.stat > span { color: var(--muted); font-size: .84rem; line-height: 1.3; display: block; }
.langs { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 1rem 1.2rem; box-shadow: var(--shadow); }
.langs__title { font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.langs ul { flex: 1; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem 1.4rem; min-width: 240px; }
.langs li { display: grid; grid-template-columns: 70px 1fr; align-items: center; gap: .8rem; font-size: .9rem; font-weight: 550; }
.langs i { height: 6px; border-radius: 99px; background: var(--bg-alt); position: relative; overflow: hidden; }
.langs i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: inherit; background: var(--grad); transform-origin: left; transform: scaleX(0); transition: transform 1.4s cubic-bezier(.2,.8,.2,1) .3s; }
.langs.is-in i::after { transform: scaleX(1); }

/* Temps forts */
.highlights { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.hl {
  padding: 1.5rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden;
}
.hl::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--grad); transform: scaleX(.25); transform-origin: left; transition: transform .5s; }
.hl:hover::before { transform: scaleX(1); }
.hl__ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--ink); color: var(--accent-2); margin-bottom: 1rem; transform: translateZ(30px); }
.hl__ico svg { width: 24px; height: 24px; }
.hl__date { font-size: .78rem; font-weight: 700; color: var(--accent); margin-bottom: .35rem; letter-spacing: .04em; }
.hl h3 { font-size: 1.12rem; transform: translateZ(20px); }
.hl p:last-child { color: var(--muted); font-size: .92rem; margin: 0; }
.hl b { color: var(--text); }

/* Compétences */
.skills-head { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; margin-bottom: 3rem; }
.skills-head .muted { max-width: 50ch; }
.sphere-wrap { display: grid; place-items: center; }
.sphere {
  position: relative; width: min(380px, 100%); aspect-ratio: 1; border-radius: 50%; perspective: 900px; transform-style: preserve-3d;
  cursor: grab; touch-action: none; user-select: none;
  background: radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 65%);
}
.sphere:active { cursor: grabbing; }
.sphere::before { content: ""; position: absolute; inset: 12%; border-radius: 50%; border: 1px dashed color-mix(in srgb, var(--accent) 35%, transparent); animation: spinSlow 40s linear infinite; }
@keyframes spinSlow { to { transform: rotate(360deg); } }
.sphere span {
  position: absolute; left: 50%; top: 50%; white-space: nowrap; font-size: .9rem; font-weight: 650; padding: .3rem .7rem; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); color: var(--text); box-shadow: 0 4px 12px -6px rgb(0 0 0 / .3); will-change: transform, opacity;
}
.sphere span.is-front { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); }

.skills { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.skill { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.skill:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); box-shadow: var(--shadow-lg); }
.skill__icon {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 1.1rem;
  background: linear-gradient(140deg, color-mix(in srgb, var(--accent) 20%, transparent), color-mix(in srgb, var(--blue) 14%, transparent));
  color: var(--accent); transform: translateZ(36px);
}
.skill__icon svg { width: 24px; height: 24px; }
.skill h3 { transform: translateZ(22px); }
.skill p { color: var(--muted); font-size: .93rem; }
.tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.tags li { font-size: .76rem; font-weight: 650; padding: .25rem .62rem; border-radius: 999px; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }

/* Filtres */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.chip {
  font: inherit; font-size: .88rem; font-weight: 650; cursor: pointer; padding: .55rem 1.05rem; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--muted); transition: all .25s;
}
.chip small { font-size: .72rem; opacity: .7; margin-left: .25rem; }
.chip:hover { color: var(--text); border-color: var(--text); }
.chip.is-active { background: var(--ink); color: var(--ink-text); border-color: var(--ink); }

/* Réalisations */
.projects { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.4rem; }
.project { grid-column: span 2; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); }
/* Largeurs calculées par main.js pour garder des rangées complètes */
@media (min-width: 1101px) {
  .project.span-3 { grid-column: span 3; }
  .project.span-6 { grid-column: span 6; flex-direction: row; }
  .project.span-6 .project__cover { flex: 0 0 42%; height: auto; min-height: 240px; border-radius: 23px 0 0 23px; }
  .project.span-6 .project__body { justify-content: center; padding: 2rem 2.2rem; }
}
@media (min-width: 641px) and (max-width: 1100px) {
  .project.span-6 { grid-column: span 2; }
}
/* Projet confidentiel : écran flouté + cadenas */
.project[data-private]:not([data-screen]) .device__screen { filter: blur(3px); }
.device__screen:has(.device__map) { padding: 0; }
.device__map { display: block; width: 100%; height: auto; }
/* Carte GPS : cadenas discret dans un coin */
.project[data-private][data-screen] .device--browser::after { left: auto; top: auto; right: 10px; bottom: 10px; margin: 0; width: 30px; height: 30px; border-radius: 10px; background-size: 16px; }
.project[data-private] .device--browser::after {
  content: ""; position: absolute; left: 50%; top: 58%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 14px;
  background: #0f172a url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffad6b' stroke-width='2' stroke-linecap='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E") center / 22px no-repeat;
  box-shadow: 0 10px 20px -8px rgb(0 0 0 / .6);
}
.project:hover { box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.project__cover {
  position: relative; height: 210px; border-radius: 23px 23px 0 0; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(circle at 85% 10%, rgb(255 255 255 / .28), transparent 40%), linear-gradient(140deg, var(--c1), var(--c2));
  transform-style: preserve-3d;
}
.project--featured .project__cover { height: 250px; }
.project__cover::before {
  content: ""; position: absolute; inset: -40%; opacity: .16;
  background-image: linear-gradient(rgb(255 255 255 / .7) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / .7) 1px, transparent 1px);
  background-size: 28px 28px; transform: perspective(400px) rotateX(55deg) translateY(30%);
}
.device { position: relative; transform: translateZ(50px) rotateX(8deg) rotateY(-10deg); transition: transform .6s cubic-bezier(.2,.8,.2,1); box-shadow: 0 30px 40px -18px rgb(0 0 0 / .55); }
.project:hover .device { transform: translateZ(70px) rotateX(0) rotateY(0) translateY(-6px); }
.device--browser { width: 62%; border-radius: 12px; background: rgb(255 255 255 / .95); overflow: hidden; }
.device__top { display: flex; align-items: center; gap: 5px; padding: 8px 10px; background: rgb(15 27 61 / .06); }
.device__top i { width: 8px; height: 8px; border-radius: 50%; background: #f87171; }
.device__top i:nth-child(2) { background: #fbbf24; }
.device__top i:nth-child(3) { background: #34d399; }
.device__top span { margin-left: 8px; flex: 1; font-size: .68rem; color: #5a6178; background: #fff; border-radius: 6px; padding: 2px 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.device__screen { display: grid; justify-items: center; gap: 7px; padding: 18px 14px 20px; background: linear-gradient(160deg, #fff, #f1f3f9); }
.device__mono { font: 850 2.2rem/1 var(--font-display); letter-spacing: -.05em; background: linear-gradient(140deg, var(--c1), var(--c2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.device__bar { width: 70%; height: 7px; border-radius: 4px; background: #e3e6ef; }
.device__bar--s { width: 45%; }
.device--phone { width: 104px; height: 170px; border-radius: 22px; background: #fff; border: 5px solid #111827; display: grid; align-content: center; justify-items: center; gap: 8px; }
.device__notch { position: absolute; top: 4px; left: 50%; width: 36px; height: 8px; margin-left: -18px; border-radius: 6px; background: #111827; }
.project__types { position: absolute; top: 14px; right: 14px; display: flex; gap: .35rem; transform: translateZ(40px); }
.project__types span { font-size: .7rem; font-weight: 750; padding: .25rem .6rem; border-radius: 99px; background: rgb(255 255 255 / .92); color: #121933; }
.project__body { display: flex; flex-direction: column; gap: .7rem; padding: 1.4rem 1.5rem 1.5rem; flex: 1; }
.project__body .project__kind { margin: 0; font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.project__body h3 { margin: 0; font-size: 1.35rem; }
.project__body p { color: var(--muted); font-size: .94rem; margin: 0; }
.project__link { margin-top: auto; padding-top: .5rem; font-weight: 700; color: var(--accent); text-decoration: none; display: inline-flex; gap: .3rem; align-items: center; }
.project__link span { transition: transform .25s; }
.project__link:hover span { transform: translate(3px, -3px); }
.project__link.is-muted { color: var(--muted); font-weight: 550; font-size: .88rem; }
.pop { animation: pop .5s cubic-bezier(.2,.8,.2,1); }
@keyframes pop { from { opacity: 0; scale: .9; transform: perspective(900px) rotateX(18deg) translateY(16px); } }
.pop { animation-fill-mode: both; }

/* Parcours */
.career { display: grid; grid-template-columns: 1.45fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.col-title { font-size: .85rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin-bottom: 1.6rem; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 2rem; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--accent), var(--blue), transparent); border-radius: 2px; }
.timeline li { position: relative; padding: 0 0 2rem; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: calc(-2rem + 1px); top: 5px; width: 14px; height: 14px; border-radius: 4px; transform: rotate(45deg);
  background: var(--bg-alt); border: 3px solid var(--accent); box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 15%, transparent);
}
.timeline time { display: inline-block; font-size: .78rem; font-weight: 700; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); padding: .18rem .65rem; border-radius: 99px; margin-bottom: .5rem; }
.timeline h4 { font-size: 1.1rem; margin-bottom: .25rem; }
.timeline h4 em { font-style: normal; font-weight: 650; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--blue); border: 1px solid currentColor; padding: .1rem .45rem; border-radius: 6px; margin-left: .3rem; vertical-align: middle; }
.timeline .org { font-weight: 650; color: var(--text); opacity: .85; font-size: .92rem; margin-bottom: .4rem; }
.timeline p:not(.org) { color: var(--muted); font-size: .93rem; margin: 0; }
.career__side { position: sticky; top: 100px; }
.edu { display: grid; gap: .9rem; }
.edu__card { padding: 1.2rem 1.3rem; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); border-left: 4px solid var(--accent); }
.edu__year { font-size: .78rem; font-weight: 700; color: var(--accent); }
.edu__card h4 { font-size: 1.02rem; margin: .3rem 0 .25rem; transform: translateZ(20px); }
.edu__card p { margin: 0; font-size: .9rem; color: var(--muted); }
.callout { display: flex; gap: 1rem; align-items: flex-start; margin-top: 1.4rem; padding: 1.3rem; border-radius: 18px; background: var(--ink); color: var(--ink-text); }
.callout img { flex: none; }
.callout p { opacity: .85; font-size: .94rem; margin-bottom: .8rem; }

/* Certifications */
.filters--scroll { flex-wrap: nowrap; overflow-x: auto; padding-bottom: .4rem; scrollbar-width: thin; }
.filters--scroll .chip { flex: none; }
.certs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.cert {
  font: inherit; text-align: left; color: inherit; cursor: zoom-in; padding: 0; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow);
}
.cert:hover { border-color: var(--accent); box-shadow: var(--shadow-lg); }
.cert__thumb {
  display: flex; align-items: center; justify-content: center; height: 190px; padding: .9rem; overflow: hidden;
  background: linear-gradient(160deg, var(--surface-2), var(--bg-alt)); border-bottom: 1px solid var(--line); border-radius: 17px 17px 0 0;
}
.cert__thumb img { max-height: 100%; max-width: 100%; width: auto; height: auto; object-fit: contain; border-radius: 4px; box-shadow: 0 10px 20px -8px rgb(0 0 0 / .35); transition: transform .5s cubic-bezier(.2,.8,.2,1); transform: translateZ(30px); }
.cert:hover .cert__thumb img { transform: translateZ(30px) scale(1.06); }
.cert__thumb { position: relative; }
.cert__badge {
  position: absolute; top: 10px; left: 10px; z-index: 2; font-size: .7rem; font-weight: 800; letter-spacing: .02em;
  padding: .22rem .6rem; border-radius: 99px; color: #fff; background: var(--grad); overflow: hidden;
  box-shadow: 0 6px 14px -6px rgb(226 86 29 / .8); transform: translateZ(45px);
}
.cert__badge::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-120%);
  background: linear-gradient(100deg, transparent 30%, rgb(255 255 255 / .6) 50%, transparent 70%);
  animation: shine 3.2s ease-in-out infinite;
}
@keyframes shine { 60%, 100% { transform: translateX(120%); } }
.cert__body { display: flex; flex-direction: column; gap: .28rem; padding: .95rem 1.05rem 1.15rem; }
.cert__cat { font-size: .68rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.cert strong { font-size: .94rem; line-height: 1.35; }
.cert__meta { font-size: .82rem; color: var(--muted); }
.certs__more { display: flex; justify-content: center; margin-top: 2rem; }
.more-certs { margin-top: 2rem; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 1rem 1.3rem; }
.more-certs summary { cursor: pointer; font-weight: 650; }
.more-certs ul { margin: 1rem 0 .3rem; padding-left: 1.2rem; color: var(--muted); display: grid; gap: .35rem; font-size: .93rem; }

/* Contact */
.section--contact { background: #070c1a; color: #e9ecf5; overflow: hidden; isolation: isolate; }
.contact__bg { position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(50% 70% at 15% 30%, rgb(242 122 60 / .25), transparent 70%), radial-gradient(40% 60% at 90% 80%, rgb(91 140 255 / .22), transparent 70%);
}
.contact__bg::after {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(rgb(120 150 255 / .08) 1px, transparent 1px), linear-gradient(90deg, rgb(120 150 255 / .08) 1px, transparent 1px);
  background-size: 48px 48px; -webkit-mask-image: radial-gradient(circle at 50% 50%, #000, transparent 75%); mask-image: radial-gradient(circle at 50% 50%, #000, transparent 75%);
}
.contact { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.section--contact .kicker { color: #ffad6b; }
.contact > div > p { color: #b4bcd2; font-size: 1.1rem; max-width: 44ch; }
.cube3d { margin-top: 3rem; perspective: 800px; width: 110px; height: 110px; display: grid; place-items: center; }
.cube3d__inner { --s: 70px; animation-duration: 6s; animation-timing-function: linear; }
.contact__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.contact__list li {
  display: flex; align-items: center; gap: 1rem; padding: 1.05rem 1.25rem; border-radius: 18px;
  background: rgb(255 255 255 / .05); border: 1px solid rgb(255 255 255 / .1); backdrop-filter: blur(10px);
}
.contact__list li:hover { border-color: rgb(255 173 107 / .6); background: rgb(255 255 255 / .08); }
.contact__list small { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: #98a1b9; }
.contact__list a { text-decoration: none; font-weight: 650; word-break: break-word; }
.contact__list a:hover { color: #ffad6b; }
.contact__ico { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--grad); color: #fff; transform: translateZ(30px); box-shadow: 0 10px 20px -8px rgb(226 86 29 / .7); }
.contact__ico svg { width: 21px; height: 21px; }

/* Footer */
.footer { padding: 1.8rem 0; background: #050914; color: #98a1b9; font-size: .88rem; border-top: 1px solid #141c36; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.footer p { margin: 0; }
.brand--footer { margin: 0; color: #e9ecf5; }
.to-top { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; border: 1px solid #1f2a4c; text-decoration: none; color: #e9ecf5; transition: all .25s; }
.to-top:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-3px); }

/* Visionneuse */
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(980px, 92vw); max-height: 92vh; overflow: visible; }
.lightbox::backdrop { background: rgb(4 7 16 / .86); backdrop-filter: blur(6px); }
.lightbox[open] figure { animation: lbIn .45s cubic-bezier(.2,.8,.2,1); }
@keyframes lbIn { from { opacity: 0; transform: perspective(1000px) rotateX(14deg) translateY(30px) scale(.94); } }
.lightbox figure { margin: 0; background: var(--surface); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-lg); }
.lightbox img { max-height: calc(92vh - 110px); width: auto; margin: 0 auto; background: var(--bg-alt); opacity: 0; transition: opacity .35s; }
.lightbox img.is-in { opacity: 1; }
.lightbox figcaption { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; color: var(--text); }
.lightbox figcaption div { display: flex; flex-direction: column; }
.lightbox figcaption span { color: var(--muted); font-size: .87rem; }
.lightbox__close, .lightbox__nav {
  position: absolute; z-index: 2; display: grid; place-items: center; border: 0; cursor: pointer; border-radius: 50%;
  background: var(--accent); color: #fff; box-shadow: var(--shadow); transition: transform .2s;
}
.lightbox__close { top: -16px; right: -16px; width: 42px; height: 42px; font-size: 1.6rem; line-height: 1; }
.lightbox__nav { top: 50%; width: 48px; height: 48px; margin-top: -24px; font-size: 2rem; line-height: 1; background: var(--surface); color: var(--text); }
.lightbox__nav:hover, .lightbox__close:hover { transform: scale(1.1); }
.lightbox__nav--prev { left: -64px; }
.lightbox__nav--next { right: -64px; }

/* Apparitions au défilement */
.js .reveal { opacity: 0; translate: 0 34px; transition: opacity .9s cubic-bezier(.2,.8,.2,1) var(--d, 0ms), translate .9s cubic-bezier(.2,.8,.2,1) var(--d, 0ms), transform .5s cubic-bezier(.2,.8,.2,1), box-shadow .3s, border-color .3s; }
.js .reveal.is-in { opacity: 1; translate: 0 0; }
.js h2.reveal { translate: 0 0; opacity: 0; transform: perspective(800px) rotateX(-55deg); transform-origin: 50% 100%; }
.js h2.reveal.is-in { opacity: 1; transform: none; }
.js .tilt.is-tilting { transition: opacity .9s, translate .9s, transform .08s linear, box-shadow .3s, border-color .3s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
  .js .reveal, .js .up, .js h2.reveal { opacity: 1; translate: none; transform: none; transition: none; }
  .langs i::after { transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .skills, .certs { grid-template-columns: repeat(3, 1fr); }
  .highlights { grid-template-columns: repeat(2, 1fr); }
  .projects { grid-template-columns: repeat(2, 1fr); }
  .project { grid-column: span 1; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .lightbox__nav--prev { left: 8px; }
  .lightbox__nav--next { right: 8px; }
}
@media (max-width: 920px) {
  .burger { display: flex; }
  .nav__links {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: .2rem;
    padding: 1rem 16px 1.4rem; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 24px 30px -10px rgb(0 0 0 / .2);
    transform: translateY(-10px); opacity: 0; visibility: hidden; transition: all .25s;
  }
  .nav__links.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav__links a { padding: .8rem 1rem; border-radius: 12px; }
  .nav__links .nav__cta { margin: .4rem 0 0; text-align: center; }
  .hero { min-height: auto; padding-top: 1rem; }
  .hero__grid, .about, .career, .contact, .skills-head { grid-template-columns: 1fr; }
  .hero__visual { order: -1; height: 360px; margin-bottom: -1rem; }
  .career__side { position: static; }
  .scroll-hint { display: none; }
}
@media (max-width: 640px) {
  .skills, .highlights, .projects { grid-template-columns: 1fr; }
  .certs { grid-template-columns: repeat(2, 1fr); gap: .7rem; }
  .cert__thumb { height: 130px; padding: .5rem; }
  .cert__body { padding: .7rem .75rem .85rem; }
  .cert strong { font-size: .84rem; }
  .cert__meta { font-size: .76rem; }
  .hero__visual { height: 300px; }
  .chip3d { padding: .55rem .8rem; }
  .chip3d b { font-size: 1.15rem; }
  .chip3d--c { display: none; }
  .hero__actions .btn { flex: 1 1 100%; }
  .brand__text small { display: none; }
  .photo3d__card { left: 0; bottom: 10px; }
  .stage { --r: 150px; }
  .stage__orbit span { font-size: .7rem; padding: .25rem .6rem; }
  .langs ul { grid-template-columns: 1fr; }
  .project__cover, .project--featured .project__cover { height: 190px; }
  .lightbox figcaption { flex-direction: column; align-items: stretch; }
  .lightbox__close { top: -50px; right: 0; }
  .lightbox__nav { top: auto; bottom: -60px; margin: 0; }
  .lightbox__nav--prev { left: calc(50% - 56px); }
  .lightbox__nav--next { right: calc(50% - 56px); }
  .footer__inner { justify-content: center; text-align: center; }
}

/* Aperçu statique pour les captures (?shot) */
.shot .loader { display: none; }
.shot .stage__person { clip-path: none !important; }
.shot .langs i::after { transform: none; transition: none; }
.shot .reveal, .shot .up, .shot h2.reveal { opacity: 1 !important; translate: none !important; transform: none !important; transition: none !important; }
