:root {
  --ivory: #F4F1EA;
  --paper: #EEEAE1;
  --ink: #0C0D0F;
  --night: #0E1420; /* bleu nuit très sourd, zones sombres uniquement */
  --night-line: #1B2436;
  --blue: #2E5BFF;        /* bleu électrique */
  --blue-text: #2348D8;   /* AA sur ivoire */
  --glow: #FF6A3D;        /* corail incandescent */
  --ink-soft: #5E5B54;
  --ink-faint: #8A867D;
  --hair: rgba(12, 13, 15, .12);
  --hair-strong: rgba(12, 13, 15, .45);
  --accent: #E4572E;
  --accent-text: #B83A16; /* version foncée pour petit texte (AA) */
  --sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --gutter: clamp(1.25rem, 5vw, 4.5rem);
  --section: clamp(6rem, 14vw, 12rem);
  --ease: cubic-bezier(.22, .61, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.005em; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
::selection { background: var(--night); color: var(--ivory); }
:focus-visible { outline: 1px solid var(--accent-text); outline-offset: 5px; }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -3rem; background: var(--night); color: var(--ivory); padding: .6rem 1rem; z-index: 100; text-decoration: none; font-size: .9rem; }
.skip:focus { top: 1rem; }

/* NAV */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 1.35rem var(--gutter);
  background: color-mix(in srgb, var(--ivory) 90%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.nav__brand { font-weight: 500; text-decoration: none; letter-spacing: -.005em; font-size: .95rem; white-space: nowrap; }
.dot { color: var(--accent); }
.nav__links { display: flex; gap: clamp(1.1rem, 3vw, 2.5rem); }
.nav__links a { text-decoration: none; font-size: .875rem; color: var(--ink-soft); position: relative; padding: .2rem 0; transition: color .3s var(--ease); }
.nav__links a::after { content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }

/* HERO */
.hero {
  min-height: calc(100svh - 68px);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: clamp(1.5rem, 4vh, 2.5rem) var(--gutter) clamp(2.5rem, 7vh, 4.5rem);
  gap: 4rem;
}
.hero__meta { display: flex; justify-content: space-between; gap: 1rem; font-size: .8125rem; letter-spacing: .01em; color: var(--ink-soft); border-top: 1px solid var(--hair); padding-top: 1rem; }
.hero__title { display: flex; flex-direction: column; }
.hero__name {
  font-size: clamp(2.6rem, 10.5vw, 10rem);
  font-weight: 600; letter-spacing: -.045em; line-height: .95;
  margin-left: -.035em;
}
.hero__last { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.02em; }
.hero__line {
  font-size: clamp(1.35rem, 3.4vw, 3.1rem);
  font-weight: 400; letter-spacing: -.03em; line-height: 1.15;
  margin-top: clamp(1rem, 2.4vw, 1.8rem);
  color: var(--ink-soft);
}
.hero__line em { color: var(--accent); }
.hero__foot { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 2rem; }
.hero__sub { max-width: 27rem; color: var(--ink-soft); font-size: .975rem; }
.hero__cta {
  display: inline-flex; align-items: center; gap: .9rem;
  text-decoration: none; font-size: .9375rem; font-weight: 500;
  padding-bottom: .45rem; border-bottom: 1px solid var(--hair-strong);
  transition: border-color .4s var(--ease);
}
.hero__cta .arrow { display: inline-block; transition: transform .5s var(--ease); }
.hero__cta:hover { border-color: var(--ink); }
.hero__cta:hover .arrow { transform: translateY(3px); }

/* SECTION HEADS : colonne étiquette + titre */
.eyebrow { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); font-weight: 500; }
.section-head {
  display: grid; grid-template-columns: minmax(10rem, 1fr) 3fr; align-items: baseline; gap: 1.5rem;
  margin-bottom: clamp(3rem, 7vw, 6rem);
}
.section-title { font-size: clamp(2.1rem, 5.6vw, 5.25rem); font-weight: 500; letter-spacing: -.04em; line-height: 1; }
.section-title--sm { font-size: clamp(1.85rem, 4vw, 3.75rem); }
.label { font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); font-weight: 500; margin-bottom: 1rem; }

/* WORK */
.work { padding: var(--section) var(--gutter) calc(var(--section) * .8); }
.projects { border-top: 1px solid var(--hair-strong); }
.project { border-bottom: 1px solid var(--hair); }
.project__row {
  all: unset; box-sizing: border-box; cursor: pointer; width: 100%;
  display: grid; grid-template-columns: minmax(10rem, 1fr) 2fr 1fr 1.25rem; align-items: baseline; gap: 1.5rem;
  padding: clamp(1.6rem, 3.2vw, 2.6rem) 0;
  position: relative;
}
.project__row:focus-visible { outline: 1px solid var(--accent-text); outline-offset: -1px; }
.project__num { font-size: .8125rem; font-variant-numeric: tabular-nums; letter-spacing: .04em; color: var(--ink-faint); transition: color .4s var(--ease); }
.project__name {
  font-size: clamp(1.75rem, 4.6vw, 4.25rem); font-weight: 500; letter-spacing: -.04em; line-height: 1.02;
  transition: transform .7s var(--ease);
}
.project--lead .project__name { font-size: clamp(2.3rem, 7vw, 6.5rem); }
.project--quiet .project__name { font-size: clamp(1.4rem, 3.2vw, 2.75rem); color: var(--ink-soft); }
.project__cat { font-size: .875rem; color: var(--ink-soft); line-height: 1.45; }
.project__toggle { width: .9rem; height: .9rem; position: relative; align-self: center; justify-self: end; opacity: .7; transition: opacity .3s; }
.project__toggle::before, .project__toggle::after { content: ""; position: absolute; left: 50%; top: 50%; width: 100%; height: 1px; background: var(--ink); transform: translate(-50%, -50%); transition: transform .5s var(--ease); }
.project__toggle::after { transform: translate(-50%, -50%) rotate(90deg); }
.is-open .project__toggle::after { transform: translate(-50%, -50%) rotate(0); }

.project__row:hover .project__name { transform: translateX(.18em); }
.project__row:hover .project__toggle { opacity: 1; }
.project__row:hover .project__num, .is-open .project__num { color: var(--ink); }
.is-open .project__num::after { content: " —"; color: var(--accent); }

.project__panel { padding: 0 0 clamp(2.5rem, 5vw, 4rem); display: grid; grid-template-columns: minmax(10rem, 1fr) 3fr; gap: 1.5rem; }
.project__panel[hidden] { display: none; }
.project__body { grid-column: 2; display: grid; gap: 2.75rem; max-width: 60rem; }
.project__panel:not([hidden]) .project__body { animation: panel .7s var(--ease); }
@keyframes panel { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.project__lede { font-size: clamp(1.1rem, 1.7vw, 1.45rem); line-height: 1.45; letter-spacing: -.012em; max-width: 40rem; }
.project__cols { display: grid; grid-template-columns: 1.5fr 1fr; gap: 3rem; }
.project__cols .label:not(:first-child) { margin-top: 2rem; }
.facts li { padding: .6rem 0; border-top: 1px solid var(--hair); font-size: .9375rem; }
.facts li:last-child { border-bottom: 1px solid var(--hair); }
.tags { display: flex; flex-wrap: wrap; gap: .35rem 1.1rem; }
.tags li { font-size: .9375rem; color: var(--ink-soft); }
.tags li:not(:last-child)::after { content: "/"; margin-left: 1.1rem; color: var(--ink-faint); }

/* ABOUT */
.about {
  padding: var(--section) var(--gutter);
  display: grid; grid-template-columns: minmax(10rem, 1fr) 3fr; gap: 1.5rem; align-items: baseline;
  border-top: 1px solid var(--hair);
}
.about__text { max-width: 52rem; display: grid; gap: 2.5rem; }
.about__big { font-size: clamp(1.4rem, 2.9vw, 2.6rem); line-height: 1.22; letter-spacing: -.03em; font-weight: 400; }
.about__small { font-size: 1rem; color: var(--ink-soft); max-width: 26rem; }

/* SKILLS */
.skills { padding: 0 var(--gutter) var(--section); }
.skills__grid { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: clamp(1.5rem, 4vw, 4rem); }
.skills__group { border-top: 1px solid var(--hair-strong); padding-top: 1.25rem; }
.skills__group li { font-size: clamp(1.05rem, 1.6vw, 1.35rem); letter-spacing: -.02em; line-height: 1.75; }

/* CONTACT */
.contact { padding: var(--section) var(--gutter); border-top: 1px solid var(--hair); display: grid; gap: clamp(2rem, 4vw, 3rem); }
.contact__title { font-size: clamp(2.2rem, 7vw, 6.5rem); font-weight: 500; letter-spacing: -.045em; line-height: 1; max-width: 16ch; }
.contact__mail {
  justify-self: start; font-size: clamp(1rem, 2vw, 1.5rem); letter-spacing: -.015em;
  text-decoration: none; border-bottom: 1px solid var(--hair-strong); padding-bottom: .3rem; overflow-wrap: anywhere;
  transition: border-color .4s var(--ease);
}
.contact__mail span { display: inline-block; margin-left: .4em; transition: transform .5s var(--ease); }
.contact__mail:hover { border-color: var(--accent); }
.contact__mail:hover span { transform: translateX(4px); }

.footer { display: flex; justify-content: space-between; gap: 1rem; padding: 1.75rem var(--gutter); font-size: .8125rem; color: var(--ink-soft); border-top: 1px solid var(--hair); }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--ink); }

/* Reveal */
.js-reveal .reveal, .js-reveal .project { opacity: 0; transform: translateY(14px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.js-reveal .is-in { opacity: 1; transform: none; }

/* RESPONSIVE */
@media (max-width: 900px) {
  .section-head, .about, .project__panel { grid-template-columns: 1fr; }
  .section-head { gap: 1rem; }
  .project__body { grid-column: 1; }
  .project__row { grid-template-columns: 2.25rem 1fr 1rem; row-gap: .35rem; gap: 1rem; }
  .project__num { align-self: baseline; }
  .project__cat { grid-column: 2; grid-row: 2; }
  .project__toggle { grid-column: 3; grid-row: 1; }
  .project__panel { padding-left: 3.25rem; }
  .project__cols { grid-template-columns: 1fr; gap: 2rem; }
  .skills__grid { grid-template-columns: 1fr; row-gap: 2.5rem; }
  .footer__mid { display: none; }
}
@media (max-width: 520px) {
  .nav { padding-block: 1.1rem; }
  .nav__links { gap: .9rem; }
  .nav__links a { font-size: .8125rem; }
  .hero__meta { flex-direction: column; gap: .15rem; }
  .hero__foot { grid-template-columns: 1fr; }
  .project__panel { padding-left: 0; }
}

/* ================================================================
   Futurisme éditorial — studio 2030
   Base ivoire / encre, bleu électrique pour les détails importants,
   corail incandescent rare. Aucune taille de police modifiée.
   ================================================================ */

/* Grain minéral (SVG inline) */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 999; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.05 0 0 0 0 0.06 0 0 0 0 0.09 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .08; mix-blend-mode: multiply;
}
html { overflow-x: clip; }

/* ---------- NAV : verre fumé ---------- */
.nav {
  background: rgba(10, 11, 15, .52);
  backdrop-filter: blur(20px) saturate(1.5); -webkit-backdrop-filter: blur(20px) saturate(1.5);
  color: var(--ivory);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .08), 0 1px 0 rgba(46, 91, 255, .12);
}
.nav__links a { color: rgba(244, 241, 234, .72); }
.nav__links a:hover { color: var(--ivory); }
.nav__links a::after { background: linear-gradient(90deg, var(--blue), var(--ivory)); }
.nav :focus-visible { outline-color: #9DB3FF; }

/* ---------- HERO : zone sombre spatiale ---------- */
.hero {
  position: relative; isolation: isolate; overflow: clip;
  margin-top: -68px; padding-top: calc(68px + clamp(1.5rem, 4vh, 2.5rem)); min-height: 100svh;
  color: var(--ivory);
  background:
    radial-gradient(60% 55% at 78% 38%, rgba(46, 91, 255, .28), transparent 70%),
    radial-gradient(40% 40% at 62% 72%, rgba(255, 106, 61, .14), transparent 70%),
    radial-gradient(90% 70% at 10% 110%, rgba(11, 28, 110, .55), transparent 70%),
    linear-gradient(180deg, #07080B 0%, #0A0D16 60%, #0C0D0F 100%);
}
.hero::after { /* horizon architectural */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; z-index: -1;
  background: linear-gradient(90deg, transparent, rgba(46, 91, 255, .7) 35%, rgba(255, 106, 61, .6) 70%, transparent);
}
.hero__meta { color: rgba(244, 241, 234, .66); border-top-color: rgba(244, 241, 234, .14); }
.hero__line { color: #BFC3CC; }
.hero__line em { color: var(--glow); }
.hero__sub { color: #A8ADB8; }
.hero__cta { border-bottom-color: rgba(244, 241, 234, .35); }
.hero__cta:hover { border-bottom-color: var(--blue); }
.hero__cta .arrow { color: #8FA6FF; }
.hero :focus-visible { outline-color: #9DB3FF; }

/* ---------- SCULPTURE NUMÉRIQUE ---------- */
.sculpture {
  position: absolute; z-index: -1; pointer-events: none;
  width: min(56vw, 820px); aspect-ratio: 1; right: -3vw; top: 50%;
  transform: translateY(-50%);
  perspective: 1600px;
  animation: scIn 3.6s var(--ease) .2s both;
}
.sc-stage { position: absolute; inset: 0; transform-style: preserve-3d; animation: drift 26s ease-in-out infinite alternate; }
.sc-stage > * { position: absolute; }
.sc-halo {
  inset: 6%; border-radius: 50%;
  background:
    radial-gradient(closest-side at 58% 40%, rgba(46, 91, 255, .55), transparent),
    radial-gradient(closest-side at 44% 64%, rgba(255, 106, 61, .32), transparent);
  filter: blur(50px); transform: translateZ(-240px);
}
.sc-plane { border-radius: 34px; }
.sc-plane--back {
  left: 34%; top: 6%; width: 48%; height: 76%;
  background: linear-gradient(160deg, rgba(70, 110, 255, .62) 0%, rgba(11, 28, 110, .38) 45%, rgba(8, 10, 16, .08) 100%);
  border: 1px solid rgba(160, 188, 255, .32);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 40px 120px -20px rgba(46, 91, 255, .45);
  transform: translateZ(-140px) rotate(14deg);
}
.sc-sphere {
  left: 36%; top: 20%; width: 34%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #FFF1E9 0 2%, #FFB08F 9%, #FF6A3D 28%, #A92A0E 58%, #2A0C05 82%, #0C0D0F 100%);
  box-shadow: 0 0 90px 10px rgba(255, 106, 61, .35), inset -24px -34px 60px rgba(0, 0, 0, .55);
  transform: translateZ(30px);
  animation: float 16s ease-in-out infinite alternate;
}
.sc-sphere__rim { position: absolute; inset: -1px; border-radius: 50%; box-shadow: inset 2px 3px 0 rgba(255, 255, 255, .18); }
.sc-ring {
  left: 12%; top: 26%; width: 76%; aspect-ratio: 1; border-radius: 50%;
  background: conic-gradient(from 210deg, #5B6170, #F4F1EA 12%, #8C95A8 22%, #1A1F2B 38%, #C9D2E6 55%, #3C4455 70%, #EDEFF4 84%, #5B6170);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px));
  transform: translateZ(40px) rotateX(74deg) rotateZ(-22deg);
  animation: ring 70s linear infinite;
  opacity: .9;
}
.sc-plane--mid {
  left: 54%; top: 38%; width: 32%; height: 44%;
  background: linear-gradient(145deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .02) 60%, rgba(46, 91, 255, .10));
  backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border: 1px solid rgba(255, 255, 255, .22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 30px 80px -30px rgba(0, 0, 0, .8);
  transform: translateZ(120px) rotate(-8deg);
}
.sc-blade {
  left: 49%; top: 0; width: 1.5px; height: 92%;
  background: linear-gradient(180deg, transparent, #7C9BFF 22%, #FFFFFF 48%, var(--glow) 72%, transparent);
  box-shadow: 0 0 14px rgba(90, 130, 255, .8), 0 0 40px rgba(46, 91, 255, .35);
  transform: translateZ(90px) rotate(14deg);
}
.sc-plane--front {
  left: 14%; top: 56%; width: 40%; height: 28%;
  background: linear-gradient(200deg, rgba(24, 28, 40, .55), rgba(10, 11, 15, .25));
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .9);
  transform: translateZ(170px) rotate(6deg);
  overflow: hidden;
}
.sc-plane__edge { position: absolute; left: 8%; right: 8%; top: 0; height: 1px; background: linear-gradient(90deg, transparent, #DDE3F0, #FFFFFF, #8C95A8, transparent); }
.sc-beam {
  left: -10%; right: -10%; top: 63%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(46, 91, 255, .9) 40%, rgba(255, 255, 255, .9) 52%, transparent 80%);
  transform: translateZ(60px); opacity: .7;
}
.sc-floor {
  position: absolute; left: 10%; right: 10%; bottom: 2%; height: 16%;
  background: radial-gradient(closest-side, rgba(46, 91, 255, .35), transparent);
  filter: blur(24px);
}
@keyframes drift { from { transform: rotateX(10deg) rotateY(-16deg); } to { transform: rotateX(-4deg) rotateY(14deg) translateY(-2%); } }
@keyframes float { from { transform: translateZ(30px) translateY(0); } to { transform: translateZ(30px) translateY(-6%); } }
@keyframes ring { to { transform: translateZ(40px) rotateX(74deg) rotateZ(338deg); } }
@keyframes scIn { from { opacity: 0; transform: translateY(-46%) scale(.94); filter: blur(12px); } to { opacity: 1; transform: translateY(-50%); filter: none; } }
@keyframes scInM { from { opacity: 0; filter: blur(12px); } to { opacity: .9; filter: none; } }

/* Entrée lente du texte */
.js-reveal .hero .reveal { opacity: 1; transform: none; transition: none; }
.hero__meta, .hero__title, .hero__foot { animation: rise 1.8s var(--ease) both; }
.hero__title { animation-delay: .35s; }
.hero__foot { animation-delay: .8s; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); filter: blur(3px); } to { opacity: 1; transform: none; filter: none; } }

/* ---------- PROJETS : objets de collection ---------- */
.projects { border-top: 0; position: relative; }
.projects::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, var(--ink), var(--blue) 55%, rgba(255, 106, 61, .8) 85%, transparent);
}
.section-head .eyebrow::before, .skills .eyebrow::before, .about .eyebrow::before {
  content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: .7em; vertical-align: .12em;
  background: var(--blue); box-shadow: 0 0 0 3px rgba(46, 91, 255, .14);
}
.project { position: relative; isolation: isolate; }
.project::before { /* fond qui évolue au survol */
  content: ""; position: absolute; inset: 0 -1.25rem; z-index: -1; border-radius: 4px;
  background:
    radial-gradient(60% 140% at 85% 50%, rgba(46, 91, 255, .10), transparent 70%),
    linear-gradient(90deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 70%);
  opacity: 0; transition: opacity .9s var(--ease);
}
.project:hover::before, .project.is-open::before { opacity: 1; }

/* Numéro graphique : capsule chromée */
.project__num {
  justify-self: start; align-self: center;
  display: inline-flex; align-items: center; gap: .55em;
  padding: .32em .8em .32em .6em; border-radius: 999px;
  color: var(--ink); font-weight: 500;
  border: 1px solid transparent;
  background:
    linear-gradient(var(--ivory), var(--ivory)) padding-box,
    linear-gradient(135deg, #B9BFCC, #FFFFFF 30%, #7D8596 55%, #E6E9EF 80%, #9AA2B2) border-box;
  box-shadow: 0 1px 2px rgba(12, 13, 15, .08);
  transition: color .5s var(--ease), box-shadow .6s var(--ease);
}
.project__num::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: #9AA2B2; transition: background .5s, box-shadow .5s;
}
.project__row:hover .project__num, .is-open .project__num { color: var(--blue-text); box-shadow: 0 0 0 4px rgba(46, 91, 255, .07), 0 6px 18px -8px rgba(46, 91, 255, .5); }
.project__row:hover .project__num::before, .is-open .project__num::before { background: var(--blue); box-shadow: 0 0 8px rgba(46, 91, 255, .8); }
.is-open .project__num::after { content: none; }

/* Ligne lumineuse qui se prolonge */
.project__row::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, var(--blue), #9DB3FF 55%, var(--glow));
  box-shadow: 0 0 10px rgba(46, 91, 255, .45);
  transform: scaleX(0); transform-origin: left; transition: transform 1.1s var(--ease);
}
.project__row:hover::after, .project__row:focus-visible::after, .is-open .project__row::after { transform: scaleX(1); }
.project__toggle::before, .project__toggle::after { transition: transform .5s var(--ease), background .4s; }
.project__row:hover .project__toggle::before, .project__row:hover .project__toggle::after { background: var(--blue); }
.project__cat { transition: opacity .7s var(--ease), transform .7s var(--ease), color .5s; }
@media (hover: hover) {
  .project__cat { opacity: .8; }
  .project__row:hover .project__cat, .is-open .project__cat { opacity: 1; transform: translateX(3px); color: var(--ink); }
}
.tags li { color: var(--ink); }
.tags li:not(:last-child)::after { color: var(--blue); opacity: .6; }

/* ---------- À PROPOS : grande zone sombre ---------- */
.about {
  position: relative; isolation: isolate; overflow: clip;
  border-top: 0; color: var(--ivory);
  background:
    radial-gradient(50% 80% at 100% 0%, rgba(46, 91, 255, .30), transparent 70%),
    radial-gradient(40% 60% at 0% 100%, rgba(11, 28, 110, .6), transparent 70%),
    linear-gradient(180deg, #0A0D16, #0C0D0F);
}
.about::before { /* plan translucide architectural */
  content: ""; position: absolute; z-index: -1; right: -8%; top: 12%; width: 38%; height: 76%;
  border-radius: 40px; border: 1px solid rgba(255, 255, 255, .10);
  background: linear-gradient(150deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, 0) 60%);
  transform: rotate(-9deg);
}
.about .eyebrow { color: rgba(244, 241, 234, .6); }
.about .eyebrow::before { box-shadow: 0 0 10px rgba(46, 91, 255, .9); }
.about__big em { color: #9DB3FF; }
.about__small { color: #A8ADB8; }
.about :focus-visible { outline-color: #9DB3FF; }

/* ---------- COMPÉTENCES ---------- */
.skills { padding-top: var(--section); }
.skills__group { border-top: 0; position: relative; }
.skills__group::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, var(--ink), rgba(46, 91, 255, .7) 60%, transparent);
}

/* ---------- CONTACT + FOOTER : sombre, incandescent ---------- */
.contact {
  position: relative; isolation: isolate; overflow: clip;
  border-top: 0; color: var(--ivory);
  background:
    radial-gradient(45% 70% at 88% 100%, rgba(255, 106, 61, .22), transparent 70%),
    radial-gradient(55% 80% at 70% 0%, rgba(46, 91, 255, .22), transparent 70%),
    linear-gradient(180deg, #0C0D0F, #090A0E);
}
.contact::before { /* disque de verre */
  content: ""; position: absolute; z-index: -1; right: 6%; top: 50%; width: min(34vw, 420px); aspect-ratio: 1; border-radius: 50%;
  transform: translateY(-50%);
  background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, .16), rgba(255, 255, 255, .02) 55%, rgba(46, 91, 255, .12));
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 0 120px rgba(46, 91, 255, .18);
}
.contact__title em { color: var(--glow); }
.contact__mail { border-bottom-color: rgba(244, 241, 234, .35); }
.contact__mail:hover { border-color: var(--blue); }
.contact :focus-visible { outline-color: #9DB3FF; }

.footer {
  position: relative; overflow: hidden; isolation: isolate;
  background: #07080B; color: #9A9FAA; border-top: 1px solid rgba(255, 255, 255, .06);
  padding-block: 2.25rem;
}
.footer a:hover { color: var(--ivory); }
.footer__glow {
  position: absolute; z-index: -1; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(46, 91, 255, .8) 40%, rgba(255, 106, 61, .7) 65%, transparent);
  box-shadow: 0 0 24px rgba(46, 91, 255, .5);
}

/* ---------- MOBILE ---------- */
@media (max-width: 900px) {
  .sculpture { width: 118vw; right: -42vw; top: 3%; transform: none; animation-name: scInM; }
  .contact::before { width: 70vw; right: -30vw; }
  .about::before { width: 70%; right: -40%; }
  .project::before { inset: 0 -.75rem; }
}
@media (max-width: 520px) {
  .hero { padding-top: calc(60px + 1.5rem); margin-top: -60px; }
}

/* Ajustements : nav plus dense, colonne numéro élargie en mobile */
.nav { background: rgba(8, 9, 12, .8); }
@media (max-width: 900px) {
  .project__row { grid-template-columns: 3.6rem 1fr 1rem; }
  .project__panel { padding-left: 4.6rem; }
}
@media (max-width: 520px) {
  .project__row { grid-template-columns: 3.4rem 1fr 1rem; gap: .75rem; }
  .project__num { padding: .28em .6em .28em .5em; gap: .4em; }
  .project__panel { padding-left: 0; }
}

/* ================================================================
   Matières approfondies + détails architecturaux
   ================================================================ */
.nav { position: sticky; }
.nav::after { /* arête lumineuse sous le verre */
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent 5%, rgba(46, 91, 255, .55) 35%, rgba(255, 255, 255, .35) 55%, rgba(255, 106, 61, .45) 75%, transparent 95%);
}
.about, .contact { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07); }
.about__text { position: relative; }

/* Filet architectural sur fond ivoire */
.skills { position: relative; }
.skills::before {
  content: ""; position: absolute; left: var(--gutter); right: var(--gutter); top: calc(var(--section) * .45); height: 1px;
  background: linear-gradient(90deg, rgba(12, 13, 15, .5), rgba(12, 13, 15, .08) 40%, transparent);
}
.skills::after {
  content: ""; position: absolute; left: var(--gutter); top: calc(var(--section) * .45 - 4px); width: 9px; height: 9px;
  transform: rotate(45deg);
  background: linear-gradient(135deg, #FFFFFF, #9AA2B2 50%, #E6E9EF);
  box-shadow: 0 0 0 1px rgba(12, 13, 15, .25);
}

/* ================================================================
   SYSTÈMES — cartes de fonctionnement
   ================================================================ */
.systems {
  position: relative; isolation: isolate; overflow: clip;
  padding: var(--section) var(--gutter);
  color: var(--ivory);
  background:
    radial-gradient(55% 45% at 85% 12%, rgba(46, 91, 255, .22), transparent 70%),
    radial-gradient(45% 40% at 8% 58%, rgba(11, 28, 110, .55), transparent 70%),
    radial-gradient(40% 30% at 80% 92%, rgba(255, 106, 61, .10), transparent 70%),
    linear-gradient(180deg, #07080B, #0A0D16 50%, #090A0E);
}
.systems .eyebrow { color: rgba(244, 241, 234, .6); }
.systems .eyebrow::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: .7em; vertical-align: .12em; background: var(--blue); box-shadow: 0 0 10px rgba(46, 91, 255, .9); }
.systems .section-head { margin-bottom: clamp(2rem, 4vw, 3rem); }
.systems::after { /* sortie : arête lumineuse */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(46, 91, 255, .6) 30%, rgba(255, 255, 255, .4) 50%, rgba(255, 106, 61, .5) 70%, transparent);
}

/* Linteau d'entrée */
.arch-lintel { position: absolute; left: var(--gutter); right: var(--gutter); top: calc(var(--section) * .45); height: 1px;
  background: linear-gradient(90deg, rgba(244, 241, 234, .35), rgba(46, 91, 255, .5) 50%, rgba(244, 241, 234, .1)); }
.arch-lintel span { position: absolute; top: -4px; width: 9px; height: 9px; transform: rotate(45deg);
  background: linear-gradient(135deg, #FFFFFF, #7D8596 50%, #DDE3F0); box-shadow: 0 0 12px rgba(46, 91, 255, .5); }
.arch-lintel span:nth-child(1) { left: 0; }
.arch-lintel span:nth-child(2) { left: 50%; }
.arch-lintel span:nth-child(3) { right: 0; }

/* Jointure entre les deux cartes */
.arch-joint { position: relative; height: clamp(4rem, 8vw, 7rem); margin-left: calc(50% - .5px); width: 1px;
  background: linear-gradient(180deg, transparent, rgba(46, 91, 255, .7), rgba(255, 106, 61, .6), transparent); }
.arch-joint::after { content: ""; position: absolute; left: -4px; top: calc(50% - 4px); width: 9px; height: 9px; transform: rotate(45deg);
  border: 1px solid rgba(221, 227, 240, .7); background: #0A0D16; }

/* --- Carte --- */
.map { position: relative; }
.map__head { display: grid; grid-template-columns: minmax(10rem, 1fr) 3fr; gap: 1.5rem; align-items: end; margin-bottom: clamp(1.75rem, 3.5vw, 2.75rem); }
.map__title { grid-column: 1 / -1; font-size: clamp(1.85rem, 4vw, 3.75rem); font-weight: 500; letter-spacing: -.04em; line-height: 1.05; }
.map__title em { color: #9DB3FF; display: block; }
.map--galaxy .map__title em { color: var(--glow); }
.map__lede { grid-column: 2; max-width: 34rem; color: #A8ADB8; font-size: 1rem; }

.map__stage {
  position: relative; isolation: isolate;
  padding: clamp(2rem, 4vw, 3.5rem);
  border-radius: 28px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .015) 40%, rgba(46, 91, 255, .05)),
    rgba(8, 10, 16, .55);
  border: 1px solid transparent;
  background-clip: padding-box;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .14),
    inset 0 0 0 1px rgba(255, 255, 255, .07),
    0 50px 120px -40px rgba(0, 0, 0, .9),
    0 0 0 1px rgba(46, 91, 255, .10);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.map__stage::before { /* arête chromée supérieure */
  content: ""; position: absolute; left: 6%; right: 6%; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, #DDE3F0 30%, #FFFFFF 50%, #8C95A8 70%, transparent);
  opacity: .6;
}
.map__glow { position: absolute; inset: 0; z-index: -1; border-radius: inherit; overflow: hidden; pointer-events: none; }
.map__glow::before {
  content: ""; position: absolute; width: 60%; aspect-ratio: 1; left: 20%; top: -20%;
  background: radial-gradient(closest-side, rgba(46, 91, 255, .22), transparent);
  filter: blur(30px); animation: mapGlow 22s ease-in-out infinite alternate;
}
.map--galaxy .map__glow::before { background: radial-gradient(closest-side, rgba(46, 91, 255, .2), rgba(255, 106, 61, .06) 60%, transparent); }
@keyframes mapGlow { to { transform: translateX(30%) translateY(10%); } }

/* Flux principal */
.map__flow { position: relative; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: clamp(.75rem, 1.4vw, 1.25rem); }
.map--galaxy .map__flow { --n: 7; }
.map--nerys .map__flow { --n: 5; }
.map__flow::before, .map__flow::after { /* piste + circulation lumineuse */
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; z-index: 0; pointer-events: none;
}
.map__flow::before { background: linear-gradient(90deg, rgba(46, 91, 255, .15), rgba(157, 179, 255, .55) 50%, rgba(255, 106, 61, .35)); }
.map__flow::after {
  height: 2px; margin-top: -.5px;
  background: linear-gradient(90deg, transparent, rgba(157, 179, 255, .95), #FFFFFF, rgba(255, 106, 61, .9), transparent) no-repeat;
  background-size: 22% 100%;
  filter: drop-shadow(0 0 6px rgba(46, 91, 255, .9));
  animation: flowX 11s linear infinite;
}
.map--nerys .map__flow::after { animation-duration: 9s; }
@keyframes flowX { from { background-position: -30% 0; } to { background-position: 130% 0; } }

.node, .sat {
  position: relative; z-index: 1; outline: none;
  display: flex; flex-direction: column; justify-content: space-between; gap: 1.25rem;
  padding: 1rem 1.05rem 1.1rem;
  border-radius: 16px;
  background: linear-gradient(165deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .025) 55%, rgba(12, 16, 28, .6));
  border: 1px solid rgba(255, 255, 255, .13);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 18px 40px -24px rgba(0, 0, 0, .9);
  backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3);
  transition: border-color .6s var(--ease), box-shadow .6s var(--ease), background .6s var(--ease), transform .6s var(--ease);
  cursor: default;
}
.node { min-height: 7.5rem; }
.node__idx { font-size: .6875rem; letter-spacing: .14em; color: rgba(244, 241, 234, .5); font-variant-numeric: tabular-nums; display: inline-flex; align-items: center; gap: .5em; }
.node__idx::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #7D8596; transition: background .5s, box-shadow .5s; }
.node__label, .sat__label { font-size: .9375rem; line-height: 1.3; letter-spacing: -.01em; color: var(--ivory); font-weight: 500; }

.node--key, .sat--key {
  border-color: transparent;
  background:
    linear-gradient(165deg, rgba(46, 91, 255, .22), rgba(255, 255, 255, .03) 60%, rgba(12, 16, 28, .7)) padding-box,
    linear-gradient(135deg, #DDE3F0, rgba(157, 179, 255, .9) 35%, #5B6170 60%, #FFFFFF 85%) border-box;
}
.node--key .node__idx::before { background: var(--blue); box-shadow: 0 0 8px rgba(46, 91, 255, .9); }
.map--galaxy .node--key { background:
    linear-gradient(165deg, rgba(255, 106, 61, .18), rgba(255, 255, 255, .03) 60%, rgba(12, 16, 28, .7)) padding-box,
    linear-gradient(135deg, #DDE3F0, rgba(255, 150, 110, .9) 35%, #5B6170 60%, #FFFFFF 85%) border-box; }
.map--galaxy .node--key .node__idx::before { background: var(--glow); box-shadow: 0 0 8px rgba(255, 106, 61, .9); }

/* Survol / focus : le module s'éclaire */
.node:hover, .node:focus, .sat:hover, .sat:focus {
  border-color: rgba(157, 179, 255, .55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 0 0 1px rgba(46, 91, 255, .35), 0 0 36px -6px rgba(46, 91, 255, .55), 0 18px 40px -24px rgba(0, 0, 0, .9);
  transform: translateY(-2px);
  z-index: 5;
}
.node:hover .node__idx::before, .node:focus .node__idx::before { background: #9DB3FF; box-shadow: 0 0 10px rgba(46, 91, 255, 1); }

/* Explication courte */
.node__tip {
  position: absolute; top: calc(100% + .7rem); left: 50%; width: 15rem; z-index: 10;
  padding: .8rem .95rem; border-radius: 12px;
  font-size: .8125rem; line-height: 1.45; color: #D9DCE3; font-weight: 400; letter-spacing: 0;
  background: rgba(10, 12, 20, .92);
  border: 1px solid rgba(157, 179, 255, .3);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .9), 0 0 24px -10px rgba(46, 91, 255, .6);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  opacity: 0; transform: translate(-50%, -4px); pointer-events: none;
  transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.node:first-child .node__tip, .sat:first-child .node__tip { left: 0; transform: translate(0, -4px); }
.node:last-child .node__tip, .sat:last-child .node__tip { left: auto; right: 0; transform: translate(0, -4px); }
.node:hover .node__tip, .node:focus .node__tip, .sat:hover .node__tip, .sat:focus .node__tip { opacity: 1; transform: translate(-50%, 0); }
.node:first-child:hover .node__tip, .node:first-child:focus .node__tip, .sat:first-child:hover .node__tip, .sat:first-child:focus .node__tip,
.node:last-child:hover .node__tip, .node:last-child:focus .node__tip, .sat:last-child:hover .node__tip, .sat:last-child:focus .node__tip { transform: none; }
.sat .node__tip { top: auto; bottom: calc(100% + .7rem); }

/* Modules reliés */
.map__satlabel { margin: clamp(3rem, 5vw, 4rem) 0 1rem; font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(244, 241, 234, .5); }
.map__sats { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: clamp(.75rem, 1.4vw, 1.25rem); position: relative; }
.map__sats::before { /* bus de liaison */
  content: ""; position: absolute; left: 1rem; right: 1rem; top: -1.6rem; height: 1px;
  background: linear-gradient(90deg, rgba(157, 179, 255, .1), rgba(157, 179, 255, .45) 50%, rgba(157, 179, 255, .1));
}
.sat { padding: .85rem 1rem; gap: .5rem; background: linear-gradient(165deg, rgba(255, 255, 255, .06), rgba(12, 16, 28, .5)); border-style: solid; border-color: rgba(255, 255, 255, .1); }
.sat::before { /* connecteur vertical vers le bus */
  content: ""; position: absolute; left: 1.4rem; top: -1.6rem; width: 1px; height: 1.6rem;
  background: linear-gradient(180deg, rgba(157, 179, 255, .6), rgba(157, 179, 255, .15));
}
.sat::after { content: ""; position: absolute; left: calc(1.4rem - 2px); top: calc(-1.6rem - 2px); width: 5px; height: 5px; border-radius: 50%; background: #9DB3FF; box-shadow: 0 0 8px rgba(46, 91, 255, .9); }
.sat--key::before { background: linear-gradient(180deg, rgba(255, 106, 61, .7), rgba(157, 179, 255, .15)); }

/* Apparition au scroll */
.js-reveal .map__stage { opacity: 0; transform: translateY(24px) scale(.985); transition: opacity 1.4s var(--ease), transform 1.4s var(--ease); }
.js-reveal .map .node, .js-reveal .map .sat { opacity: 0; transform: translateY(10px); transition: opacity .9s var(--ease) calc(.3s + var(--i) * .12s), transform .9s var(--ease) calc(.3s + var(--i) * .12s), border-color .6s, box-shadow .6s; }
.js-reveal .map .sat { transition-delay: calc(1s + var(--i) * .1s); }
.js-reveal .map.is-in .map__stage { opacity: 1; transform: none; }
.js-reveal .map.is-in .node, .js-reveal .map.is-in .sat { opacity: 1; transform: none; }
.js-reveal .map.is-in .node:hover, .js-reveal .map.is-in .sat:hover, .js-reveal .map.is-in .node:focus, .js-reveal .map.is-in .sat:focus { transform: translateY(-2px); transition-delay: 0s; }
.js-reveal .map .map__head { opacity: 0; transform: translateY(14px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.js-reveal .map.is-in .map__head { opacity: 1; transform: none; }

/* --- Cartes verticales (tablette / mobile) --- */
@media (max-width: 1080px) {
  .map__head { grid-template-columns: 1fr; }
  .map__lede { grid-column: 1; }
  .map__flow { grid-template-columns: 1fr; padding-left: 2rem; gap: .75rem; }
  .map__flow::before, .map__flow::after { left: .55rem; right: auto; top: 0; bottom: 0; width: 1px; height: auto; margin-top: 0; }
  .map__flow::before { background: linear-gradient(180deg, rgba(46, 91, 255, .2), rgba(157, 179, 255, .55) 50%, rgba(255, 106, 61, .4)); }
  .map__flow::after { width: 2px; margin-left: -.5px; background: linear-gradient(180deg, transparent, rgba(157, 179, 255, .95), #FFFFFF, rgba(255, 106, 61, .9), transparent) no-repeat; background-size: 100% 18%; animation-name: flowY; }
  @keyframes flowY { from { background-position: 0 -30%; } to { background-position: 0 130%; } }
  .node { min-height: 0; gap: .45rem; }
  .node::after { content: ""; position: absolute; left: calc(-2rem + .55rem - 3px); top: 1.35rem; width: 7px; height: 7px; border-radius: 50%; background: #0A0D16; border: 1px solid #9DB3FF; }
  .node--key::after { background: var(--blue); box-shadow: 0 0 10px rgba(46, 91, 255, .9); }
  .map--galaxy .node--key::after { background: var(--glow); border-color: var(--glow); box-shadow: 0 0 10px rgba(255, 106, 61, .9); }
  /* explications toujours visibles, dans le flux */
  .node__tip, .sat .node__tip,
  .node:first-child .node__tip, .node:last-child .node__tip, .sat:first-child .node__tip, .sat:last-child .node__tip {
    position: static; width: auto; opacity: 1; transform: none; pointer-events: auto;
    padding: 0; background: none; border: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none;
    color: #A8ADB8;
  }
  .map__sats { grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
  .map__sats::before, .sat::before, .sat::after { display: none; }
  .map__satlabel { margin-top: 2.25rem; }
  .node:hover, .sat:hover { transform: none; }
}
@media (max-width: 520px) {
  .map__stage { padding: 1.4rem 1rem; border-radius: 20px; }
  .map__flow { padding-left: 1.6rem; }
  .map__flow::before, .map__flow::after { left: .4rem; }
  .node::after { left: calc(-1.6rem + .4rem - 3px); }
  .map__sats { grid-template-columns: 1fr; }
  .arch-lintel span:nth-child(2) { display: none; }
}

/* Modules clés : verre teinté opaque sous l'arête chromée */
.node--key, .sat--key {
  background:
    linear-gradient(165deg, rgba(46, 91, 255, .26), rgba(255, 255, 255, .03) 60%, rgba(12, 16, 28, 0)) padding-box,
    linear-gradient(#0B0F1B, #0B0F1B) padding-box,
    linear-gradient(135deg, #DDE3F0, rgba(157, 179, 255, .9) 35%, #5B6170 60%, #FFFFFF 85%) border-box;
}
.map--galaxy .node--key {
  background:
    linear-gradient(165deg, rgba(255, 106, 61, .22), rgba(255, 255, 255, .03) 60%, rgba(12, 16, 28, 0)) padding-box,
    linear-gradient(#0E0D12, #0E0D12) padding-box,
    linear-gradient(135deg, #DDE3F0, rgba(255, 150, 110, .9) 35%, #5B6170 60%, #FFFFFF 85%) border-box;
}

/* ================================================================
   Carte ArchiEasy — identité architecturale (cadres, plans, cotes)
   ================================================================ */
.map--archi .map__flow { --n: 6; }
.map--archi .map__satlabel { margin-bottom: 2.6rem; }
.map--archi .map__title em { color: #9DB3FF; }
.map--archi .map__stage { border-radius: 10px; }
.map--archi .map__stage::before { left: 0; right: 0; opacity: .35; }

/* Cadre intérieur avec repères d'angle */
.map__frame {
  position: absolute; inset: 14px; pointer-events: none; z-index: 0;
  border: 1px solid rgba(157, 179, 255, .08);
  --c: rgba(221, 227, 240, .55);
  background:
    linear-gradient(var(--c), var(--c)) top left / 18px 1px,
    linear-gradient(var(--c), var(--c)) top left / 1px 18px,
    linear-gradient(var(--c), var(--c)) top right / 18px 1px,
    linear-gradient(var(--c), var(--c)) top right / 1px 18px,
    linear-gradient(var(--c), var(--c)) bottom left / 18px 1px,
    linear-gradient(var(--c), var(--c)) bottom left / 1px 18px,
    linear-gradient(var(--c), var(--c)) bottom right / 18px 1px,
    linear-gradient(var(--c), var(--c)) bottom right / 1px 18px;
  background-repeat: no-repeat;
}

/* Modules : volumes plus architecturaux */
.map--archi .node, .map--archi .sat { border-radius: 6px; }
.map--archi .node {
  background:
    linear-gradient(165deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .02) 55%, rgba(12, 16, 28, .6)),
    linear-gradient(90deg, rgba(157, 179, 255, .35), rgba(157, 179, 255, .35)) top left / 100% 1px no-repeat;
}
.map--archi .node--key, .map--archi .sat--key {
  background:
    linear-gradient(165deg, rgba(255, 106, 61, .20), rgba(255, 255, 255, .03) 60%, rgba(12, 16, 28, 0)) padding-box,
    linear-gradient(#0E0D12, #0E0D12) padding-box,
    linear-gradient(135deg, #DDE3F0, rgba(255, 150, 110, .9) 35%, #5B6170 60%, #FFFFFF 85%) border-box;
}
.map--archi .node--key .node__idx::before { background: var(--glow); box-shadow: 0 0 8px rgba(255, 106, 61, .9); }
.map--archi .sat--key::before { background: linear-gradient(180deg, rgba(255, 106, 61, .7), rgba(157, 179, 255, .15)); }

/* Piste en ligne de cote : graduations fines */
.map--archi .map__flow::before {
  height: 9px; margin-top: -4px;
  background:
    linear-gradient(90deg, rgba(46, 91, 255, .2), rgba(157, 179, 255, .6) 50%, rgba(255, 106, 61, .4)) center / 100% 1px no-repeat,
    repeating-linear-gradient(90deg, rgba(157, 179, 255, .35) 0 1px, transparent 1px 28px) center / 100% 5px no-repeat;
}
.map--archi .map__flow::after { animation-duration: 13s; }

/* Zone « Ma contribution » */
.contrib {
  position: relative; z-index: 1;
  margin-top: clamp(2rem, 4vw, 3rem);
  display: grid; grid-template-columns: minmax(10rem, 1fr) 3fr; gap: 1.5rem; align-items: baseline;
  padding: 1.4rem 1.5rem;
  border-radius: 6px;
  background: linear-gradient(120deg, rgba(46, 91, 255, .10), rgba(255, 255, 255, .02) 60%);
  border: 1px solid rgba(157, 179, 255, .18);
  box-shadow: inset 3px 0 0 rgba(157, 179, 255, .7);
}
.contrib__label { font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase; color: #9DB3FF; }
.contrib__text { color: #D9DCE3; max-width: 40rem; font-size: 1rem; }
.js-reveal .map--archi .contrib { opacity: 0; transform: translateY(10px); transition: opacity 1s var(--ease) 1.5s, transform 1s var(--ease) 1.5s; }
.js-reveal .map--archi.is-in .contrib { opacity: 1; transform: none; }

@media (max-width: 1080px) {
  .map--archi .map__flow::before { height: auto; margin-top: 0; width: 1px;
    background: linear-gradient(180deg, rgba(46, 91, 255, .2), rgba(157, 179, 255, .55) 50%, rgba(255, 106, 61, .4)); }
  .map--archi .node:not(.node--key) { background: linear-gradient(165deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .02) 55%, rgba(12, 16, 28, .6)); }
  .map--archi .node--key::after { background: var(--glow); border-color: var(--glow); box-shadow: 0 0 10px rgba(255, 106, 61, .9); }
  .contrib { grid-template-columns: 1fr; gap: .6rem; }
  .map--archi .map__satlabel { margin-bottom: 1rem; }
}
@media (max-width: 520px) {
  .map__frame { inset: 8px; }
}

/* ================================================================
   Sobriété éditoriale — les cartes deviennent des diagrammes
   (surcouche : contenu et structure inchangés)
   ================================================================ */

/* Hero : moins d'effets empilés */
.sc-beam, .sc-floor { display: none; }
.sc-halo { opacity: .55; }
.sc-blade { box-shadow: none; opacity: .7; }
.sc-sphere { box-shadow: 0 0 60px rgba(255, 106, 61, .18), inset -24px -34px 60px rgba(0, 0, 0, .55); }
.hero::after { opacity: .45; }
.nav::after { opacity: .35; }

/* Section : ivoire, lignes d'encre */
.systems { background: var(--ivory); color: var(--ink); }
.systems::after { background: var(--hair); }
.systems .eyebrow { color: var(--ink-soft); }
.systems .eyebrow::before { background: var(--ink); box-shadow: none; }
.systems :focus-visible, .systems .node:focus, .systems .sat:focus { outline: 1px solid var(--ink); outline-offset: 3px; }

.arch-lintel { background: var(--hair-strong); }
.arch-lintel span { width: 7px; height: 7px; top: -3px; transform: none; background: var(--ivory); border: 1px solid var(--ink); box-shadow: none; }
.arch-joint { background: var(--hair-strong); }
.arch-joint::after { background: var(--ivory); border-color: var(--ink); transform: none; left: -3px; width: 7px; height: 7px; top: calc(50% - 3px); }

.systems .map__title em, .systems .map--galaxy .map__title em, .systems .map--archi .map__title em { color: var(--ink-soft); }
.systems .map__lede { color: var(--ink-soft); }

/* Planche */
.systems .map__stage {
  background: rgba(255, 255, 255, .38);
  border: 1px solid var(--hair);
  border-radius: 2px;
  box-shadow: none;
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
.systems .map__stage::before, .systems .map__glow { display: none; }
.map__frame { --c: rgba(12, 13, 15, .45); border-color: rgba(12, 13, 15, .06); }

/* Piste : trait fin, circulation très lente et discrète */
.systems .map__flow::before { background: rgba(12, 13, 15, .28); height: 1px; margin-top: 0; }
.systems .map--archi .map__flow::before {
  height: 7px; margin-top: -3px;
  background:
    linear-gradient(rgba(12, 13, 15, .28), rgba(12, 13, 15, .28)) center / 100% 1px no-repeat,
    repeating-linear-gradient(90deg, rgba(12, 13, 15, .22) 0 1px, transparent 1px 28px) center / 100% 7px no-repeat;
}
.systems .map__flow::after {
  height: 1px; margin-top: 0; filter: none;
  background: linear-gradient(90deg, transparent, rgba(46, 91, 255, .45), transparent) no-repeat;
  background-size: 10% 100%;
  animation-duration: 48s;
}

/* Modules : surfaces sobres */
.systems .map .node, .systems .map .sat {
  background: rgba(255, 255, 255, .72);
  border: 1px solid var(--hair);
  border-radius: 2px;
  box-shadow: none;
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
.systems .node__idx { color: var(--ink-faint); }
.systems .node__idx::before { background: rgba(12, 13, 15, .3); box-shadow: none; }
.systems .node__label, .systems .sat__label { color: var(--ink); }

/* Étapes importantes : touche bleu / corail */
.systems .map .node--key, .systems .map .sat--key { background: #FFFFFF; border-color: var(--blue); }
.systems .map--galaxy .node--key, .systems .map--archi .node--key, .systems .map--archi .sat--key { background: #FFFFFF; border-color: var(--accent); }
.systems .map .node--key .node__idx::before { background: var(--blue); box-shadow: none; }
.systems .map--galaxy .node--key .node__idx::before, .systems .map--archi .node--key .node__idx::before { background: var(--accent); }

/* Survol : simple, net */
.systems .map .node:hover, .systems .map .node:focus, .systems .map .sat:hover, .systems .map .sat:focus,
.js-reveal .systems .map.is-in .node:hover, .js-reveal .systems .map.is-in .sat:hover,
.js-reveal .systems .map.is-in .node:focus, .js-reveal .systems .map.is-in .sat:focus {
  background: #FFFFFF; border-color: var(--ink); box-shadow: none; transform: none;
}
.systems .node:hover .node__idx::before, .systems .node:focus .node__idx::before { background: var(--ink); box-shadow: none; }
.systems .node__tip {
  background: var(--ink); color: var(--ivory);
  border: 0; border-radius: 2px; box-shadow: none;
  backdrop-filter: none; -webkit-backdrop-filter: none;
}

/* Modules reliés */
.systems .map__satlabel { color: var(--ink-faint); }
.systems .map__sats::before { background: rgba(12, 13, 15, .2); }
.systems .sat::before { background: rgba(12, 13, 15, .25); }
.systems .sat::after { background: var(--ivory); border: 1px solid rgba(12, 13, 15, .5); box-shadow: none; }
.systems .sat--key::before { background: var(--accent); opacity: .6; }

/* Ma contribution */
.systems .contrib { background: transparent; border: 1px solid var(--hair); border-radius: 2px; box-shadow: inset 2px 0 0 var(--blue); }
.systems .contrib__label { color: var(--blue-text); }
.systems .contrib__text { color: var(--ink); }

@media (max-width: 1080px) {
  .systems .map__flow::before, .systems .map--archi .map__flow::before { width: 1px; height: auto; margin-top: 0; background: rgba(12, 13, 15, .28); }
  .systems .map__flow::after { width: 1px; margin-left: 0; background: linear-gradient(180deg, transparent, rgba(46, 91, 255, .45), transparent) no-repeat; background-size: 100% 8%; }
  .systems .node::after { background: var(--ivory); border-color: rgba(12, 13, 15, .55); box-shadow: none; }
  .systems .map .node--key::after { background: var(--blue); border-color: var(--blue); box-shadow: none; }
  .systems .map--galaxy .node--key::after, .systems .map--archi .node--key::after { background: var(--accent); border-color: var(--accent); box-shadow: none; }
  .systems .node__tip { background: none; color: var(--ink-soft); padding: 0; }
}
@media (max-width: 1080px) {
  .systems .map .node .node__tip, .systems .map .sat .node__tip { background: none; color: var(--ink-soft); padding: 0; }
}

/* ================================================================
   Hero vivant — profondeur, respiration, parallaxe
   (transform / opacity uniquement pour les mouvements continus)
   ================================================================ */

/* Entrée cinématographique : voile qui se lève, puis sculpture, puis texte */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: #050608; opacity: 0;
  animation: heroVeil 2.4s cubic-bezier(.4, 0, .2, 1) both;
}
@keyframes heroVeil { from { opacity: 1; } to { opacity: 0; } }
.sculpture { animation: scCine 4.8s cubic-bezier(.16, .84, .24, 1) .5s both; }
@keyframes scCine {
  from { opacity: 0; transform: translateY(-44%) scale(.9); filter: blur(14px); }
  60% { filter: blur(0); }
  to { opacity: 1; transform: translateY(-50%) scale(1); filter: none; }
}
.hero__meta, .hero__title, .hero__foot { animation-duration: 2.2s; animation-timing-function: cubic-bezier(.16, .84, .24, 1); }
.hero__meta { animation-delay: 1s; }
.hero__title { animation-delay: 1.35s; position: relative; z-index: 1; }
.hero__foot { animation-delay: 1.9s; position: relative; z-index: 1; }

/* Parallaxe : légère rotation 3D, les plans se décalent selon leur profondeur */
.sc-parallax {
  position: absolute; inset: 0; transform-style: preserve-3d;
  transform: rotateY(calc(var(--px, 0) * 7deg)) rotateX(calc(var(--py, 0) * -5deg)) translate3d(calc(var(--px, 0) * -10px), calc(var(--py, 0) * -8px), 0);
  will-change: transform;
}

/* Respiration lumineuse derrière la sculpture */
.sc-breath {
  position: absolute; inset: 4%; border-radius: 50%; pointer-events: none;
  background:
    radial-gradient(closest-side at 55% 45%, rgba(46, 91, 255, .30), transparent 75%),
    radial-gradient(closest-side at 45% 62%, rgba(255, 106, 61, .12), transparent 70%);
  opacity: .5; transform: scale(.96);
  animation: breath 10s ease-in-out infinite alternate;
}
@keyframes breath { to { opacity: .85; transform: scale(1.05); } }

/* Mouvements autonomes, chacun à son rythme */
.sc-stage { animation: drift 34s ease-in-out infinite alternate; }
.sc-sphere { animation: sphereFloat 18s ease-in-out infinite alternate; }
@keyframes sphereFloat {
  from { transform: translateZ(30px) translate3d(0, 0, 0); }
  to { transform: translateZ(30px) translate3d(-1.5%, -5%, 0); }
}
.sc-ring { animation: ringPersp 90s linear infinite; }
@keyframes ringPersp {
  0% { transform: translateZ(40px) rotateX(74deg) rotateZ(-22deg); }
  50% { transform: translateZ(40px) rotateX(66deg) rotateZ(158deg); }
  100% { transform: translateZ(40px) rotateX(74deg) rotateZ(338deg); }
}
.sc-plane--back { animation: planeBack 21s ease-in-out infinite alternate; }
@keyframes planeBack { to { transform: translateZ(-140px) translate3d(0, -2%, 0) rotate(15.5deg); } }
.sc-plane--mid { animation: planeMid 14s ease-in-out infinite alternate; }
@keyframes planeMid { to { transform: translateZ(120px) translate3d(-1.5%, 1.2%, 0) rotate(-9.5deg); } }
.sc-plane--front { animation: planeFront 26s ease-in-out infinite alternate; }
@keyframes planeFront { to { transform: translateZ(170px) translate3d(1.2%, -1.8%, 0) rotate(7.2deg); } }
.sc-blade { animation: blade 12s ease-in-out infinite alternate; }
@keyframes blade { from { opacity: .45; } to { opacity: .8; } }

/* Reflet lent qui traverse la sculpture de temps en temps */
.sc-sweep {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden; border-radius: 50%;
  -webkit-mask: radial-gradient(closest-side, #000 55%, transparent);
          mask: radial-gradient(closest-side, #000 55%, transparent);
}
.sc-sweep::before {
  content: ""; position: absolute; top: -20%; bottom: -20%; left: 0; width: 38%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .10) 45%, rgba(220, 230, 255, .16) 50%, rgba(255, 255, 255, .10) 55%, transparent);
  mix-blend-mode: screen;
  opacity: 0; transform: translateX(-120%) rotate(12deg);
  animation: sweep 17s cubic-bezier(.45, 0, .25, 1) 5s infinite;
}
@keyframes sweep {
  0% { opacity: 0; transform: translateX(-120%) rotate(12deg); }
  6% { opacity: 1; }
  34% { opacity: 1; }
  40% { opacity: 0; transform: translateX(290%) rotate(12deg); }
  100% { opacity: 0; transform: translateX(290%) rotate(12deg); }
}

/* Mobile : mouvements autonomes seulement, entrée sans décalage vertical */
@media (max-width: 900px) {
  .sculpture { animation: scCineM 4s cubic-bezier(.16, .84, .24, 1) .4s both; }
  @keyframes scCineM { from { opacity: 0; transform: scale(.92); filter: blur(12px); } to { opacity: .9; transform: none; filter: none; } }
  .sc-parallax { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero::before, .sc-sweep { display: none; }
  .sc-parallax { transform: none; }
}

/* ================================================================
   HERO — couverture de magazine futuriste
   ================================================================ */

/* Composition spatiale de fond : ouverture en arche, horizon, deux lignes */
.hero__space {
  position: absolute; inset: 0; z-index: -3; pointer-events: none;
  transform: translate3d(0, calc(var(--s, 0) * 90px), 0) scale(calc(1 + var(--s, 0) * .08));
  opacity: calc(1 - var(--s, 0) * .55);
  animation: spaceIn 3.2s cubic-bezier(.16, .84, .24, 1) .2s both;
}
@keyframes spaceIn { from { opacity: 0; } }
.space-portal {
  position: absolute; right: 9vw; top: 7%; width: min(30vw, 460px); height: 86%;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(180deg, rgba(46, 91, 255, .20), rgba(46, 91, 255, .06) 45%, rgba(255, 106, 61, .07) 75%, transparent);
  border: 1px solid rgba(221, 227, 240, .10); border-bottom: 0;
}
.space-portal::after { /* seuil lumineux au pied de l'arche */
  content: ""; position: absolute; left: 10%; right: 10%; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 180, 150, .5), transparent);
}
.space-arc {
  position: absolute; left: -25%; right: -25%; top: 80%; height: 100vh; border-radius: 50%;
  border-top: 1px solid rgba(157, 179, 255, .28);
  background: radial-gradient(60% 30% at 50% 0%, rgba(46, 91, 255, .16), transparent 70%);
}
.space-line { position: absolute; top: 0; height: 80%; width: 1px; background: linear-gradient(180deg, transparent, rgba(244, 241, 234, .08) 40%, transparent); }
.space-line--1 { right: 42vw; }
.space-line--2 { right: 4vw; }

/* Voile de lisibilité : toujours entre la sculpture et le texte */
.hero__scrim {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(7, 8, 11, .82) 0%, rgba(7, 8, 11, .55) 32%, rgba(7, 8, 11, 0) 58%);
}

/* Sculpture plus grande, plus profonde */
.sculpture { width: min(68vw, 1040px); right: -11vw; perspective: 1300px; }
.sc-halo { inset: -4%; }

/* Traversée : la sculpture avance vers nous en descendant */
.sc-parallax {
  transform:
    translate3d(calc(var(--px, 0) * -12px), calc(var(--py, 0) * -10px + var(--s, 0) * -60px), calc(var(--s, 0) * 280px))
    rotateY(calc(var(--px, 0) * 8deg))
    rotateX(calc(var(--py, 0) * -6deg + var(--s, 0) * 10deg));
  opacity: calc(1 - var(--s, 0) * .45);
}

/* Sphère : matière chaude et lumineuse */
.sc-sphere {
  left: 34%; top: 17%; width: 38%;
  background:
    radial-gradient(circle at 29% 25%, rgba(255, 250, 242, .95) 0 1.4%, rgba(255, 222, 200, .55) 3.5%, transparent 12%),
    radial-gradient(circle at 72% 80%, rgba(110, 145, 255, .5), transparent 30%),
    radial-gradient(circle at 38% 34%, #FFD6BD 0%, #FF9160 15%, #F2561F 33%, #B52E0B 55%, #4A1206 78%, #12060A 100%);
  box-shadow:
    0 0 140px 20px rgba(255, 106, 61, .22),
    0 0 46px rgba(255, 140, 90, .30),
    inset -34px -44px 80px rgba(0, 0, 0, .55),
    inset 12px 10px 34px rgba(255, 225, 205, .22);
}
.sc-sphere::before { /* courants internes, très lents */
  content: ""; position: absolute; inset: 6%; border-radius: 50%;
  background: conic-gradient(from 20deg, transparent, rgba(255, 196, 150, .32), transparent 28%, rgba(255, 120, 60, .22) 48%, transparent 62%, rgba(255, 210, 170, .18) 82%, transparent);
  filter: blur(8px); mix-blend-mode: soft-light;
  animation: core 60s linear infinite;
}
.sc-sphere::after { /* atmosphère */
  content: ""; position: absolute; inset: -7%; border-radius: 50%;
  background: radial-gradient(closest-side, transparent 86%, rgba(255, 150, 105, .22) 93%, transparent);
}
@keyframes core { to { transform: rotate(360deg); } }
.sc-sphere__rim { box-shadow: inset 2px 3px 0 rgba(255, 255, 255, .22), inset -3px -4px 10px rgba(120, 150, 255, .35); }

/* Anneau : grande forme sculpturale */
.sc-ring {
  left: -8%; top: 14%; width: 116%;
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 calc(100% - 5.5px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 calc(100% - 5.5px));
  opacity: .95;
}
.sc-ring2 {
  position: absolute; left: 6%; top: 28%; width: 88%; aspect-ratio: 1; border-radius: 50%;
  background: conic-gradient(from 40deg, rgba(244, 241, 234, .05), rgba(244, 241, 234, .55) 18%, rgba(157, 179, 255, .25) 40%, rgba(244, 241, 234, .05) 60%, rgba(255, 170, 140, .4) 80%, rgba(244, 241, 234, .05));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 1.5px), #000 calc(100% - 1px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 1.5px), #000 calc(100% - 1px));
  transform: translateZ(-60px) rotateX(78deg) rotateZ(12deg);
  animation: ring2 140s linear infinite reverse;
}
@keyframes ring2 { to { transform: translateZ(-60px) rotateX(78deg) rotateZ(372deg); } }

/* Mobile : décor recadré, voile par le bas */
@media (max-width: 900px) {
  .sculpture { width: 130vw; right: -48vw; top: 1%; }
  .space-portal { right: -6vw; top: 3%; width: 62vw; height: 52%; }
  .space-arc { top: 60%; }
  .space-line--1 { right: 70vw; }
  .hero__scrim { background: linear-gradient(0deg, rgba(7, 8, 11, .85) 0%, rgba(7, 8, 11, .6) 50%, rgba(7, 8, 11, 0) 72%); }
  .sc-parallax { transform: translate3d(0, calc(var(--s, 0) * -40px), calc(var(--s, 0) * 200px)) rotateX(calc(var(--s, 0) * 8deg)); }
}
@media (prefers-reduced-motion: reduce) {
  .sc-parallax, .hero__space { transform: none; opacity: 1; }
}

/* ================================================================
   DESCENTE VERS L'HUMAIN — à partir de « À propos »
   ivoire chaud, encre, corail discret, grandes marges
   ================================================================ */

/* À propos : conclusion personnelle */
.about {
  background: #F1ECE2; color: var(--ink); box-shadow: none;
  padding-block: calc(var(--section) * 1.2);
  border-top: 1px solid var(--hair);
}
.about::before { display: none; }
.about .eyebrow { color: var(--ink-soft); }
.about .eyebrow::before { background: var(--accent); box-shadow: none; }
.about__text { gap: 3.5rem; }
.about__big { text-indent: 2.2em; }
.about__big em { color: var(--accent-text); }
.about__small {
  color: var(--ink-soft); margin-left: auto; max-width: 22rem;
  padding-top: 1.1rem; border-top: 1px solid var(--ink);
}
.about :focus-visible { outline-color: var(--ink); }

/* Compétences : filets d'encre, sans lumière */
.skills { background: #F1ECE2; }
.skills::after { display: none; }
.skills::before { background: var(--hair); }
.skills .eyebrow::before { background: var(--accent); box-shadow: none; }
.skills__group::before { background: var(--ink); opacity: .55; }

/* Contact : dernière affiche */
.contact {
  background: #E9E2D4; color: var(--ink); box-shadow: none;
  min-height: 92svh; align-content: center;
  padding-block: calc(var(--section) * 1.1);
  border-top: 1px solid var(--hair);
}
.contact::before { /* grand cercle d'encre, comme une affiche */
  right: 5%; width: min(46vw, 640px);
  background: none; border: 1px solid rgba(12, 13, 15, .22); box-shadow: none;
}
.contact::after { /* soleil corail posé sur le cercle */
  content: ""; position: absolute; z-index: -1; border-radius: 50%;
  width: min(7vw, 90px); aspect-ratio: 1;
  right: calc(5% + min(46vw, 640px) * .12); top: calc(50% - min(46vw, 640px) * .38);
  background: var(--accent);
}
.contact__title { font-size: clamp(2.8rem, 9vw, 8.5rem); line-height: .94; letter-spacing: -.05em; max-width: 12ch; }
.contact__title em { color: var(--accent); }
.contact__mail { border-bottom-color: var(--ink); }
.contact__mail:hover { color: var(--ink); border-color: var(--accent); }
.contact__mail span { color: var(--accent-text); }
.contact :focus-visible { outline-color: var(--ink); }

/* Pied de page : encre simple, sans halo */
.footer { background: var(--ink); color: #B3AFA6; border-top: 0; }
.footer__glow { display: none; }

@media (max-width: 900px) {
  .contact { min-height: 0; }
  .contact::before { width: 78vw; right: -34vw; top: 34%; }
  .contact::after { width: 13vw; right: 12vw; top: 14%; }
  .about__big { text-indent: 1.2em; }
  .about__small { margin-left: 0; }
}

/* ================================================================
   PERFORMANCE — scroll fluide
   ================================================================ */
/* Grain : plus de blend mode plein écran (repeint à chaque scroll) */
body::before { mix-blend-mode: normal; opacity: .045; }
body { background-attachment: scroll; }
/* Nav : plus de flou d'arrière-plan sur un élément sticky */
.nav { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(8, 9, 12, .94); }
/* Sculpture : aucun flou sur les couches animées, les dégradés font le travail */
.sc-halo {
  filter: none; inset: -10%;
  background:
    radial-gradient(closest-side at 58% 40%, rgba(46, 91, 255, .38), rgba(46, 91, 255, .12) 55%, transparent),
    radial-gradient(closest-side at 44% 64%, rgba(255, 106, 61, .20), transparent 80%);
}
.sc-plane--mid, .sc-plane--front { backdrop-filter: none; -webkit-backdrop-filter: none; }
.sc-plane--mid { background: linear-gradient(145deg, rgba(255, 255, 255, .15), rgba(255, 255, 255, .03) 60%, rgba(46, 91, 255, .12)); }
.sc-plane--front { background: linear-gradient(200deg, rgba(24, 28, 40, .72), rgba(10, 11, 15, .5)); }
.sc-sphere::before { filter: none; opacity: .8; }
.sc-sweep::before { mix-blend-mode: normal; }
.sc-parallax { will-change: auto; }           /* activé en JS seulement si l'effet tourne */
.sc-parallax, .hero__space { transform: none; opacity: 1; }   /* piloté par JS */
/* Entrées sans filtre */
@keyframes scCine { from { opacity: 0; transform: translateY(-45%) scale(.92); } to { opacity: 1; transform: translateY(-50%) scale(1); } }
@keyframes scCineM { from { opacity: 0; transform: scale(.94); } to { opacity: .9; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
/* Hero hors écran : animations en pause */
.hero.is-off *, .hero.is-off *::before, .hero.is-off *::after { animation-play-state: paused !important; }
/* Mobile : pas de traversée, mouvements autonomes seulement */
@media (max-width: 900px) { .sc-parallax { transform: none !important; } }

/* ================================================================
   CARTES — plans de systèmes éditoriaux
   ================================================================ */
.map__plot { position: relative; }
.map__lines { display: none; }
.map__flow { counter-reset: step; }
.systems .map .node { counter-increment: step; }

/* Grands numéros d'étape en filigrane */
.systems .map .node::before {
  content: counter(step, decimal-leading-zero);
  content: counter(step, decimal-leading-zero) / "";
  position: absolute; right: .55rem; bottom: .15rem; z-index: 0;
  font-size: 3.4rem; font-weight: 500; letter-spacing: -.06em; line-height: .8;
  color: rgba(12, 13, 15, .055); pointer-events: none;
}
.systems .map .node--key::before { color: rgba(46, 91, 255, .09); }
.systems .map--galaxy .node--key::before, .systems .map--archi .node--key::before { color: rgba(228, 87, 46, .10); }
.systems .node__idx, .systems .node__label { position: relative; z-index: 1; }

/* Repères d'impression aux coins de chaque planche */
.systems .map__stage {
  --rm: rgba(12, 13, 15, .4);
  background-color: rgba(255, 255, 255, .38);
  background-image:
    linear-gradient(var(--rm), var(--rm)), linear-gradient(var(--rm), var(--rm)),
    linear-gradient(var(--rm), var(--rm)), linear-gradient(var(--rm), var(--rm)),
    linear-gradient(var(--rm), var(--rm)), linear-gradient(var(--rm), var(--rm)),
    linear-gradient(var(--rm), var(--rm)), linear-gradient(var(--rm), var(--rm));
  background-size: 11px 1px, 1px 11px, 11px 1px, 1px 11px, 11px 1px, 1px 11px, 11px 1px, 1px 11px;
  background-position: 10px 15px, 15px 10px, calc(100% - 10px) 15px, calc(100% - 15px) 10px, 10px calc(100% - 15px), 15px calc(100% - 10px), calc(100% - 10px) calc(100% - 15px), calc(100% - 15px) calc(100% - 10px);
  background-repeat: no-repeat;
}

/* Lignes SVG communes */
.map__lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 0; }
.map__lines * { fill: none; vector-effect: non-scaling-stroke; }
.ln-main { stroke: rgba(12, 13, 15, .42); stroke-width: 1.25; }
.ln-flow {
  stroke: var(--blue); stroke-width: 1.5; stroke-linecap: round; opacity: .55;
  stroke-dasharray: 5 95; stroke-dashoffset: 100;
  animation: lnFlow 42s linear infinite; animation-play-state: paused;
}
.map.is-live .ln-flow { animation-play-state: running; }
@keyframes lnFlow { to { stroke-dashoffset: 0; } }

/* Circulation horizontale / verticale existante : désormais en transform */
.systems .map__flow::after { animation: none; }

@media (min-width: 1081px) {
  .map__lines { display: block; }
  .systems .map--galaxy .map__flow::before, .systems .map--galaxy .map__flow::after,
  .systems .map--nerys .map__flow::before, .systems .map--nerys .map__flow::after { display: none; }
  .systems .map .node { z-index: 1; }

  /* ---- GALAXY : constellation autour de la décision ---- */
  .map--galaxy .map__flow {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: 8rem 9rem 8rem;
    column-gap: 3rem; row-gap: 2.5rem;
  }
  .map--galaxy .node { min-height: 0; }
  .map--galaxy .node:nth-child(1) { grid-area: 1 / 1; }
  .map--galaxy .node:nth-child(2) { grid-area: 1 / 2; }
  .map--galaxy .node:nth-child(3) { grid-area: 1 / 3; }
  .map--galaxy .node:nth-child(4) { grid-area: 1 / 4; }
  .map--galaxy .node:nth-child(5) { grid-area: 2 / 4; }
  .map--galaxy .node:nth-child(6) { grid-area: 2 / 2 / 3 / 4; justify-content: center; text-align: center; align-items: center; }
  .map--galaxy .node:nth-child(7) { grid-area: 3 / 2 / 4 / 4; }
  .systems .map--galaxy .node--key::before { font-size: 5.5rem; right: 1rem; }
  .ln-zone { stroke: rgba(12, 13, 15, .14); stroke-width: 1; stroke-dasharray: 2 5; }
  .ln-zone--2 { stroke: rgba(12, 13, 15, .08); stroke-dasharray: none; }
  .ln-spoke { stroke: rgba(228, 87, 46, .35); stroke-width: 1; stroke-dasharray: 3 6; }

  /* ---- NERYS : couches de mémoire qui se rejoignent ---- */
  .map--nerys .map__flow { grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: 2.25rem; padding-block: 3.5rem; align-items: center; }
  .map--nerys .node { min-height: 7rem; }
  .map--nerys .node:nth-child(1), .map--nerys .node:nth-child(5) { top: -2.1rem; }
  .map--nerys .node:nth-child(2), .map--nerys .node:nth-child(4) { top: 2.1rem; }
  .map--nerys .node--key { min-height: 8.5rem; }
  .ln-layer { stroke: rgba(46, 91, 255, .055); stroke-width: 26; stroke-linecap: round; }
  .ln-strand { stroke: rgba(12, 13, 15, .16); stroke-width: 1; }

  /* ---- ARCHIEASY : planche architecturale ---- */
  .map--archi .map__plot {
    padding: 2.75rem 2.5rem 2.5rem;
    background:
      /* axes verticaux en trait mixte */
      repeating-linear-gradient(180deg, rgba(12, 13, 15, .32) 0 12px, transparent 12px 16px, rgba(12, 13, 15, .32) 16px 18px, transparent 18px 22px) calc(2.5rem + (100% - 5rem) * .147) 0 / 1px 100% no-repeat,
      repeating-linear-gradient(180deg, rgba(12, 13, 15, .32) 0 12px, transparent 12px 16px, rgba(12, 13, 15, .32) 16px 18px, transparent 18px 22px) 50% 0 / 1px 100% no-repeat,
      repeating-linear-gradient(180deg, rgba(12, 13, 15, .32) 0 12px, transparent 12px 16px, rgba(12, 13, 15, .32) 16px 18px, transparent 18px 22px) calc(2.5rem + (100% - 5rem) * .853) 0 / 1px 100% no-repeat,
      /* axe horizontal */
      repeating-linear-gradient(90deg, rgba(12, 13, 15, .22) 0 12px, transparent 12px 16px, rgba(12, 13, 15, .22) 16px 18px, transparent 18px 22px) 0 50% / 100% 1px no-repeat,
      /* repères d'axe (cercles) */
      radial-gradient(circle, transparent 5px, rgba(12, 13, 15, .5) 5.5px, rgba(12, 13, 15, .5) 6.5px, transparent 7px) calc(2.5rem + (100% - 5rem) * .147 - 8px) 2px / 16px 16px no-repeat,
      radial-gradient(circle, transparent 5px, rgba(12, 13, 15, .5) 5.5px, rgba(12, 13, 15, .5) 6.5px, transparent 7px) calc(50% ) 2px / 16px 16px no-repeat,
      radial-gradient(circle, transparent 5px, rgba(12, 13, 15, .5) 5.5px, rgba(12, 13, 15, .5) 6.5px, transparent 7px) calc(2.5rem + (100% - 5rem) * .853 - 8px) 2px / 16px 16px no-repeat;
  }
  .map--archi .map__flow {
    grid-template-columns: 1fr 1.4fr 1fr; gap: 0;
    border: 1.5px solid rgba(12, 13, 15, .75);
    background: rgba(255, 255, 255, .5);
  }
  .systems .map--archi .node {
    border: 0; border-radius: 0; box-shadow: inset -1px -1px 0 rgba(12, 13, 15, .28);
    background: transparent; min-height: 8.5rem;
  }
  .map--archi .node:nth-child(1) { grid-area: 1 / 1; }
  .map--archi .node:nth-child(2) { grid-area: 1 / 2; }
  .map--archi .node:nth-child(3) { grid-area: 1 / 3; }
  .map--archi .node:nth-child(4) { grid-area: 2 / 1 / 3 / 3; }
  .map--archi .node:nth-child(5) { grid-area: 2 / 3; }
  .map--archi .node:nth-child(6) { grid-area: 3 / 1 / 4 / 4; min-height: 6rem; }
  .systems .map--archi .node--key {
    border: 0; box-shadow: inset 0 1.5px 0 var(--accent);
    background: repeating-linear-gradient(135deg, rgba(228, 87, 46, .07) 0 1px, transparent 1px 9px), rgba(255, 255, 255, .6);
  }
  .systems .map--archi .map__flow::before { top: -1.6rem; }          /* ligne de cote au-dessus */
  .systems .map--archi .map__flow::after {
    top: -1.6rem; left: 0; width: 10%; right: auto; height: 1px; margin-top: 3px;
    background: linear-gradient(90deg, transparent, rgba(46, 91, 255, .6), transparent);
    transform: translateX(-100%);
    animation: coteRun 36s linear infinite paused;
  }
  .map--archi.is-live .map__flow::after { animation-play-state: running; }
  @keyframes coteRun { to { transform: translateX(1000%); } }
  .systems .map--archi .map__flow::before, .systems .map--archi .map__flow::after { display: block; }
  .systems .map .node:hover, .systems .map .node:focus { z-index: 6; }
  .js-reveal .systems .map.is-in .map--archi .node:hover { transform: none; }
}

/* Mobile : colonne verticale, filigranes plus petits */
@media (max-width: 1080px) {
  .systems .map .node::before { font-size: 2.6rem; bottom: .3rem; }
  .map__lines { display: none; }
}

/* Correctifs cartes : modules opaques (les lignes passent derrière), étiquette dégagée */
@media (min-width: 1081px) {
  .systems .map--galaxy .node:not(.node--key), .systems .map--nerys .node:not(.node--key) { background: #FBFAF6; }
  .systems .map .map__satlabel { margin-bottom: 2.6rem; }
}

/* ================================================================
   COULEURS — cobalt, reflets bleu → cyan → corail (hero + cartes)
   ================================================================ */
:root {
  --cobalt: #1D46F2;
  --cobalt-deep: #0A1A8C;
  --cyan: #2BB8D6;
  --cobalt-text: #1A3AD0; /* AA sur ivoire */
}

/* ---------- HERO : plus de contraste, sculpture plus lumineuse ---------- */
.hero {
  background:
    radial-gradient(55% 55% at 76% 38%, rgba(29, 70, 242, .38), transparent 70%),
    radial-gradient(28% 30% at 70% 30%, rgba(43, 184, 214, .10), transparent 70%),
    radial-gradient(38% 38% at 62% 72%, rgba(255, 106, 61, .16), transparent 70%),
    radial-gradient(90% 70% at 10% 110%, rgba(10, 26, 140, .55), transparent 70%),
    linear-gradient(180deg, #040509 0%, #070A14 60%, #08090D 100%);
}
.hero::after { background: linear-gradient(90deg, transparent, rgba(29, 70, 242, .8) 30%, rgba(43, 184, 214, .6) 52%, rgba(255, 106, 61, .6) 74%, transparent); opacity: .6; }
.hero__cta .arrow { color: #7FD6E8; }
.hero__cta:hover { border-bottom-color: var(--cyan); }

.sc-halo {
  background:
    radial-gradient(closest-side at 58% 40%, rgba(29, 70, 242, .50), rgba(29, 70, 242, .14) 55%, transparent),
    radial-gradient(closest-side at 64% 30%, rgba(43, 184, 214, .14), transparent 70%),
    radial-gradient(closest-side at 44% 64%, rgba(255, 106, 61, .24), transparent 80%);
}
.sc-breath { background:
    radial-gradient(closest-side at 55% 45%, rgba(29, 70, 242, .38), transparent 75%),
    radial-gradient(closest-side at 45% 62%, rgba(255, 106, 61, .14), transparent 70%); }

/* Sphère : plus lumineuse, reflet froid cyan sur le bord */
.sc-sphere {
  background:
    radial-gradient(circle at 29% 25%, rgba(255, 252, 246, 1) 0 1.6%, rgba(255, 228, 208, .65) 4%, transparent 13%),
    radial-gradient(circle at 74% 80%, rgba(43, 184, 214, .45), transparent 28%),
    radial-gradient(circle at 80% 62%, rgba(29, 70, 242, .35), transparent 30%),
    radial-gradient(circle at 38% 34%, #FFE0CC 0%, #FF9A68 14%, #FF5E26 32%, #C6320B 54%, #521407 77%, #0E0509 100%);
  /* ombres légères (plus de grand flou) ; la lueur passe par ::after */
  box-shadow: inset -30px -40px 70px rgba(0, 0, 0, .5), inset 12px 10px 30px rgba(255, 228, 208, .25);
}
.sc-sphere::after {
  inset: -18%;
  background: radial-gradient(closest-side, transparent 58%, rgba(255, 120, 70, .22) 70%, rgba(255, 106, 61, .08) 84%, transparent);
}
.sc-sphere__rim { box-shadow: inset 2px 3px 0 rgba(255, 255, 255, .25), inset -3px -4px 10px rgba(43, 184, 214, .45); }

/* Anneaux : chrome froid avec reflets cyan / corail */
.sc-ring { background: conic-gradient(from 210deg, #4E5A74, #F4F6FA 10%, #8FB8FF 20%, #1A2033 36%, #BFE9F2 52%, #34405A 66%, #FFD2C0 78%, #EEF2F8 86%, #4E5A74); }
.sc-ring2 { background: conic-gradient(from 40deg, rgba(244, 241, 234, .04), rgba(127, 214, 232, .6) 18%, rgba(29, 70, 242, .45) 40%, rgba(244, 241, 234, .04) 60%, rgba(255, 150, 110, .5) 80%, rgba(244, 241, 234, .04)); }

/* Plans : cobalt plus profond, sans grande ombre portée */
.sc-plane--back {
  background: linear-gradient(160deg, rgba(40, 90, 255, .70) 0%, rgba(10, 26, 140, .45) 45%, rgba(6, 8, 16, .06) 100%);
  border-color: rgba(143, 200, 255, .38);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4);
}
.sc-plane--mid { background: linear-gradient(145deg, rgba(190, 235, 255, .16), rgba(255, 255, 255, .03) 55%, rgba(29, 70, 242, .16)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45); }
.sc-plane--front { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12); }
.sc-plane__edge { background: linear-gradient(90deg, transparent, #BFE9F2, #FFFFFF, #8FB8FF, transparent); }
.sc-blade { background: linear-gradient(180deg, transparent, #5F86FF 18%, #7FD6E8 38%, #FFFFFF 50%, var(--glow) 72%, transparent); }

/* Décor de fond */
.space-portal { background: linear-gradient(180deg, rgba(29, 70, 242, .26), rgba(43, 184, 214, .07) 45%, rgba(255, 106, 61, .08) 75%, transparent); border-color: rgba(191, 233, 242, .12); }
.space-arc { border-top-color: rgba(127, 214, 232, .30); background: radial-gradient(60% 30% at 50% 0%, rgba(29, 70, 242, .20), transparent 70%); }
.nav::after { background: linear-gradient(90deg, transparent 5%, rgba(29, 70, 242, .7) 35%, rgba(43, 184, 214, .5) 55%, rgba(255, 106, 61, .5) 75%, transparent 95%); opacity: .45; }

/* ---------- CARTES : cobalt pour les détails importants ---------- */
.systems .eyebrow::before { background: var(--cobalt); }
.systems .map .node--key, .systems .map .sat--key { border-color: var(--cobalt); }
.systems .map--galaxy .node--key, .systems .map--archi .node--key, .systems .map--archi .sat--key { border-color: var(--accent); }
.systems .map .node--key .node__idx::before { background: var(--cobalt); }
.systems .map--galaxy .node--key .node__idx::before, .systems .map--archi .node--key .node__idx::before { background: var(--accent); }
.systems .map .node--key::before { color: rgba(29, 70, 242, .10); }
.systems .map--galaxy .node--key::before, .systems .map--archi .node--key::before { color: rgba(228, 87, 46, .10); }
.systems .node:hover .node__idx::before, .systems .node:focus .node__idx::before { background: var(--cobalt); }
.systems .contrib { box-shadow: inset 2px 0 0 var(--cobalt); }
.systems .contrib__label { color: var(--cobalt-text); }
.systems .sat::after { border-color: rgba(29, 70, 242, .6); }

/* Lignes de connexion : reflet bleu → cyan → corail */
.ln-flow { stroke: url(#lnGrad); opacity: .85; stroke-width: 1.75; stroke-dasharray: 7 93; }
.ln-layer:nth-of-type(1) { stroke: rgba(29, 70, 242, .07); }
.ln-layer:nth-of-type(2) { stroke: rgba(43, 184, 214, .08); }
.ln-layer:nth-of-type(3) { stroke: rgba(255, 106, 61, .06); }
.ln-zone { stroke: rgba(29, 70, 242, .22); }
.systems .map--archi .map__flow::after { background: linear-gradient(90deg, transparent, var(--cobalt), var(--cyan), transparent); }
@media (max-width: 1080px) {
  .systems .map__flow::after { background: linear-gradient(180deg, transparent, rgba(29, 70, 242, .6), rgba(43, 184, 214, .5), transparent) no-repeat; background-size: 100% 10%; }
}

/* ================================================================
   SCROLL — aucune propriété coûteuse sur ce qui bouge
   ================================================================ */
.sc-parallax, .hero__space { opacity: 1 !important; }
@media (max-width: 900px), (hover: none), (pointer: coarse) {
  .sc-parallax, .hero__space { transform: none !important; will-change: auto !important; }
}
.sc-floor, .map__glow::before { filter: none; animation: none; }

/* ================================================================
   CARTES — pièces sombres de galerie (l'extérieur reste ivoire)
   Animations : opacity / transform uniquement, en pause hors écran.
   ================================================================ */
.systems .map { --gl-cyan: #7FD6E8; --gl-ink: #060912; }

/* Planche : noir bleuté, cadre lumineux fin */
.systems .map .map__stage {
  color: var(--ivory);
  border: 1px solid transparent;
  border-radius: 6px;
  background:
    radial-gradient(60% 70% at 78% 18%, rgba(29, 70, 242, .22), transparent 70%) padding-box,
    radial-gradient(50% 60% at 12% 92%, rgba(43, 184, 214, .09), transparent 70%) padding-box,
    radial-gradient(40% 50% at 92% 96%, rgba(255, 106, 61, .07), transparent 70%) padding-box,
    linear-gradient(180deg, #080C18, #05070E) padding-box,
    linear-gradient(125deg, rgba(62, 107, 255, .75), rgba(43, 184, 214, .45) 45%, rgba(255, 106, 61, .5) 80%, rgba(62, 107, 255, .35)) border-box;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
}
/* Repères d'angle lumineux (cadre ArchiEasy) */
.systems .map__frame { --c: rgba(127, 214, 232, .55); border-color: rgba(127, 214, 232, .07); }

/* Modules : verre sombre, reflet en haut */
.systems .map .node, .systems .map .sat,
.systems .map--galaxy .node:not(.node--key), .systems .map--nerys .node:not(.node--key) {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .012) 45%, rgba(29, 70, 242, .05)),
    #0A0F1E;
  border: 1px solid rgba(143, 200, 255, .16);
  border-radius: 6px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .10);
}
.systems .node__label, .systems .sat__label { color: var(--ivory); }
.systems .node__idx { color: rgba(244, 241, 234, .55); }
.systems .node__idx::before { background: rgba(127, 214, 232, .5); }
.systems .map .node::before { color: rgba(127, 214, 232, .075); }

/* Étapes clés : liseré cobalt ou corail, lueur intérieure */
.systems .map .node--key, .systems .map .sat--key {
  background: linear-gradient(180deg, rgba(62, 107, 255, .20), rgba(255, 255, 255, .02) 60%), #0B1124;
  border-color: rgba(62, 107, 255, .85);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), inset 0 0 24px rgba(29, 70, 242, .22);
}
.systems .map--galaxy .node--key, .systems .map--archi .node--key, .systems .map--archi .sat--key {
  background: linear-gradient(180deg, rgba(255, 106, 61, .18), rgba(255, 255, 255, .02) 60%), #140D12;
  border-color: rgba(255, 106, 61, .85);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), inset 0 0 26px rgba(255, 106, 61, .16);
}
.systems .map .node--key .node__idx::before { background: #5F86FF; }
.systems .map--galaxy .node--key .node__idx::before, .systems .map--archi .node--key .node__idx::before { background: var(--glow); }
.systems .map .node--key::before { color: rgba(95, 134, 255, .16); }
.systems .map--galaxy .node--key::before, .systems .map--archi .node--key::before { color: rgba(255, 106, 61, .16); }

/* Survol : le module s'éclaire (couleur de bordure + fond, pas d'ombre lourde) */
.systems .map .node:hover, .systems .map .node:focus, .systems .map .sat:hover, .systems .map .sat:focus,
.js-reveal .systems .map.is-in .node:hover, .js-reveal .systems .map.is-in .sat:hover,
.js-reveal .systems .map.is-in .node:focus, .js-reveal .systems .map.is-in .sat:focus {
  background: linear-gradient(180deg, rgba(127, 214, 232, .14), rgba(255, 255, 255, .02) 60%), #0D1428;
  border-color: var(--gl-cyan);
}
.systems .node:hover .node__idx::before, .systems .node:focus .node__idx::before { background: var(--gl-cyan); }
.systems .map .node:focus, .systems .map .sat:focus { outline: 1px solid var(--gl-cyan); outline-offset: 3px; }
/* Explication : carte ivoire, très lisible sur fond sombre */
.systems .node__tip { background: var(--ivory); color: var(--ink); }

/* Modules reliés */
.systems .map__satlabel { color: rgba(244, 241, 234, .5); }
.systems .map__sats::before { background: linear-gradient(90deg, rgba(62, 107, 255, .2), rgba(127, 214, 232, .5) 50%, rgba(255, 106, 61, .3)); }
.systems .sat::before { background: linear-gradient(180deg, rgba(127, 214, 232, .6), rgba(127, 214, 232, .12)); opacity: 1; }
.systems .sat--key::before { background: linear-gradient(180deg, rgba(255, 106, 61, .7), rgba(127, 214, 232, .12)); }
.systems .sat::after { background: #060912; border: 1px solid var(--gl-cyan); }

/* Ma contribution */
.systems .contrib { background: linear-gradient(120deg, rgba(29, 70, 242, .14), rgba(255, 255, 255, .02) 60%); border: 1px solid rgba(127, 214, 232, .2); box-shadow: inset 2px 0 0 #5F86FF; }
.systems .contrib__label { color: var(--gl-cyan); }
.systems .contrib__text { color: var(--ivory); }

/* ---------- Lignes et énergie (SVG) ---------- */
.ln-halo { opacity: .8; animation: lnBreath 12s ease-in-out infinite alternate paused; }
.ln-main { stroke: rgba(127, 214, 232, .38); stroke-width: 1.25; }
.ln-glow { stroke: url(#lnGrad); stroke-width: 7; opacity: .10; stroke-linecap: round; stroke-linejoin: round; }
.ln-flow { display: none; }
.ln-pulse {
  stroke: url(#lnGrad); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 11 89;
  opacity: 0; animation: lnPulse 8s ease-in-out var(--d) infinite paused;
}
.ln-zone { stroke: rgba(127, 214, 232, .22); stroke-dasharray: 2 6; }
.ln-zone--2 { stroke: rgba(62, 107, 255, .28); stroke-dasharray: none; }
.ln-zone--3 { stroke: rgba(62, 107, 255, .12); stroke-width: 1; }
.ln-spoke { stroke: url(#spokeGrad); stroke-width: 1.2; stroke-dasharray: 3 5; opacity: .25; animation: lnSpoke 6s ease-in-out var(--d) infinite paused; }
.ln-layer { stroke-width: 22; stroke-linecap: round; opacity: .8; animation: lnWave calc(14s + var(--i) * 3s) ease-in-out infinite alternate paused; }
.ln-layer:nth-of-type(1) { stroke: rgba(62, 107, 255, .10); }
.ln-layer:nth-of-type(2) { stroke: rgba(43, 184, 214, .09); }
.ln-layer:nth-of-type(3) { stroke: rgba(62, 107, 255, .13); }
.ln-layer:nth-of-type(4) { stroke: rgba(43, 184, 214, .09); }
.ln-layer:nth-of-type(5) { stroke: rgba(255, 106, 61, .08); }
.ln-layer--out { stroke: rgba(127, 214, 232, .08) !important; stroke-width: 16; }
.ln-strand { stroke: rgba(127, 214, 232, .28); stroke-width: 1; }
.map.is-live .ln-halo, .map.is-live .ln-pulse, .map.is-live .ln-spoke, .map.is-live .ln-layer, .map.is-live .iso-vol { animation-play-state: running; }
@keyframes lnPulse { 0% { opacity: 0; } 14% { opacity: .95; } 34% { opacity: 0; } 100% { opacity: 0; } }
@keyframes lnSpoke { 0%, 100% { opacity: .2; } 40% { opacity: .8; } }
@keyframes lnBreath { from { opacity: .55; } to { opacity: 1; } }
@keyframes lnWave { from { transform: translate(-.6px, 0); } to { transform: translate(.6px, 0); } }

/* ---------- ArchiEasy : plan spatial ---------- */
.map__iso { display: none; }
.iso-construct { stroke: rgba(127, 214, 232, .22); stroke-width: 1; stroke-dasharray: 6 5; }
.iso-vol { stroke: rgba(127, 214, 232, .6); stroke-width: 1; fill: rgba(62, 107, 255, .05) !important; opacity: .7; animation: isoBreath calc(9s + var(--i) * 2s) ease-in-out infinite alternate paused; }
.iso-vol--key { stroke: rgba(255, 150, 110, .8); fill: rgba(255, 106, 61, .06) !important; }
@keyframes isoBreath { from { opacity: .45; } to { opacity: .95; } }

@media (min-width: 1081px) {
  .map--archi .map__iso { display: block; position: absolute; inset: 0 2.5rem auto; width: calc(100% - 5rem); height: 5.5rem; }
  .systems .map--archi .map__plot {
    padding-top: 7rem;
    background:
      repeating-linear-gradient(180deg, rgba(127, 214, 232, .45) 0 12px, transparent 12px 16px, rgba(127, 214, 232, .45) 16px 18px, transparent 18px 22px) calc(2.5rem + (100% - 5rem) * .147) 5.5rem / 1px 100% no-repeat,
      repeating-linear-gradient(180deg, rgba(62, 107, 255, .6) 0 12px, transparent 12px 16px, rgba(62, 107, 255, .6) 16px 18px, transparent 18px 22px) 50% 5.5rem / 1px 100% no-repeat,
      repeating-linear-gradient(180deg, rgba(127, 214, 232, .45) 0 12px, transparent 12px 16px, rgba(127, 214, 232, .45) 16px 18px, transparent 18px 22px) calc(2.5rem + (100% - 5rem) * .853) 5.5rem / 1px 100% no-repeat,
      repeating-linear-gradient(90deg, rgba(127, 214, 232, .3) 0 12px, transparent 12px 16px, rgba(127, 214, 232, .3) 16px 18px, transparent 18px 22px) 0 62% / 100% 1px no-repeat,
      radial-gradient(circle, transparent 5px, rgba(127, 214, 232, .8) 5.5px, rgba(127, 214, 232, .8) 6.5px, transparent 7px) calc(2.5rem + (100% - 5rem) * .147 - 8px) 5.2rem / 16px 16px no-repeat,
      radial-gradient(circle, transparent 5px, rgba(95, 134, 255, .9) 5.5px, rgba(95, 134, 255, .9) 6.5px, transparent 7px) 50% 5.2rem / 16px 16px no-repeat,
      radial-gradient(circle, transparent 5px, rgba(127, 214, 232, .8) 5.5px, rgba(127, 214, 232, .8) 6.5px, transparent 7px) calc(2.5rem + (100% - 5rem) * .853 - 8px) 5.2rem / 16px 16px no-repeat;
  }
  .systems .map--archi .map__flow { border: 1px solid rgba(127, 214, 232, .6); background: rgba(6, 9, 18, .55); }
  .systems .map--archi .node:not(.node--key) {
    background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, 0) 50%), rgba(8, 12, 26, .72);
    border: 0; border-radius: 0; box-shadow: inset -1px -1px 0 rgba(127, 214, 232, .28);
  }
  .systems .map--archi .node--key {
    border: 0; border-radius: 0; box-shadow: inset 0 1.5px 0 var(--glow), inset -1px -1px 0 rgba(127, 214, 232, .28);
    background: repeating-linear-gradient(135deg, rgba(255, 106, 61, .10) 0 1px, transparent 1px 9px), rgba(20, 13, 18, .78);
  }
  .systems .map--archi .node:hover, .systems .map--archi .node:focus { border: 0; box-shadow: inset 0 0 0 1px var(--gl-cyan); }
  .systems .map--archi .map__flow::before {
    background:
      linear-gradient(rgba(127, 214, 232, .5), rgba(127, 214, 232, .5)) center / 100% 1px no-repeat,
      repeating-linear-gradient(90deg, rgba(127, 214, 232, .45) 0 1px, transparent 1px 28px) center / 100% 7px no-repeat;
  }
  .systems .map--archi .map__flow::after { background: linear-gradient(90deg, transparent, #5F86FF, var(--gl-cyan), transparent); height: 2px; }
}

/* ---------- Mobile : colonne verticale sombre, lisible ---------- */
@media (max-width: 1080px) {
  .systems .map__flow::before, .systems .map--archi .map__flow::before { background: linear-gradient(180deg, rgba(62, 107, 255, .6), rgba(127, 214, 232, .5) 50%, rgba(255, 106, 61, .5)); }
  .systems .map__flow::after { opacity: 0; }
  .systems .node::after { background: #060912; border-color: var(--gl-cyan); }
  .systems .map .node--key::after { background: #5F86FF; border-color: #5F86FF; }
  .systems .map--galaxy .node--key::after, .systems .map--archi .node--key::after { background: var(--glow); border-color: var(--glow); }
  .systems .map .node .node__tip, .systems .map .sat .node__tip { color: rgba(244, 241, 234, .72); background: none; }
}
.map--galaxy .ln-halo { fill: url(#galHalo); }
.map--nerys .ln-halo { fill: url(#nerHalo); }

/* ================================================================
   Fiches projets : quatre blocs + statut
   ================================================================ */
.brief { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--hair-strong); }
.brief__block { padding: 1.4rem 1.6rem 1.6rem 0; border-bottom: 1px solid var(--hair); }
.brief__block:nth-child(even) { padding-left: 1.6rem; padding-right: 0; border-left: 1px solid var(--hair); }
.brief__title {
  display: flex; align-items: baseline; gap: .7rem; margin-bottom: .7rem;
  font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; color: var(--ink-soft);
}
.brief__n { font-size: .6875rem; letter-spacing: .04em; color: var(--ink-faint); font-variant-numeric: tabular-nums; }
.brief__block p { font-size: 1rem; line-height: 1.55; color: var(--ink); max-width: 34rem; }
.brief__block--now .brief__n { color: var(--accent-text); }
.brief__meta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 1rem 2rem; padding-top: .25rem; }
.brief__status { font-size: .875rem; color: var(--ink-soft); display: inline-flex; align-items: baseline; gap: .7rem; }
.brief__status span {
  font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint);
  display: inline-flex; align-items: center; gap: .5rem;
}
.brief__status span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.project__body { gap: 1.6rem; }

@media (max-width: 700px) {
  .brief { grid-template-columns: 1fr; }
  .brief__block, .brief__block:nth-child(even) { padding: 1.1rem 0 1.2rem; border-left: 0; }
  .brief__meta { flex-direction: column; gap: .8rem; }
}
