  /* Direction : charte Fosfor (fond bleu nuit, cyan, titres lourds en capitales, univers spatial).
     n'boost reste présent en or : logo, pastilles « n'boost », bloc de contact. */
  :root[data-world="space"] {
    --paper: #11141A; --surface: #171B27; --ink: #FFFFFF; --muted: #DDE3F0; --line: #2A3042;
    --accent: #0DEDED; --accent-text: #0DEDED; --on-accent: #0B0E14;
    --display: "Gilroy", "Urbanist", "Montserrat", system-ui, sans-serif;
    --body: "Gilroy", "Urbanist", "Segoe UI", system-ui, sans-serif;
  }
  body { background: linear-gradient(180deg, #151827 0, #11141A 620px); background-color: #11141A; font-weight: 500; }
  :focus-visible { outline-color: var(--accent); }
  h1, h2, h3 { text-transform: uppercase; font-weight: 900; letter-spacing: .005em; line-height: 1.05; }
  h2 { font-size: clamp(1.8rem, 3.8vw, 2.8rem); }
  h3 { font-size: 1.15rem; letter-spacing: .02em; }
  .c { color: var(--accent); }
  .btn { background: var(--accent); border-color: var(--accent); color: var(--on-accent); text-transform: uppercase; letter-spacing: .04em; font-weight: 800; }
  .btn.ghost { background: transparent; color: #fff; border-color: #4A5370; }
  .btn.ghost:hover { background: #fff; color: #11141A; border-color: #fff; }
  .nav a { text-transform: uppercase; letter-spacing: .05em; font-size: .85rem; font-weight: 700; }
  .nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--accent); }
  .eyebrow { letter-spacing: .14em; }
  .outline { color: transparent; -webkit-text-stroke: 1.5px #fff; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; }
  .lead { color: var(--muted); }

  /* Hero : vidéo qui se lance seule derrière le bandeau de tête, comme sur hologramme3d.ca */
  .top { position: absolute; inset: 0 0 auto 0; z-index: 5; }
  .nav a.btn { border-bottom-color: var(--accent); color: var(--on-accent); }
  .hero { position: relative; overflow: hidden; padding: 170px 0 120px; min-height: 640px; display: grid; align-items: center;
          background: radial-gradient(circle at 75% 30%, rgba(13,237,237,.16), transparent 55%), #11141A; }
  .bgvid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .9s ease; z-index: 0; }
  .bgvid.ready { opacity: 1; }
  .veil { position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(17,20,26,.66) 0, rgba(17,20,26,.3) 45%, rgba(17,20,26,0) 100%), linear-gradient(0deg, #11141A 0, rgba(17,20,26,0) 14%); }
  .hero::before { content: ""; position: absolute; z-index: 1; inset: -20% 40% 20% -20%; background: repeating-conic-gradient(from 8deg at 0 100%, rgba(255,255,255,.05) 0 5deg, transparent 5deg 18deg); -webkit-mask-image: radial-gradient(circle at 0 100%, #000, transparent 70%); mask-image: radial-gradient(circle at 0 100%, #000, transparent 70%); pointer-events: none; }
  .hero-in { position: relative; z-index: 2; max-width: 760px; margin-left: max(20px, calc((100vw - var(--wrap)) / 2 + 20px)); margin-right: 20px; }
  .slogan { margin-bottom: 18px; font-size: clamp(1.3rem, 3vw, 2rem); line-height: 1; }
  .hero h1 { font-size: clamp(2.4rem, 5.6vw, 4.6rem); font-weight: 900; line-height: 1.02; margin-bottom: 24px; }
  .hero .actions { margin-top: 32px; }
  .hero-in h1, .hero-in .lead, .hero-in .slogan { text-shadow: 0 2px 18px rgba(0,0,0,.65); }
  .lockup { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 30px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; }
  .lockup .tag { border-radius: 999px; padding: .4rem .9rem; border: 1.5px solid var(--accent); color: var(--accent); }
  .lockup .tag.nb { border-color: #fff; color: #fff; }
  .lockup .x { color: var(--muted); }
  .site-foot { background: #0B0D12; color: #fff; }
  .site-foot a, .site-foot span { color: #fff; }
  .site-foot img.fos { height: 30px; width: auto; }
  .site-foot .logos { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
  .lockup .fl { height: 34px; width: auto; display: block; }
  .hero { background-image: linear-gradient(0deg, rgba(17,20,26,.55), rgba(17,20,26,.55)), url("img/hero-poster.jpg"); background-size: cover; background-position: center; }
  @media (prefers-reduced-motion: reduce) { .bgvid { transition: none; } }

  /* Dispositifs */
  .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
  .dev { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 26px; display: grid; gap: 10px; align-content: start; transition: border-color .2s ease, transform .2s ease; }
  .dev:hover { border-color: var(--accent); transform: translateY(-3px); }
  .dev p { color: var(--muted); font-size: 1rem; }
  .dev .use { font-size: .78rem; color: var(--accent); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }

  /* Qui fait quoi */
  .duo2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 40px; }
  .role { border-radius: 18px; background: var(--surface); padding: 30px; display: grid; gap: 14px; align-content: start; border-top: 6px solid var(--accent); }
  .role.nb { border-top-color: #fff; }
  .role .who { font-weight: 900; text-transform: uppercase; letter-spacing: .1em; font-size: .85rem; color: var(--accent); }
  .role.nb .who { color: #fff; }
  .role ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
  .role li { padding-left: 22px; position: relative; color: #E3E7F2; }
  .role li::before { content: ""; position: absolute; left: 0; top: .62em; width: 10px; height: 3px; border-radius: 2px; background: var(--accent); }
  .role.nb li::before { background: #fff; }

  /* Déroulé */
  .flow { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; counter-reset: f; }
  .flow li { counter-increment: f; border-top: 3px solid var(--accent); padding-top: 16px; display: grid; gap: 8px; align-content: start; }
  .flow li::before { content: counter(f); font-family: var(--display); font-weight: 900; font-size: 2rem; color: var(--accent); line-height: 1; }
  .flow h3 { font-size: 1.02rem; }
  .flow p { color: var(--muted); font-size: .98rem; }
  .flow .by { font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
  .flow .by.nb { color: #fff; }

  .who { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 40px; }
  .who div { border-left: 3px solid var(--accent); padding: 4px 0 4px 20px; display: grid; gap: 6px; }
  .who p { color: var(--muted); }
  .proof { margin-top: 40px; padding: 28px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); display: grid; gap: 10px; }
  .proof p { color: #E3E7F2; max-width: 80ch; }
  .proof .label { font-weight: 800; letter-spacing: .1em; text-transform: uppercase; font-size: .78rem; color: var(--accent); }

  /* Offre */
  .quote { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
  .quote .form { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 28px; }
  .quote .field input, .quote .field select, .quote .field textarea { background: #11141A; border-color: #2A3042; }
  .quote .mail { display: block; width: fit-content; margin-top: 22px; font: 900 1.3rem/1.2 var(--display); color: var(--accent); text-decoration-thickness: 3px; }
  .quote .nbnote { margin-top: 14px; color: var(--muted); font-size: .95rem; }

  @media (max-width: 960px) {
    .hero-grid, .quote, .duo2 { grid-template-columns: 1fr; gap: 32px; }
    .grid { grid-template-columns: 1fr 1fr; }
    .flow { grid-template-columns: 1fr 1fr; }
  }
  @media (max-width: 560px) { .grid, .flow, .who { grid-template-columns: 1fr; } }

  .dev { padding: 0; overflow: hidden; }
  .dev img { width: 100%; height: auto; aspect-ratio: 16/10; object-fit: cover; display: block; background: #1d2230; }
  .dev .body { padding: 22px 26px 26px; display: grid; gap: 10px; }
  .gal { padding: 0 0 70px; }
  .gal .wrap { }
  .gal .wrap { grid-template-columns: repeat(4, 1fr); }
  .gal figure { margin: 0; position: relative; overflow: hidden; border-radius: 14px; border: 1px solid var(--line); }
  .gal img { width: 100%; height: 100%; aspect-ratio: 4/5; object-fit: cover; display: block; transition: transform .5s ease; }
  .gal figure:hover img { transform: scale(1.05); }
  .gal figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 36px 14px 12px; background: linear-gradient(0deg, rgba(11,14,20,.92), rgba(11,14,20,0)); color: #fff; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; font-size: .8rem; }
  .credit { color: #fff; font-size: .8rem; margin-top: 14px; opacity: .85; }
  .zone { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; padding: 0; list-style: none; }
  .zone li { border: 1.5px solid var(--accent); color: #fff; border-radius: 999px; padding: .4rem .9rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: .78rem; }
  @media (max-width: 960px) { .gal .wrap { grid-template-columns: 1fr 1fr !important; } }
  @media (max-width: 560px) { .gal .wrap { grid-template-columns: 1fr !important; } }

  .cap { font-style: italic; font-size: .8rem; color: #fff; margin-top: 14px; opacity: .9; }
  .gal .cap { grid-column: 1 / -1; margin-top: 4px; }
  .vids { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
  .vid { display: grid; gap: 8px; align-content: start; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px; text-decoration: none; color: #fff; transition: border-color .2s ease, transform .2s ease; position: relative; }
  .vid:hover { border-color: var(--accent); transform: translateY(-3px); }
  .vid .play { width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: #0B0E14; display: grid; place-items: center; font-size: .9rem; padding-left: 3px; }
  .vid .kind { font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
  .vid .partner { font-weight: 800; color: #fff; font-size: .95rem; }
  .vid p { color: #fff; opacity: .88; font-size: .95rem; }
  .vid .go { font-weight: 800; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
  .nbref { margin-top: 22px; color: #fff; max-width: 80ch; }
  @media (max-width: 960px) { .vids { grid-template-columns: 1fr 1fr; } }
  @media (max-width: 560px) { .vids { grid-template-columns: 1fr; } }

  .vid { padding: 0; overflow: hidden; }
  .vid > :not(.thumb) { margin-left: 22px; margin-right: 22px; }
  .vid > .go { margin-bottom: 22px; }
  .vid > .kind { margin-top: 10px; }
  .vid .thumb { position: relative; display: block; margin: 0; }
  .vid .thumb img { width: 100%; height: auto; aspect-ratio: 16/10; object-fit: cover; display: block; transition: transform .5s ease; }
  .vid:hover .thumb img { transform: scale(1.05); }
  .vid .thumb { overflow: hidden; }
  .vid .play { position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px !important; font-size: 1.1rem; box-shadow: 0 0 0 8px rgba(13,237,237,.25); transition: transform .25s ease; }
  .vid:hover .play { transform: scale(1.12); }

  .vid .thumb { aspect-ratio: 16/10; display: grid; align-content: center; justify-items: start; padding: 0 22px; gap: 6px; background: radial-gradient(circle at 85% 20%, rgba(13,237,237,.3), transparent 55%), repeating-conic-gradient(from 8deg at 0 100%, rgba(255,255,255,.05) 0 5deg, transparent 5deg 18deg), #151A28; }
  .vid .brand { font: 900 clamp(1.5rem, 3vw, 2.1rem)/1 var(--display); text-transform: uppercase; letter-spacing: .01em; color: #fff; }
  .vid .what { font-weight: 800; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
  .vid .play { left: auto; right: 18px; top: auto; bottom: 18px; margin: 0 !important; width: 46px; height: 46px; }
  @media (max-width: 700px) {
    .nav a:not(.btn) { display: none; }
    .site-head { flex-wrap: nowrap; }
    .site-head .logo img { height: 36px; }
    .nav a.btn { padding: .55rem .9rem; font-size: .78rem; white-space: nowrap; }
    .hero { padding: 120px 0 64px; min-height: 0; }
    .hero h1 { font-size: clamp(1.9rem, 9vw, 2.6rem); }
    .slogan { font-size: 1.2rem; }
    section { padding-top: 56px; padding-bottom: 56px; }
  }

  .vid .thumb { padding: 0; background: #151A28; align-content: end; display: block; }
  .vid .thumb img { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; }
  .vid .thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(11,14,20,.92) 0, rgba(11,14,20,.35) 55%, rgba(11,14,20,0) 100%); }
  .vid .what, .vid .brand { position: absolute; left: 18px; z-index: 1; }
  .vid .what { bottom: 52px; }
  .vid .brand { bottom: 14px; font-size: clamp(1.6rem, 3.2vw, 2.3rem); text-shadow: 0 2px 14px rgba(0,0,0,.7); }
  .vid .play { z-index: 1; }
  .vid .cta-row { margin-top: 32px; }

  @media (max-width: 560px) {
    .dev img { aspect-ratio: 21/9; }
    .dev .body { padding: 16px 18px 18px; }
    .vid .thumb { aspect-ratio: 2/1; }
    .vid p { font-size: .9rem; }
    .flow { gap: 14px; }
  }

/* Ambiance Fosfor : ciel étoilé et animations */
#stars { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
body { background: radial-gradient(ellipse at 20% 0, #1a2140 0, transparent 55%), radial-gradient(ellipse at 90% 60%, #10243a 0, transparent 50%), #0D1017; background-attachment: fixed; }
main, .site-foot { position: relative; z-index: 1; }
#roles, #devis { background: rgba(23,27,39,.82) !important; }
.dev, .vid, .quote .form { background: rgba(23,27,39,.88); backdrop-filter: blur(2px); }
.fx .rv { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.fx .rv.in { opacity: 1; transform: none; }
.fx .dev.rv.in:hover, .fx .vid.rv.in:hover { transform: translateY(-4px); }
.dev:hover, .vid:hover { box-shadow: 0 0 0 1px var(--accent), 0 12px 40px -12px rgba(13,237,237,.45); }
.hero h1 .c { background: linear-gradient(90deg, #0DEDED, #7df9ff, #0DEDED); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: shine 4s linear infinite; }
@keyframes shine { to { background-position: -200% 0; } }
.hero .btn:not(.ghost) { animation: pulse 2.6s ease-in-out infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(13,237,237,.45); } 50% { box-shadow: 0 0 0 12px rgba(13,237,237,0); } }
.flow li::before { display: inline-block; animation: floaty 3.2s ease-in-out infinite; }
@keyframes floaty { 50% { transform: translateY(-5px); } }
.vid .play { animation: pulse 2.4s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .hero h1 .c, .hero .btn, .flow li::before, .vid .play { animation: none; } }
.hero h1 .c { text-shadow: none; filter: drop-shadow(0 2px 14px rgba(0,0,0,.6)); }
