/* =========================================================
   Blackbolt — Studio de développement & cybersécurité
   Aucune ressource tierce : polices auto-hébergées.
   ========================================================= */

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter.woff2") format("woff2");
  font-weight: 100 900; font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/space-grotesk.woff2") format("woff2");
  font-weight: 300 700; font-display: swap;
}

@view-transition { navigation: auto; }

:root {
  --bg: #07080b;
  --bg-2: #0c0e13;
  --surface: #11141a;
  --surface-2: #161a22;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #eef0f4;
  --muted: #98a0ae;
  --sec: #ffcf3d;          /* pôle sécurité / marque */
  --dev: #4fd8ff;          /* pôle développement */
  --grad: linear-gradient(100deg, var(--dev) 0%, #a78bfa 50%, var(--sec) 100%);
  --radius: 18px;
  --max: 1200px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
main { overflow-x: clip; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--sec); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--sec); color: #111; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.02em; font-weight: 600; }

.container { width: min(100% - 40px, var(--max)); margin-inline: auto; }
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--sec); color: #111; padding: 8px 14px; border-radius: 8px; z-index: 200; }
.skip-link:focus { left: 12px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; background-size: 200% auto; animation: shine 6s linear infinite; }
.t-dev { color: var(--dev); }
.t-sec { color: var(--sec); }
@keyframes shine { to { background-position: 200% center; } }

/* ---------- Barre de progression + header ---------- */
.progress { position: fixed; top: 0; left: 0; height: 2px; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: var(--grad); z-index: 120; }
.site-header { position: fixed; inset: 0 0 auto; z-index: 100; transition: background .3s var(--ease), border-color .3s, backdrop-filter .3s; border-bottom: 1px solid transparent; }
.site-header.scrolled { background: rgba(7, 8, 11, 0.72); backdrop-filter: saturate(150%) blur(14px); -webkit-backdrop-filter: saturate(150%) blur(14px); border-color: var(--border); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 20px; transition: height .3s var(--ease); }
.scrolled .nav { height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: -0.01em; }
.brand svg { width: 30px; height: 30px; transition: transform .5s var(--ease); }
.brand:hover svg { transform: rotate(-12deg) scale(1.08); }
.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--muted); font-size: 15px; padding: 8px 12px; border-radius: 10px; transition: color .2s, background .2s; }
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,.05); }
.nav-links .lang-switch { font-family: var(--mono); font-size: 13px; color: var(--text); border: 1px solid var(--border-strong); border-radius: 999px; padding: 5px 13px; margin-left: 8px; }
.nav-links .nav-cta { color: #111; background: var(--text); font-weight: 600; margin-left: 6px; }
.nav-links .nav-cta:hover { background: #fff; color: #111; }
.nav-toggle { display: none; background: none; border: 1px solid var(--border-strong); color: var(--text); border-radius: 12px; padding: 9px 11px; cursor: pointer; }

/* ---------- Boutons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 12px; font-weight: 600; font-size: 16px; border: 1px solid transparent; transition: transform .25s var(--ease), box-shadow .25s, background .25s, border-color .25s; cursor: pointer; }
.btn svg { transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn-primary { background: var(--sec); color: #141000; box-shadow: 0 10px 30px -10px rgba(255, 207, 61, .55); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(255, 207, 61, .7); }
.btn-ghost { border-color: var(--border-strong); color: var(--text); background: rgba(255,255,255,.02); }
.btn-ghost:hover { border-color: rgba(255,255,255,.35); transform: translateY(-2px); }

/* ---------- Ouverture : deux auras, une application, un logo ----------
   Mise en page par défaut = version statique (sans JS ou animations réduites).
   La classe .scrolly sur <html> active la version animée au défilement. */
.opening { position: relative; padding: 0; }
.stage { position: relative; min-height: 100vh; padding: 130px 20px 80px; display: grid; grid-template-columns: 1fr minmax(280px, 1.1fr) 1fr; grid-template-areas: "head head head" "sec mid dev"; align-items: center; gap: 30px 40px; max-width: 1280px; margin: 0 auto; isolation: isolate; }
.aura { position: absolute; width: 62vmax; height: 62vmax; left: 0; top: 0; margin: -31vmax 0 0 -31vmax; border-radius: 50%; pointer-events: none; z-index: -1; filter: blur(20px); }
.aura-sec { background: radial-gradient(circle, rgba(255, 207, 61, .26) 0%, rgba(255, 170, 40, .10) 30%, transparent 62%); translate: 20vw 55vh; }
.aura-dev { background: radial-gradient(circle, rgba(79, 216, 255, .26) 0%, rgba(90, 120, 255, .10) 30%, transparent 62%); translate: 80vw 55vh; }
.op-head { grid-area: head; text-align: center; }
.op-head .kicker { font-family: var(--mono); font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.op-head h1 { font-size: clamp(34px, 4.6vw, 64px); line-height: 1.04; margin: 0; }
.op-head h1 .amp { color: var(--muted); font-weight: 400; }

.skills { --c: var(--sec); }
.skills-sec { grid-area: sec; }
.skills-dev { grid-area: dev; --c: var(--dev); text-align: right; }
.skills-title { display: flex; align-items: center; gap: 12px; font-size: 26px; margin: 0 0 22px; color: var(--text); }
.skills-dev .skills-title { justify-content: flex-end; }
.skills-title i { width: 12px; height: 12px; border-radius: 50%; background: var(--c); box-shadow: 0 0 18px 4px color-mix(in srgb, var(--c) 60%, transparent); }
.group { margin-bottom: 20px; }
.group h3 { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--c); margin: 0 0 9px; }
.tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 7px; }
.skills-dev .tags { justify-content: flex-end; }
.tags li { font-size: 14px; padding: 5px 11px; border-radius: 999px; background: rgba(255,255,255,.035); border: 1px solid color-mix(in srgb, var(--c) 28%, transparent); backdrop-filter: blur(4px); }

.op-final { grid-area: mid; text-align: center; }
.op-logo-svg { width: 150px; height: 150px; margin: 0 auto 18px; filter: drop-shadow(0 0 40px rgba(255, 207, 61, .25)); }
.op-brand { font-family: var(--display); font-size: clamp(40px, 5vw, 64px); font-weight: 700; letter-spacing: -0.03em; line-height: 1; margin: 0 0 14px; }
.op-final .lead { color: var(--muted); font-size: clamp(16px, 1.4vw, 19px); margin: 0 auto 26px; max-width: 620px; }
.op-final .hero-cta { justify-content: center; }
.op-final .pill { margin-bottom: 20px; }
#op-canvas, .app, .op-caption, .opening .scroll-hint { display: none; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.pill { display: inline-flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--text); background: rgba(255,255,255,.04); border: 1px solid var(--border-strong); padding: 7px 14px 7px 8px; border-radius: 999px; backdrop-filter: blur(6px); }
.pill .dot { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: rgba(95, 211, 141, .15); }
.pill .dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #5fd38d; box-shadow: 0 0 0 0 rgba(95,211,141,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(95,211,141,0); } 100% { box-shadow: 0 0 0 0 rgba(95,211,141,0); } }

/* --- Version animée --- */
.scrolly .opening { height: 340vh; }
.scrolly .stage { position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 0; max-width: none; padding: 0; display: block; overflow: hidden; }
.scrolly #op-canvas { display: block; position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.scrolly .op-head { position: absolute; left: 20px; right: 20px; top: 13vh; z-index: 2; }
.scrolly .skills { position: absolute; top: calc(56% - 170px); width: min(340px, 27vw); z-index: 2; will-change: transform, opacity; }
.scrolly .skills-sec { left: max(28px, calc(50% - 610px)); }
.scrolly .skills-dev { right: max(28px, calc(50% - 610px)); }
.scrolly .op-final { position: absolute; left: 20px; right: 20px; top: 62%; z-index: 3; opacity: 0; pointer-events: none; }
.scrolly .op-final.live { pointer-events: auto; }
.scrolly .op-logo-svg { display: none; }
.scrolly .aura { will-change: translate, scale, opacity; }
.scrolly .op-caption { display: block; position: absolute; left: 0; right: 0; bottom: 6vh; z-index: 3; text-align: center; font-family: var(--mono); font-size: 14px; color: var(--muted); height: 1.6em; }
.op-caption span { position: absolute; left: 0; right: 0; opacity: 0; transition: opacity .4s; }
.op-caption span.on { opacity: 1; }
.op-caption b { color: var(--text); font-weight: 500; }
.scrolly .opening .scroll-hint { display: block; z-index: 3; bottom: 12vh; transition: opacity .3s; }

/* Application qui s'assemble */
.scrolly .app { display: block; position: absolute; left: 50%; top: 56%; width: min(500px, 36vw); aspect-ratio: 16 / 10.5; translate: -50% -50%; z-index: 1; }
.blk { position: absolute; border-radius: 8px; opacity: 0; will-change: transform, opacity; }
.blk.dev { background: rgba(79, 216, 255, .07); border: 1px solid rgba(79, 216, 255, .35); box-shadow: 0 0 24px -6px rgba(79, 216, 255, .35); }
.blk.sec { background: rgba(255, 207, 61, .09); border: 1px solid rgba(255, 207, 61, .45); box-shadow: 0 0 24px -6px rgba(255, 207, 61, .4); }
.blk.frame { inset: 0; background: rgba(12, 14, 19, .85); border-color: rgba(79, 216, 255, .3); border-radius: 14px; }
.blk.bar { left: 0; right: 0; top: 0; height: 9%; border-radius: 14px 14px 0 0; display: flex; align-items: center; gap: 5px; padding: 0 12px; font-family: var(--mono); font-size: 10px; color: var(--muted); }
.blk.bar i { width: 7px; height: 7px; border-radius: 50%; background: rgba(79, 216, 255, .5); }
.blk.bar span { margin-left: 10px; }
.blk.side { left: 3%; top: 14%; width: 18%; bottom: 5%; background-image: repeating-linear-gradient(to bottom, transparent 0 14px, rgba(79,216,255,.25) 14px 18px, transparent 18px 30px); background-origin: content-box; padding: 12px 10px; }
.blk.title { left: 25%; top: 15%; width: 46%; height: 8%; }
.blk.text { left: 25%; top: 27%; width: 62%; height: 9%; background-image: linear-gradient(rgba(79,216,255,.2) 0 0), linear-gradient(rgba(79,216,255,.2) 0 0); background-size: 90% 3px, 70% 3px; background-position: 8px 35%, 8px 70%; background-repeat: no-repeat; }
.blk.btn { left: 25%; top: 40%; width: 18%; height: 8%; background: rgba(79, 216, 255, .35); }
.blk.card1 { left: 25%; top: 53%; width: 34%; height: 25%; background-image: linear-gradient(to top, rgba(79,216,255,.45) 0 40%, transparent 40%), linear-gradient(to top, rgba(79,216,255,.45) 0 70%, transparent 70%), linear-gradient(to top, rgba(79,216,255,.45) 0 55%, transparent 55%), linear-gradient(to top, rgba(79,216,255,.45) 0 85%, transparent 85%); background-size: 10% 70%; background-position: 15% 80%, 37% 80%, 59% 80%, 81% 80%; background-repeat: no-repeat; }
.blk.card2 { left: 62%; top: 53%; width: 34%; height: 25%; background-image: repeating-linear-gradient(to bottom, transparent 0 12px, rgba(79,216,255,.22) 12px 15px, transparent 15px 24px); background-origin: content-box; padding: 8px 12px; }
.blk.code { left: 25%; top: 82%; width: 71%; height: 12%; font-family: var(--mono); font-size: 10.5px; color: var(--dev); display: flex; align-items: center; padding: 0 12px; white-space: nowrap; overflow: hidden; }
.blk.chip { display: flex; align-items: center; gap: 7px; padding: 6px 11px; border-radius: 999px; font-family: var(--mono); font-size: 11.5px; color: var(--sec); white-space: nowrap; background: rgba(20, 17, 8, .92); }
.blk.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--sec); box-shadow: 0 0 10px var(--sec); }
.blk.shield { inset: -14px; border-radius: 22px; background: none; border: 1.5px dashed rgba(255, 207, 61, .55); box-shadow: 0 0 60px -10px rgba(255, 207, 61, .35), inset 0 0 40px -20px rgba(255, 207, 61, .3); }
.c-tls { right: 6%; top: -5%; } .c-mfa { left: -9%; top: 24%; } .c-waf { right: -8%; top: 36%; }
.c-siem { left: -7%; top: 66%; } .c-iso { right: -9%; top: 70%; } .c-pentest { left: 38%; bottom: -6%; }

@media (max-width: 860px) {
  .stage { grid-template-columns: 1fr; grid-template-areas: "head" "mid" "sec" "dev"; text-align: left; }
  .skills-dev { text-align: left; }
  .skills-dev .skills-title { justify-content: flex-start; }
  .skills-dev .tags { justify-content: flex-start; }
  .aura-sec { translate: 50vw 20vh; } .aura-dev { translate: 50vw 85vh; }
  .scrolly .op-head { top: 92px; }
  .scrolly .op-head .kicker { display: none; }
  .scrolly .op-head h1 { font-size: 28px; }
  .scrolly .skills { width: auto; left: 20px; right: 20px; margin: 0; }
  .scrolly .skills-sec { top: 150px; }
  .scrolly .skills-dev { top: auto; bottom: 7vh; text-align: right; }
  .scrolly .skills-dev .skills-title, .scrolly .skills-dev .tags { justify-content: flex-end; }
  .scrolly .skills-title { font-size: 18px; margin-bottom: 10px; }
  .scrolly .group { margin-bottom: 8px; }
  .scrolly .group h3 { font-size: 10.5px; margin-bottom: 5px; }
  .scrolly .tags { gap: 5px; }
  .scrolly .tags li { font-size: 11.5px; padding: 3px 8px; }
  .scrolly .app { width: 74vw; top: 52%; }
  .scrolly .op-final { top: 58%; }
  .blk.chip { font-size: 9.5px; padding: 4px 8px; }
  .blk.bar, .blk.code { font-size: 8.5px; }
  .scrolly .op-caption { bottom: 3vh; font-size: 12px; }
  .scrolly .opening .scroll-hint { display: none; }
}
@media (max-width: 860px) and (max-height: 760px) {
  .scrolly .group:nth-child(4) { display: none; }
}

/* Téléphone (maquettes des réalisations) */
.phone { position: absolute; width: 150px; border-radius: 26px; padding: 7px; background: #0d0f14; border: 1px solid var(--border-strong); box-shadow: 0 40px 70px -20px rgba(0,0,0,.8); }
.phone img { border-radius: 20px; aspect-ratio: 390 / 844; object-fit: cover; width: 100%; height: auto; }
.mock { position: absolute; border-radius: 14px; overflow: hidden; background: var(--surface); border: 1px solid var(--border-strong); box-shadow: 0 40px 80px -20px rgba(0,0,0,.75), 0 0 0 1px rgba(0,0,0,.4); }
.mock .bar { display: flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; background: #1b1f27; border-bottom: 1px solid var(--border); }
.mock .bar i { width: 9px; height: 9px; border-radius: 50%; background: #3a404c; }
.mock .bar i:nth-child(1) { background: #ff5f57; } .mock .bar i:nth-child(2) { background: #febc2e; } .mock .bar i:nth-child(3) { background: #28c840; }
.mock .bar span { margin-left: 10px; font-family: var(--mono); font-size: 11px; color: var(--muted); background: rgba(255,255,255,.05); padding: 2px 10px; border-radius: 6px; }
.mock img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.scroll-hint { position: absolute; left: 50%; bottom: 26px; translate: -50% 0; width: 24px; height: 38px; border: 2px solid var(--border-strong); border-radius: 14px; }
.scroll-hint::after { content: ""; position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--text); animation: wheel 1.8s infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* ---------- Bandeau défilant ---------- */
.marquee { border-block: 1px solid var(--border); background: var(--bg-2); padding: 20px 0; overflow: hidden; mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: scroll 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span { font-family: var(--display); font-size: 20px; color: var(--muted); white-space: nowrap; display: flex; align-items: center; gap: 48px; }
.marquee span::after { content: "✦"; font-size: 12px; color: var(--sec); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
section { position: relative; padding: 130px 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 18px; }
.eyebrow::before { content: ""; width: 24px; height: 1px; background: currentColor; }
.eyebrow.dev { color: var(--dev); } .eyebrow.sec { color: var(--sec); }
.section-head { max-width: 780px; margin-bottom: 64px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(32px, 4.6vw, 56px); line-height: 1.05; margin: 0 0 18px; }
.section-head p { color: var(--muted); margin: 0; font-size: 19px; }
.alt { background: var(--bg-2); border-block: 1px solid var(--border); }

/* ---------- Deux pôles ---------- */
.poles { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.pole { position: relative; overflow: hidden; border-radius: 24px; padding: 44px 40px 40px; background: var(--surface); border: 1px solid var(--border); transition: transform .4s var(--ease), border-color .4s; --c: var(--dev); }
.pole.sec { --c: var(--sec); }
.pole::before { content: ""; position: absolute; inset: 0; background: radial-gradient(500px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--c) 16%, transparent), transparent 45%); opacity: .6; transition: opacity .4s; pointer-events: none; }
.pole:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--c) 40%, transparent); }
.pole:hover::before { opacity: 1; }
.pole > * { position: relative; }
.pole-icon { width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); border: 1px solid color-mix(in srgb, var(--c) 30%, transparent); margin-bottom: 28px; }
.pole-icon svg { width: 28px; height: 28px; }
.pole h3 { font-size: 32px; margin: 0 0 6px; }
.pole .kicker { font-family: var(--mono); font-size: 13px; color: var(--c); margin: 0 0 18px; }
.pole p { color: var(--muted); margin: 0 0 24px; }
.pole ul { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 10px; }
.pole li { display: flex; gap: 12px; align-items: baseline; }
.pole li::before { content: "→"; color: var(--c); font-family: var(--mono); }
.pole .link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--c); }
.pole .link svg { transition: transform .25s var(--ease); }
.pole:hover .link svg { transform: translateX(5px); }
.pole .big { position: absolute; right: -10px; bottom: -40px; font-family: var(--display); font-size: 180px; font-weight: 700; line-height: 1; color: color-mix(in srgb, var(--c) 7%, transparent); pointer-events: none; }
.synergy { margin: 24px 0 0; text-align: center; padding: 24px; border-radius: 18px; border: 1px dashed var(--border-strong); color: var(--muted); }
.synergy strong { color: var(--text); }

/* ---------- Cartes de services ---------- */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.services.three { grid-template-columns: repeat(3, 1fr); }
.svc { position: relative; padding: 30px 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); transition: transform .35s var(--ease), border-color .35s, background .35s; --c: var(--dev); display: flex; flex-direction: column; }
.svc.sec { --c: var(--sec); }
.svc:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--c) 35%, transparent); background: var(--surface-2); }
.svc .ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 11%, transparent); margin-bottom: 20px; }
.svc .ico svg { width: 23px; height: 23px; }
.svc h3 { font-size: 20px; margin: 0 0 10px; line-height: 1.25; }
.svc p { color: var(--muted); font-size: 15.5px; margin: 0 0 16px; }
.svc ul { list-style: none; padding: 0; margin: 0 0 18px; font-size: 14.5px; display: grid; gap: 7px; }
.svc li { padding-left: 18px; position: relative; }
.svc li::before { content: ""; position: absolute; left: 0; top: .7em; width: 8px; height: 2px; background: var(--c); }
.svc .format { margin-top: auto; font-family: var(--mono); font-size: 12.5px; color: var(--muted); border-top: 1px dashed var(--border-strong); padding-top: 14px; }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 60px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.feature { background: var(--bg); padding: 28px 24px; }
.alt .feature { background: var(--bg-2); }
.feature b { display: block; font-family: var(--display); font-size: 18px; margin-bottom: 6px; }
.feature span { color: var(--muted); font-size: 15px; }
.feature .fi { font-size: 22px; margin-bottom: 12px; display: block; color: var(--dev); font-family: var(--mono); }

/* ---------- Réalisations ---------- */
.projects { display: grid; gap: 140px; }
.project { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 70px; align-items: center; }
.project:nth-child(even) { grid-template-columns: 0.75fr 1.25fr; }
.project:nth-child(even) .project-visual { order: 2; }
.project-visual { position: relative; padding-bottom: 40px; }
.project-visual .mock { position: relative; width: 100%; transition: transform .6s var(--ease); }
.project-visual:hover .mock { transform: translateY(-6px) scale(1.01); }
.project-visual .phone { left: auto; right: -20px; top: auto; bottom: 0; width: 26%; min-width: 120px; animation: none; transform: translateY(var(--py, 0px)); transition: transform .2s linear; }
.project:nth-child(even) .project-visual .phone { right: auto; left: -20px; }
.project-visual .glow { position: absolute; inset: 10% 10% 0; z-index: -1; filter: blur(70px); opacity: .45; background: var(--pc, var(--dev)); border-radius: 50%; }
.project .num { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.project h3 { font-size: clamp(30px, 3.4vw, 44px); margin: 8px 0 4px; }
.project .kind { font-family: var(--mono); font-size: 14px; color: var(--pc, var(--dev)); margin: 0 0 18px; }
.project p { color: var(--muted); margin: 0 0 22px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; padding: 0; list-style: none; }
.chips li { font-size: 13px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--border-strong); color: var(--text); background: rgba(255,255,255,.03); }
.visit { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; padding-bottom: 4px; border-bottom: 1px solid var(--border-strong); transition: border-color .25s, gap .25s; }
.visit:hover { border-color: var(--pc, var(--dev)); gap: 14px; }

/* ---------- Terminal ---------- */
.sec-split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 60px; align-items: start; }
.terminal { background: #050608; border: 1px solid var(--border-strong); border-radius: var(--radius); overflow: hidden; font-family: var(--mono); font-size: 14px; line-height: 1.75; box-shadow: 0 30px 60px -30px rgba(255,207,61,.25); }
.terminal .bar { display: flex; gap: 7px; padding: 13px 16px; border-bottom: 1px solid var(--border); }
.terminal .bar i { width: 11px; height: 11px; border-radius: 50%; background: #2a313d; }
.terminal pre { margin: 0; padding: 22px 24px; white-space: pre-wrap; color: #c9d1dc; min-height: 340px; }
.terminal .line { display: block; opacity: 0; transform: translateX(-6px); transition: opacity .35s, transform .35s; }
.terminal.on .line { opacity: 1; transform: none; transition-delay: calc(var(--i) * 180ms); }
.terminal .c { color: #5f6b7d; } .terminal .k { color: var(--sec); } .terminal .ok { color: #5fd38d; } .terminal .warn { color: #ff7a59; } .terminal .hi { color: #ffb347; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 54px 1fr; gap: 18px; align-items: start; padding: 20px 22px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); transition: border-color .3s, transform .3s var(--ease); }
.steps li:hover { border-color: rgba(255,207,61,.35); transform: translateX(4px); }
.steps li::before { content: "0" counter(s); font-family: var(--display); font-size: 26px; font-weight: 600; color: var(--sec); line-height: 1.2; }
.steps h3 { margin: 0 0 4px; font-size: 18px; }
.steps p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- Manifeste ---------- */
.manifesto { padding: 150px 0; text-align: center; overflow: hidden; }
.manifesto p { font-family: var(--display); font-size: clamp(34px, 5.4vw, 72px); line-height: 1.08; letter-spacing: -0.03em; margin: 0 auto; max-width: 1000px; font-weight: 600; }
.manifesto .words span { display: inline-block; opacity: .15; transition: opacity .5s; }
.manifesto .words span.lit { opacity: 1; }
.manifesto small { display: block; margin-top: 30px; color: var(--muted); font-size: 18px; }

/* ---------- Chiffres ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { padding: 32px 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.stat b { display: block; font-family: var(--display); font-size: clamp(40px, 4.5vw, 58px); font-weight: 600; line-height: 1; letter-spacing: -0.03em; margin-bottom: 10px; }
.stat span { color: var(--muted); font-size: 15px; }

/* ---------- À propos ---------- */
.about { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 70px; align-items: start; }
.about-photo { position: sticky; top: 110px; }
.about-photo .frame { position: relative; border-radius: 24px; overflow: hidden; border: 1px solid var(--border-strong); }
.about-photo img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; transition: transform 1.2s var(--ease); }
.about-photo .frame:hover img { transform: scale(1.04); }
.about-photo .frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(7,8,11,.8), transparent 45%); }
.about-photo .cap { position: absolute; left: 22px; bottom: 20px; z-index: 1; }
.about-photo .cap strong { display: block; font-family: var(--display); font-size: 22px; }
.about-photo .cap span { color: var(--muted); font-size: 14px; }
.about-photo .creds { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.about-photo .creds span { font-size: 13px; padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); }
.about-text > p { font-size: 19px; color: var(--muted); margin: 0 0 22px; }
.about-text > p strong { color: var(--text); font-weight: 500; }
.timeline { list-style: none; margin: 40px 0 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 1px; background: var(--border-strong); }
.timeline::after { content: ""; position: absolute; left: 5px; top: 6px; width: 1px; height: calc(var(--tl, 0) * (100% - 12px)); background: var(--grad); }
.timeline li { position: relative; padding: 0 0 26px 34px; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 7px; width: 11px; height: 11px; border-radius: 50%; background: var(--bg-2); border: 2px solid var(--border-strong); z-index: 1; transition: border-color .4s, background .4s; }
.timeline li.lit::before { border-color: var(--sec); background: var(--sec); }
.timeline .when { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.timeline h3 { margin: 2px 0 3px; font-size: 18px; }
.timeline h3 small { color: var(--muted); font-weight: 400; font-size: 15px; font-family: var(--font); }
.timeline p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- Contact ---------- */
.contact { position: relative; overflow: hidden; border-radius: 30px; padding: 80px 60px; text-align: center; background: var(--surface); border: 1px solid var(--border-strong); isolation: isolate; }
.contact::before { content: ""; position: absolute; inset: -40%; z-index: -1; background: conic-gradient(from 0deg, transparent 0 60%, rgba(79,216,255,.25), rgba(255,207,61,.3), transparent 85%); animation: spin 12s linear infinite; }
.contact::after { content: ""; position: absolute; inset: 1px; z-index: -1; border-radius: 29px; background: radial-gradient(800px 400px at 50% 0%, rgba(255,207,61,.08), transparent 60%), var(--surface); }
@keyframes spin { to { transform: rotate(1turn); } }
.contact h2 { font-size: clamp(34px, 5vw, 60px); line-height: 1.05; margin: 0 0 18px; }
.contact p { color: var(--muted); font-size: 19px; max-width: 620px; margin: 0 auto 36px; }
.contact .hero-cta { justify-content: center; }
.contact-alt { display: flex; justify-content: center; flex-wrap: wrap; gap: 28px; margin-top: 34px; color: var(--muted); font-size: 15px; }
.contact-alt a { display: inline-flex; align-items: center; gap: 8px; transition: color .2s; }
.contact-alt a:hover { color: var(--text); }
.contact-alt svg { width: 18px; height: 18px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 34px 0; color: var(--muted); font-size: 14px; }
.site-footer .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.site-footer a:hover { color: var(--text); }

/* ---------- Apparition au défilement ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--d, 0) * 110ms); }
.js [data-reveal="left"] { transform: translateX(-40px); }
.js [data-reveal="right"] { transform: translateX(40px); }
.js [data-reveal="zoom"] { transform: scale(.94); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* =========================================================
   Effets liés au défilement (actifs seulement avec .scrolly)
   --enter : 0 quand l'élément entre en bas de l'écran, 1 quand il atteint le tiers haut
   --pass  : progression sur tout le passage de l'élément dans l'écran
   ========================================================= */

/* Titres de section : révélation par masque */
.scrolly .section-head h2 { clip-path: inset(-10% 0 100% 0); translate: 0 .5em; transition: clip-path 1.1s var(--ease) .1s, translate 1.1s var(--ease) .1s; }
.scrolly .section-head.in h2 { clip-path: inset(-10% 0 -20% 0); translate: 0 0; }

/* Deux pôles : les cartes se rapprochent depuis leur côté */
.scrolly .poles .pole.dev { translate: calc((1 - var(--enter, 1)) * -1 * min(160px, 22vw)) calc((1 - var(--enter, 1)) * 70px); rotate: calc((1 - var(--enter, 1)) * -6deg); opacity: calc(.1 + var(--enter, 1) * .9); }
.scrolly .poles .pole.sec { translate: calc((1 - var(--enter, 1)) * min(160px, 22vw)) calc((1 - var(--enter, 1)) * 70px); rotate: calc((1 - var(--enter, 1)) * 6deg); opacity: calc(.1 + var(--enter, 1) * .9); }
.scrolly .synergy { clip-path: inset(0 calc((1 - var(--enter, 1)) * 50%) round 18px); }

/* Cartes de services : montée en escalier avec bascule 3D */
.scrolly .services { perspective: 1100px; }
.scrolly .services .svc { translate: 0 calc((1 - var(--enter, 1)) * (90px + var(--i, 0) * 55px)); rotate: x calc((1 - var(--enter, 1)) * 28deg); opacity: calc(var(--enter, 1) * 1.7 - var(--i, 0) * .18); transform-origin: 50% 100%; }

/* Réalisations en vertical (mobile, tablette) : la capture se dévoile */
.scrolly .project-visual .mock { clip-path: inset(calc((1 - var(--enter, 1)) * 18%) calc((1 - var(--enter, 1)) * 12%) round 14px); }

/* Terminal : les lignes s'écrivent au fil du défilement, une ligne de scan descend */
.scrolly .terminal { position: relative; }
.scrolly .terminal .line { opacity: clamp(0, calc((var(--enter, 1) - .2) * 19 - var(--i)), 1); transform: none; transition: none; }
.scrolly .terminal::after { content: ""; position: absolute; left: 0; right: 0; height: 2px; top: calc(46px + (100% - 50px) * min(1, (var(--enter, 1) - .2) * 1.3)); background: linear-gradient(90deg, transparent, var(--sec), transparent); box-shadow: 0 0 18px 2px rgba(255, 207, 61, .45); opacity: clamp(0, calc((1 - var(--enter, 1)) * 4), 1); pointer-events: none; }

/* Étapes : une ligne de progression se remplit */
.scrolly .steps { position: relative; }
.scrolly .steps::before { content: ""; position: absolute; left: -18px; top: 12px; bottom: 12px; width: 2px; border-radius: 2px; background: rgba(255,255,255,.07); }
.scrolly .steps::after { content: ""; position: absolute; left: -18px; top: 12px; bottom: 12px; width: 2px; border-radius: 2px; background: linear-gradient(to bottom, var(--sec), #ff7a59); transform-origin: top; scale: 1 min(1, calc(var(--pass, 1) * 1.9)); box-shadow: 0 0 12px rgba(255, 207, 61, .5); }

/* Chiffres : montée en escalier */
.scrolly .stats .stat { translate: 0 calc((1 - var(--enter, 1)) * (50px + var(--i, 0) * 50px)); opacity: calc(var(--enter, 1) * 1.6 - var(--i, 0) * .15); }

/* À propos : parallaxe de la photo dans son cadre */
.scrolly .about-photo .frame img { scale: 1.16; translate: 0 calc((var(--pass, .5) - .5) * -90px); }

/* Contact : le bloc grandit en arrivant */
.scrolly .contact { scale: calc(.84 + var(--enter, 1) * .16); opacity: calc(.25 + var(--enter, 1) * .75); }

/* Bandeau : piloté par le défilement (vitesse et inclinaison) */
.scrolly .marquee-track { animation: none; will-change: transform; }

/* ---------- Réalisations : galerie horizontale épinglée (grands écrans) ---------- */
.hs-ui { display: none; }
.hmode .hs-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; align-items: center; }
.hmode .projects { display: flex; gap: 0; width: max-content; max-width: none; margin: 0; will-change: transform; }
.hmode .project, .hmode .project:nth-child(even) { width: 100vw; flex: none; padding: 40px max(48px, calc((100vw - 1200px) / 2)) 0; }
.hmode .project-visual { perspective: 1400px; }
.hmode .project .project-visual[data-reveal] { opacity: 1; transform: none; transition: none; }
.hmode .project .mock { clip-path: none; scale: calc(1 - var(--ad, 0) * .18); rotate: y calc(var(--d, 0) * -14deg); }
.hmode .project .phone { translate: calc(var(--d, 0) * 160px) 0; }
.hmode .project .glow { opacity: calc(.45 - var(--ad, 0) * .4); }
.hmode .project .project-text[data-reveal] { opacity: calc(1 - var(--ad, 0) * 1.3); transform: none; translate: calc(var(--d, 0) * 140px) 0; transition: none; }
.hmode .hs-ui { display: flex; align-items: center; gap: 14px; position: absolute; left: 50%; bottom: 5vh; translate: -50% 0; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.hmode .hs-count { color: var(--text); min-width: 2ch; }
.hmode .hs-bar { width: 180px; height: 2px; background: var(--border-strong); border-radius: 2px; overflow: hidden; }
.hmode .hs-bar i { display: block; height: 100%; background: var(--grad); transform-origin: left; transform: scaleX(var(--hp, 0)); }

/* ---------- Page profil (Melvin Bissor) ---------- */
.profile-hero { position: relative; padding: 170px 0 110px; overflow: hidden; }
.profile-hero::before, .profile-hero::after { content: ""; position: absolute; width: 620px; height: 620px; border-radius: 50%; filter: blur(110px); opacity: .22; pointer-events: none; }
.profile-hero::before { left: -220px; top: -120px; background: var(--sec); }
.profile-hero::after { right: -220px; bottom: -260px; background: var(--dev); }
.profile-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.25fr .75fr; gap: 70px; align-items: center; }
.profile-hero h1 { font-size: clamp(46px, 7vw, 92px); line-height: .98; letter-spacing: -0.035em; margin: 0 0 22px; }
.profile-hero .role { font-family: var(--mono); font-size: 15px; color: var(--muted); margin: 0 0 26px; }
.profile-hero .role b { color: var(--text); font-weight: 500; }
.profile-hero .lead { font-size: 20px; color: var(--muted); max-width: 620px; margin: 0 0 34px; }
.profile-hero .lead strong { color: var(--text); font-weight: 500; }
.profile-hero .hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.profile-photo { position: relative; }
.profile-photo .frame { position: relative; border-radius: 28px; overflow: hidden; border: 1px solid var(--border-strong); rotate: 2deg; transition: rotate .8s var(--ease); }
.profile-photo:hover .frame { rotate: 0deg; }
.profile-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.profile-photo .badge { position: absolute; z-index: 2; font-family: var(--mono); font-size: 13px; padding: 8px 14px; border-radius: 999px; background: rgba(12,14,19,.88); border: 1px solid var(--border-strong); backdrop-filter: blur(8px); white-space: nowrap; }
.profile-photo .badge.b-sec { left: -26px; top: 14%; color: var(--sec); }
.profile-photo .badge.b-dev { right: -22px; bottom: 16%; color: var(--dev); }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-top: 70px; position: relative; z-index: 1; }
.facts div { background: var(--bg); padding: 22px 24px; }
.facts dt { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.facts dd { margin: 0; font-size: 16px; }
.crafts { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.craft { --c: var(--dev); padding: 36px 34px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); border-top: 2px solid var(--c); }
.craft.sec { --c: var(--sec); }
.craft > h3 { font-size: 26px; margin: 0 0 8px; }
.craft > p { color: var(--muted); margin: 0 0 26px; }
.education { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.edu { padding: 26px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.edu .ico { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--sec); }
.edu b { display: block; font-family: var(--display); font-size: 20px; margin: 10px 0 4px; }
.edu span { color: var(--muted); font-size: 15px; }
.work-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.work-list a { display: grid; grid-template-columns: 70px 1fr 1fr 40px; align-items: center; gap: 20px; padding: 26px 8px; border-bottom: 1px solid var(--border); transition: background .3s, padding .4s var(--ease); }
.work-list a:hover { background: var(--surface); padding-left: 22px; }
.work-list .n { font-family: var(--mono); color: var(--muted); font-size: 14px; }
.work-list b { font-family: var(--display); font-size: clamp(22px, 2.6vw, 32px); font-weight: 600; }
.work-list .k { color: var(--muted); }
.work-list svg { color: var(--dev); transition: transform .3s var(--ease); }
.work-list a:hover svg { transform: translate(4px, -4px); }
.scrolly .profile-photo .frame img { scale: 1.12; translate: 0 calc((var(--pass, .5) - .5) * -60px); }
.scrolly .crafts .craft { translate: 0 calc((1 - var(--enter, 1)) * 80px); opacity: calc(.2 + var(--enter, 1) * .8); }
.scrolly .crafts .craft.sec { translate: 0 calc((1 - var(--enter, 1)) * 140px); }
.scrolly .education .edu { translate: 0 calc((1 - var(--enter, 1)) * (40px + var(--i, 0) * 40px)); opacity: calc(var(--enter, 1) * 1.6 - var(--i, 0) * .15); }
@media (max-width: 1080px) {
  .profile-grid { grid-template-columns: 1fr; gap: 56px; }
  .profile-photo { max-width: 380px; }
  .facts, .education { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .crafts { grid-template-columns: 1fr; }
  .work-list a { grid-template-columns: 44px 1fr 28px; }
  .work-list .k { display: none; }
}
@media (max-width: 640px) {
  .profile-hero { padding: 130px 0 80px; }
  .facts, .education { grid-template-columns: 1fr; }
  .profile-photo .badge.b-sec { left: 10px; }
  .profile-photo .badge.b-dev { right: 10px; }
}

/* ---------- Mentions légales ---------- */
.legal { padding: 140px 0 40px; max-width: 760px; }
.legal h1 { font-size: 40px; margin: 0 0 24px; }
.legal h2 { font-size: 22px; margin: 36px 0 10px; }
.legal p { color: var(--muted); }
.legal a { color: var(--sec); }
.todo { background: rgba(255, 207, 61, 0.12); color: var(--sec); padding: 1px 6px; border-radius: 4px; font-family: var(--mono); font-size: .9em; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .project, .project:nth-child(even) { grid-template-columns: 1fr; gap: 40px; }
  .project:nth-child(even) .project-visual { order: 0; }
  .about { grid-template-columns: 1fr; gap: 50px; }
  .about-photo { position: static; max-width: 380px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav-links { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 10px 20px 22px; background: rgba(7,8,11,.97); border-bottom: 1px solid var(--border); clip-path: inset(0 0 100% 0); transition: clip-path .4s var(--ease); }
  .nav-links.open { clip-path: inset(0 0 0 0); }
  .nav-links a { display: block; padding: 13px 4px; font-size: 18px; }
  .nav-links .lang-switch, .nav-links .nav-cta { display: inline-block; margin: 10px 0 0; text-align: center; }
  .poles, .services.three, .sec-split { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  section { padding: 96px 0; }
  .phone { width: 105px; border-radius: 20px; padding: 5px; }
  .phone img { border-radius: 15px; }
  .services, .features { grid-template-columns: 1fr; }
  .pole { padding: 34px 26px; }
  .pole .big { font-size: 120px; }
  .projects { gap: 100px; }
  .project-visual .phone { right: -6px; width: 30%; min-width: 0; }
  .project:nth-child(even) .project-visual .phone { left: -6px; }
  .contact { padding: 60px 24px; border-radius: 24px; }
  .stat { padding: 24px 18px; }
  .stat b { font-size: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .manifesto .words span { opacity: 1; }
}
