:root {
  --bg: #07070b; --fg: #f4f3f7; --muted: #8e8e9c; --line: rgba(255,255,255,.1);
  --glass: rgba(255,255,255,.055); --nav-bg: rgba(20,20,28,.55);
  --accent: #8b7cff; --accent2: #5ce1ff; --accent3: #ff7ab8; --on-accent: #07070b;
  --radius: 22px;
  --display: "Arial Narrow", "Helvetica Neue", Impact, system-ui, sans-serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
}
body.t-home  { --bg: #0b0814; --fg: #f3f0fb; --muted: #a79fc0; --line: rgba(190,170,255,.16); --glass: rgba(150,120,255,.07); --nav-bg: rgba(24,18,44,.6); --accent: #8b7cff; --accent2: #b9a8ff; --accent3: #a06bff; --on-accent: #0b0814; }
body.t-home .blobs i { opacity: .3; }
body.t-home .blobs i:nth-child(1) { background: radial-gradient(closest-side, #7c5cf0, transparent); } body.t-home .blobs i:nth-child(2) { background: radial-gradient(closest-side, #9a7cf5, transparent); opacity: .2; } body.t-home .blobs i:nth-child(3) { background: radial-gradient(closest-side, #6d4ad8, transparent); opacity: .22; }
body.t-forge { --bg: #0b0806; --accent: #ff6a1a; --accent2: #ffb347; --accent3: #ff3d00; }
body.t-corp  { --bg: #f5f4f0; --fg: #0a0a0a; --muted: #66665f; --line: rgba(0,0,0,.14); --glass: rgba(0,0,0,.04); --nav-bg: rgba(255,255,255,.65); --accent: #0a0a0a; --accent2: #0a0a0a; --accent3: #0a0a0a; --on-accent: #f5f4f0; }
body.t-army  { --bg: #0b0d08; --fg: #eceee2; --muted: #8d937b; --line: rgba(190,202,140,.16); --glass: rgba(200,212,150,.06); --accent: #b4c45f; --accent2: #d9c98b; --accent3: #6f7d3c; --on-accent: #0b0d08; }
body.t-dev   { --bg: #090d13; --fg: #d6e2f0; --muted: #66768c; --line: rgba(120,160,200,.16); --glass: rgba(120,170,220,.06); --accent: #39ff88; --accent2: #4fc3f7; --accent3: #c792ea; --on-accent: #04110a; --sans: var(--mono); }

* { box-sizing: border-box; margin: 0; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: 90px; }
body { overflow-x: clip; font: 17px/1.65 var(--sans); background: var(--bg); color: var(--fg); -webkit-font-smoothing: antialiased; min-height: 100svh; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img { max-width: 100%; }
.wrap { width: min(1080px, 100% - clamp(2.5rem, 9vw, 7rem)); margin-inline: auto; position: relative; z-index: 2; }
.muted { color: var(--muted); }

/* fond flou animé */
.blobs { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.blobs i { position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%; opacity: .38; animation: drift 22s ease-in-out infinite alternate; will-change: transform; }
.blobs i:nth-child(1) { background: radial-gradient(closest-side, var(--accent), transparent); left: -18vmax; top: -16vmax; }
.blobs i:nth-child(2) { background: radial-gradient(closest-side, var(--accent2), transparent); right: -20vmax; top: 24vh; animation-duration: 28s; animation-delay: -6s; opacity: .28; }
.blobs i:nth-child(3) { background: radial-gradient(closest-side, var(--accent3), transparent); left: 14vw; bottom: -30vmax; animation-duration: 34s; animation-delay: -12s; opacity: .22; }
@keyframes drift { to { transform: translate(8vmax, 6vmax) scale(1.18) rotate(30deg); } }
body.t-corp .blobs i { opacity: .09; filter: blur(130px); }
body.t-corp .blobs i:nth-child(1) { background: #b9b6ac; } body.t-corp .blobs i:nth-child(2) { background: #d8d5cc; } body.t-corp .blobs i:nth-child(3) { background: #9d9a90; }
.grain { position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .05; 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 baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.cursor-glow { position: fixed; left: 0; top: 0; width: 560px; height: 560px; border-radius: 50%; z-index: 1; pointer-events: none; opacity: 0; transition: opacity .4s; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 22%, transparent), transparent 65%); }

/* navigation par onglets */
.top { position: fixed; top: 14px; left: 0; right: 0; z-index: 60; display: flex; justify-content: center; align-items: center; gap: 1rem; padding: 0 1rem; pointer-events: none; }
.top > * { pointer-events: auto; }
.logo { position: absolute; left: clamp(1rem, 3vw, 2.5rem); font: 800 1.5rem var(--display); letter-spacing: .02em; }
.logo b { color: var(--accent); }
.tabs { display: flex; gap: 4px; padding: 5px; border-radius: 999px; background: var(--nav-bg); border: 1px solid var(--line); backdrop-filter: blur(22px) saturate(1.4); -webkit-backdrop-filter: blur(22px) saturate(1.4); box-shadow: 0 10px 40px rgba(0,0,0,.25); }
.tabs a { position: relative; display: flex; align-items: center; gap: .55rem; padding: .55rem 1.1rem; border-radius: 999px; font: 600 .9rem/1.2 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; letter-spacing: 0; color: var(--muted); transition: color .25s, background .25s; white-space: nowrap; }
.tabs a i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); box-shadow: 0 0 12px var(--c); border: 1px solid var(--line); transition: transform .3s; }
.tabs a:hover { color: var(--fg); } .tabs a:hover i { transform: scale(1.5); }
.tabs a.on { color: var(--fg); background: color-mix(in srgb, var(--c) 18%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 55%, transparent); }
@media (max-width: 760px) {
  .logo { display: none; }
  .top { top: auto; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); padding: 0 .55rem; }
  .tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2px; width: 100%; max-width: 460px; padding: 4px; }
  .tabs a { flex-direction: column; justify-content: center; align-items: center; gap: .22rem; min-width: 0; padding: .5rem 0 .45rem; font-size: clamp(.56rem, 2.4vw, .68rem) !important; letter-spacing: -.01em !important; line-height: 1.1; white-space: normal; hyphens: manual; overflow: visible; text-align: center; }
  .tabs a i { width: 8px; height: 8px; }
  body { padding-bottom: calc(78px + env(safe-area-inset-bottom, 0px)); }
}

/* éléments communs */
.eyebrow { color: var(--accent); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: .78rem; }
.btn { display: inline-flex; align-items: center; gap: .6rem; padding: .95rem 1.7rem; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-weight: 700; transition: transform .25s, box-shadow .25s; }
.btn:hover { transform: translateY(-3px); box-shadow: 0 12px 34px color-mix(in srgb, var(--accent) 45%, transparent); }
.btn.ghost { background: var(--glass); color: var(--fg); border: 1px solid var(--line); backdrop-filter: blur(14px); }
.btn.ghost:hover { border-color: var(--accent); box-shadow: none; }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.glass { background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius); backdrop-filter: blur(20px) saturate(1.3); -webkit-backdrop-filter: blur(20px) saturate(1.3); }
.title { font: 800 clamp(1.9rem, 4.6vw, 3.2rem)/1.05 var(--display); text-transform: uppercase; letter-spacing: -.01em; }
.section { padding: clamp(3.5rem, 8vw, 7rem) 0 1rem; }
.sec-head { margin-bottom: 2.2rem; display: grid; gap: .7rem; }
.sec-head p { color: var(--muted); max-width: 560px; }
.footer { position: relative; z-index: 2; width: min(1080px, 100% - clamp(2.5rem, 9vw, 7rem)); margin: 4rem auto 0; padding: 2rem 0; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; color: var(--muted); font-size: .9rem; }
.footer a:hover { color: var(--fg); }
.reveal { opacity: 0; transform: translateY(28px); filter: blur(10px); transition: opacity .8s, transform .8s, filter .8s; }
.reveal.in { opacity: 1; transform: none; filter: none; }
.tilt { transform-style: preserve-3d; transition: transform .25s ease-out, border-color .25s, opacity .8s, filter .8s; will-change: transform; }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.9); backdrop-filter: blur(12px); display: grid; place-items: center; align-content: center; gap: 1rem; padding: 1rem; color: #fff; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: min(1100px, 100%); max-height: 80svh; border-radius: 14px; }
.lightbox button { position: absolute; top: 1rem; right: 1.2rem; font-size: 1.6rem; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; filter: none; }
  .cursor-glow, #sparks { display: none; }
}

/* transition entre onglets : rideau en bandes */
.curtain { position: fixed; inset: 0; z-index: 300; display: flex; pointer-events: none; overflow: hidden; }
.curtain i { flex: 1; background: var(--cc, #8b5cf6); transform: translateY(100%); margin-inline: -.5px; }
.curtain b { position: absolute; inset: 0; display: grid; place-items: center; font: 800 clamp(2.2rem, 9vw, 6rem) var(--display); text-transform: uppercase; letter-spacing: -.02em; color: var(--cf, #fff); opacity: 0; transform: translateY(24px); }
html.go .curtain i { transform: none; transition: transform .38s cubic-bezier(.7, 0, .2, 1) calc(var(--n) * 28ms); }
html.go .curtain b { opacity: 1; transform: none; transition: opacity .25s .2s, transform .3s .2s; }
html.cv .curtain i { transform: none; }
html.cv .curtain b { opacity: 1; transform: none; }
html.cv.out .curtain i { transform: translateY(-100%); transition: transform .45s cubic-bezier(.7, 0, .2, 1) calc(var(--n) * 28ms); }
html.cv.out .curtain b { opacity: 0; transform: translateY(-24px); transition: opacity .2s, transform .3s; }
@media (prefers-reduced-motion: reduce) { .curtain { display: none; } }

/* Écrans tactiles et petits écrans : effets coûteux supprimés pour la fluidité (Firefox Android notamment) */
@media (max-width: 900px), (hover: none) {
  .blobs i { animation: none !important; will-change: auto; }
  .grain, .cursor-glow { display: none !important; }
  .glass, .tabs, .lightbox, .btn.ghost, .marquee, .filters button, .atouts li, .c.free, .c.busy, .seg, .nav-btns button, .fiche, .term { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
  .tabs { background: color-mix(in srgb, var(--bg) 90%, #fff 10%); }
  .glass { background: color-mix(in srgb, var(--glass) 100%, transparent); }
  .reveal { filter: none !important; transform: translateY(14px); transition: opacity .5s, transform .5s; }
  .reveal.in { transform: none; }
  .tilt { transform-style: flat; will-change: auto; transition: transform .25s ease-out, border-color .25s; }
  .tail i { animation: none !important; }
}

/* Entreprise : barre d'onglets sombre (comme les autres pages) */
body.t-corp { --nav-bg: rgba(16,16,16,.88); }
body.t-corp .tabs { border-color: rgba(255,255,255,.14); box-shadow: 0 10px 40px rgba(0,0,0,.35); }
body.t-corp .tabs a { color: #a0a0a0; }
body.t-corp .tabs a:hover, body.t-corp .tabs a.on { color: #fff; }
@media (max-width: 900px), (hover: none) { body.t-corp .tabs { background: #141414; } }
