/* ============================================================
   NEURA DIGITAL v2 - "Le fil neural"
   Editorial cinématique. Coins carrés. Une ligne qui relie tout.
   Charte : Violet #5B3FE8 / Coral #FF6B47 / Ink / Cloud
   Space Grotesk display geant / Inter corps
   ============================================================ */

:root {
  --ink: #0e0d16;
  --surface: #15141f;
  --surface-2: #1b1a28;
  --cloud: #f5f4f8;
  --cloud-70: rgba(245, 244, 248, 0.7);
  --cloud-45: rgba(245, 244, 248, 0.45);
  --cloud-25: rgba(245, 244, 248, 0.25);
  --violet: #5b3fe8;
  --violet-bright: #7c64ff;
  --violet-dim: rgba(91, 63, 232, 0.14);
  --coral: #ff6b47;
  --green: #3ecf8e;
  --amber: #f5b944;
  --line: rgba(245, 244, 248, 0.12);
  --line-soft: rgba(245, 244, 248, 0.07);
  --font-display: "Space Grotesk", sans-serif;
  --font-body: "Inter", sans-serif;
  --nav-h: 68px;
  --pad: clamp(20px, 4vw, 56px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--ink);
  color: var(--cloud);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--violet); color: #fff; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; background: none; border: none; color: inherit; }

/* grain cinema */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

.shell { padding-left: var(--pad); padding-right: var(--pad); }
.max { max-width: 1520px; margin: 0 auto; }

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.04em; }

.display-xl {
  font-size: clamp(3.2rem, 10.5vw, 9.5rem);
  line-height: 0.94;
  letter-spacing: -0.045em;
}
.display-l { font-size: clamp(2.2rem, 5.4vw, 4.6rem); line-height: 1.0; }
.display-m { font-size: clamp(1.7rem, 3.4vw, 2.9rem); line-height: 1.05; }

.outline-text {
  color: transparent;
  -webkit-text-stroke: 2px var(--cloud);
}
@supports not (-webkit-text-stroke: 2px white) {
  .outline-text { color: var(--cloud); }
}
.accent { color: var(--violet-bright); }

.lede {
  color: var(--cloud-70);
  font-size: clamp(1.02rem, 1.3vw, 1.15rem);
  line-height: 1.7;
  max-width: 54ch;
}

.micro {
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--cloud-45);
}

/* ---------- Boutons / liens ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.98rem;
  padding: 17px 32px;
  border: 1px solid var(--cloud);
  color: var(--cloud);
  overflow: hidden;
  white-space: nowrap;
  transition: color 0.4s var(--ease), border-color 0.4s var(--ease);
  cursor: pointer;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--violet);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.45s var(--ease);
  z-index: 0;
}
.btn:hover::before { transform: scaleY(1); }
.btn:hover { border-color: var(--violet); color: #fff; }
.btn > * { position: relative; z-index: 1; }
.btn span { position: relative; z-index: 1; }
.btn:active { transform: scale(0.98); }

.btn-solid { background: var(--violet); border-color: var(--violet); color: #fff; }
.btn-solid::before { background: var(--cloud); }
.btn-solid:hover { color: var(--ink); border-color: var(--cloud); }

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.1rem, 1.7vw, 1.4rem);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  transition: border-color 0.35s ease, gap 0.35s var(--ease);
}
.arrow-link i { color: var(--coral); transition: transform 0.35s var(--ease); }
.arrow-link:hover { border-color: var(--coral); gap: 22px; }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background 0.4s ease, border-color 0.4s ease;
}
.nav.scrolled {
  background: rgba(14, 13, 22, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}
.nav-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.nav-logo svg, .nav-logo img { height: 30px; width: auto; display: block; }
.nav-logo .wordmark { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; letter-spacing: -0.02em; }
.nav-logo .wordmark em { font-style: normal; font-weight: 400; color: var(--cloud-45); }

.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links > li { position: relative; }
.nav-item {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--cloud-70);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 0;
  transition: color 0.25s ease;
}
.nav-item:hover, .nav-item.active { color: var(--cloud); }
.nav-item.active { text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--coral); }

.dropdown-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 280px;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
}
.nav-links li:hover .dropdown-panel,
.nav-links li:focus-within .dropdown-panel {
  opacity: 1; visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.dropdown-panel a {
  display: block;
  padding: 13px 16px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  transition: background 0.25s ease, padding-left 0.25s var(--ease);
  border-bottom: 1px solid var(--line);
}
.dropdown-panel a:last-child { border-bottom: none; }
.dropdown-panel a:hover { background: var(--violet-dim); padding-left: 22px; }
.dropdown-panel a span { display: block; font-family: var(--font-body); font-weight: 400; font-size: 0.78rem; color: var(--cloud-45); }

.nav-cta { display: flex; align-items: center; gap: 20px; }
.nav-cta .btn { padding: 11px 22px; font-size: 0.9rem; }
.nav-login { font-size: 0.88rem; color: var(--cloud-45); transition: color 0.25s ease; }
.nav-login:hover { color: var(--cloud); }

.nav-burger {
  display: none;
  width: 44px; height: 44px;
  position: relative;
  z-index: 120;
}
.nav-burger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--cloud);
  margin: 5px auto;
  transition: transform 0.35s var(--ease), opacity 0.25s ease;
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 100px var(--pad) 48px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s;
}
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu a {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 8vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  color: var(--cloud);
  transform: translateY(14px);
  opacity: 0;
  transition: transform 0.5s var(--ease), opacity 0.5s ease;
}
.mobile-menu.open a { transform: translateY(0); opacity: 1; }
.mobile-menu .btn { margin-top: 36px; justify-content: center; border-bottom: 1px solid var(--cloud); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: var(--nav-h);
  padding-bottom: clamp(48px, 7vh, 90px);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero-thread {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.hero-thread path {
  stroke-dasharray: 3200;
  stroke-dashoffset: 3200;
  animation: drawThread 2.2s var(--ease) 0.35s forwards;
}
.hero-thread circle {
  opacity: 0;
  animation: nodeIn 0.5s ease forwards;
}
.hero-thread circle:nth-of-type(1) { animation-delay: 0.7s; }
.hero-thread circle:nth-of-type(2) { animation-delay: 1.0s; }
.hero-thread circle:nth-of-type(3) { animation-delay: 1.3s; }
.hero-thread circle:nth-of-type(4) { animation-delay: 1.6s; }
.hero-thread circle:nth-of-type(5) { animation-delay: 1.9s; }
.hero-thread circle:nth-of-type(6) { animation-delay: 2.2s; }
@keyframes drawThread { to { stroke-dashoffset: 0; } }
@keyframes nodeIn { to { opacity: 1; } }

.hero-content { position: relative; z-index: 1; }
.hero h1 { text-transform: none; }
.hero h1 .hline { display: block; overflow: hidden; }
.hero h1 .hline > span { display: inline-block; transform: translateY(112%); animation: riseUp 1s var(--ease) forwards; }
.hero h1 .hline:nth-child(2) > span { animation-delay: 0.14s; }
.hero h1 .hline.indent { padding-left: clamp(40px, 12vw, 220px); }
@keyframes riseUp { to { transform: translateY(0); } }

.hero-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  margin-top: clamp(34px, 5vh, 64px);
  opacity: 0;
  animation: fadeIn 0.9s ease 0.9s forwards;
}
.hero-foot .lede { max-width: 44ch; }
.hero-ctas { display: flex; gap: 18px; flex-shrink: 0; flex-wrap: wrap; }
@keyframes fadeIn { to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .hero h1 .hline > span { transform: none; animation: none; }
  .hero-foot { opacity: 1; animation: none; }
  .hero-thread path { stroke-dashoffset: 0; animation: none; }
  .hero-thread circle { opacity: 1; animation: none; }
}

/* ---------- Hero FX (accueil) ---------- */
.hero-fx { isolation: isolate; }

.neural-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  animation: canvasIn 1.6s ease 0.3s forwards;
}
@keyframes canvasIn { to { opacity: var(--nc-max, 1); } }

.page-hero .neural-canvas { --nc-max: 0.7; }
.login-visual .neural-canvas { --nc-max: 0.85; }
.page-hero-content { position: relative; z-index: 1; }

.hero-glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(640px circle at var(--gx, 72%) var(--gy, 34%), rgba(91, 63, 232, 0.17), transparent 62%),
    radial-gradient(900px circle at 85% 110%, rgba(255, 107, 71, 0.07), transparent 60%);
  transition: opacity 0.4s ease;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero-fx h1 .hline > span:not(.sr-only) { transform: none; animation: none; }
.hero-fx .ch {
  display: inline-block;
  transform: translateY(118%) rotate(4deg);
  animation: chUp 0.9s var(--ease) var(--d, 0s) forwards;
  transform-origin: bottom left;
}
@keyframes chUp {
  to { transform: translateY(0) rotate(0deg); }
}

.hero-fx .outline-text .ch {
  animation:
    chUp 0.9s var(--ease) var(--d, 0s) forwards,
    strokeWave 4.5s ease calc(var(--d, 0s) + 1.6s) infinite;
}
@keyframes strokeWave {
  0%, 100% { -webkit-text-stroke-color: var(--cloud); }
  12% { -webkit-text-stroke-color: var(--violet-bright); }
  24% { -webkit-text-stroke-color: var(--cloud); }
}

.hero-scroll {
  position: absolute;
  right: var(--pad);
  bottom: clamp(48px, 7vh, 90px);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  opacity: 0;
  animation: fadeIn 1s ease 1.8s forwards;
}
.hero-scroll .micro { writing-mode: vertical-rl; letter-spacing: 0.3em; }
.hero-scroll-line {
  width: 1px;
  height: 54px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}
.hero-scroll-line::after {
  content: "";
  position: absolute;
  left: 0; top: -40%;
  width: 100%; height: 40%;
  background: linear-gradient(180deg, transparent, var(--coral));
  animation: scrollDrip 2.2s ease-in-out infinite;
}
@keyframes scrollDrip {
  0% { top: -40%; }
  60%, 100% { top: 110%; }
}

@media (max-width: 1024px) {
  .hero-scroll { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .neural-canvas { opacity: var(--nc-max, 1); animation: none; }
  .hero-fx .ch { transform: none; animation: none; }
  .hero-fx .outline-text .ch { animation: none; }
  .hero-scroll { opacity: 1; animation: none; }
  .hero-scroll-line::after { animation: none; }
}

/* ---------- Marquee ---------- */
.marquee {
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 26px 0;
  white-space: nowrap;
}
.marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 56px;
  padding-right: 56px;
  animation: slide 36s linear infinite;
  will-change: transform;
}
.marquee-track span {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  letter-spacing: -0.02em;
  color: var(--cloud-45);
}
.marquee-track span.lit { color: var(--cloud); }
.marquee-track svg { height: 26px; width: auto; flex-shrink: 0; }
@keyframes slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(90px, 12vh, 150px) 0; }
.section-title { margin-bottom: clamp(40px, 6vh, 72px); }
.section-title .micro { display: block; margin-bottom: 16px; }
.section-title h2 { max-width: 16ch; }

/* ---------- Services index ---------- */
.svc-index { border-top: 1px solid var(--line); }
.svc-row {
  position: relative;
  display: grid;
  grid-template-columns: 1fr minmax(200px, 400px) 60px;
  align-items: center;
  gap: 40px;
  padding: clamp(26px, 4vh, 44px) 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left 0.5s var(--ease);
}
.svc-row:hover { padding-left: 26px; }
.svc-row .svc-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 4.6vw, 4rem);
  letter-spacing: -0.04em;
  line-height: 1;
  transition: color 0.35s ease;
}
.svc-row:hover .svc-name { color: var(--violet-bright); }
.svc-row .svc-desc { font-size: 0.94rem; color: var(--cloud-45); max-width: 40ch; transition: color 0.35s ease; }
.svc-row:hover .svc-desc { color: var(--cloud-70); }
.svc-row .svc-arrow {
  font-size: 30px;
  color: var(--cloud-45);
  justify-self: end;
  transform: translateX(-8px);
  opacity: 0.4;
  transition: transform 0.4s var(--ease), opacity 0.4s ease, color 0.4s ease;
}
.svc-row:hover .svc-arrow { transform: translateX(0); opacity: 1; color: var(--coral); }
.svc-media {
  position: absolute;
  right: 90px;
  top: 50%;
  transform: translateY(-50%) scale(0.94) rotate(-1.5deg);
  width: clamp(200px, 22vw, 320px);
  aspect-ratio: 5 / 4;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
  z-index: 2;
  filter: grayscale(0.5) contrast(1.05);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  transition: opacity 0.45s ease, transform 0.55s var(--ease);
}
.svc-row:hover .svc-media { opacity: 1; transform: translateY(-50%) scale(1) rotate(0deg); }

/* ---------- Bande image plein cadre ---------- */
.film {
  position: relative;
  height: clamp(340px, 68vh, 640px);
  overflow: hidden;
}
.film img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.65) contrast(1.08) brightness(0.82);
}
.film::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(91, 63, 232, 0.32), transparent 45%, rgba(255, 107, 71, 0.18));
  mix-blend-mode: overlay;
}
.film-caption {
  padding-top: 18px;
  color: var(--cloud-45);
  font-size: 0.85rem;
}

/* ---------- Méthode : pile sticky ---------- */
.method-stack { counter-reset: step; }
.method-panel {
  position: sticky;
  top: var(--nav-h);
  min-height: calc(100dvh - var(--nav-h));
  background: var(--ink);
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
}
.method-panel:nth-child(even) { background: var(--surface); }
.method-grid {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(140px, 0.8fr) 1.4fr;
  gap: clamp(30px, 6vw, 100px);
  align-items: center;
}
.method-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(6rem, 17vw, 15rem);
  line-height: 1;
  letter-spacing: -0.05em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(245, 244, 248, 0.22);
}
@supports not (-webkit-text-stroke: 2px white) {
  .method-num { color: rgba(245, 244, 248, 0.14); }
}
.method-body h3 { font-size: clamp(1.9rem, 4vw, 3.4rem); letter-spacing: -0.035em; margin-bottom: 18px; }
.method-body h3 .node-dot {
  display: inline-block;
  width: 0.32em; height: 0.32em;
  border-radius: 50%;
  background: var(--coral);
  margin-left: 0.18em;
  vertical-align: super;
}
.method-body p { color: var(--cloud-70); max-width: 46ch; font-size: 1.02rem; }
.method-body .micro { display: block; margin-top: 26px; }

/* ---------- Manifeste ---------- */
.manifesto-rows { border-top: 1px solid var(--line); }
.mani-row {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 1.2fr;
  gap: 40px;
  padding: clamp(30px, 4.5vh, 48px) 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.mani-row .display-m { transition: color 0.3s ease, padding-left 0.45s var(--ease); }
.mani-row:hover .display-m { color: var(--violet-bright); padding-left: 14px; }
.mani-row p { color: var(--cloud-70); max-width: 52ch; }

/* ---------- Citation ---------- */
.quote-hero blockquote {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.6rem, 3.6vw, 3.1rem);
  line-height: 1.22;
  letter-spacing: -0.03em;
  max-width: 26ch;
}
.quote-hero blockquote .accent { color: var(--violet-bright); }
.quote-hero figcaption { margin-top: 30px; color: var(--cloud-45); font-size: 0.95rem; }
.quote-hero figcaption strong { color: var(--cloud); font-weight: 600; display: block; }
.quotes-minor {
  margin-top: clamp(48px, 8vh, 80px);
  padding-top: clamp(30px, 5vh, 48px);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 5vw, 80px);
}
.quotes-minor blockquote { font-size: 1.02rem; color: var(--cloud-70); line-height: 1.6; }
.quotes-minor figcaption { margin-top: 14px; font-size: 0.85rem; color: var(--cloud-45); }
.quotes-minor figcaption strong { color: var(--cloud); }

/* ---------- CTA final ---------- */
.cta-final {
  border-top: 1px solid var(--line);
  padding: clamp(90px, 14vh, 170px) 0;
}
.cta-final h2 { margin-bottom: clamp(30px, 5vh, 50px); }
.cta-final .cta-row { display: flex; align-items: center; gap: 36px; flex-wrap: wrap; }
.cta-final .note { color: var(--cloud-45); font-size: 0.92rem; max-width: 38ch; }

/* ---------- Pages internes ---------- */
.page-hero {
  padding: calc(var(--nav-h) + clamp(70px, 12vh, 130px)) 0 clamp(50px, 8vh, 90px);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.page-hero h1 { max-width: 14ch; }
.page-hero .lede { margin-top: 28px; }
.page-hero .hero-cta-row { margin-top: 38px; display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.page-thread {
  position: absolute;
  right: 0; top: 0;
  height: 100%;
  width: min(46vw, 700px);
  pointer-events: none;
  opacity: 0.8;
}

/* index de features (pages internes) */
.feat-rows { border-top: 1px solid var(--line); }
.feat-row {
  display: grid;
  grid-template-columns: minmax(230px, 0.9fr) 1.4fr;
  gap: 40px;
  padding: clamp(26px, 4vh, 42px) 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
  transition: background 0.3s ease;
}
.feat-row h3 {
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  letter-spacing: -0.03em;
  transition: color 0.3s ease, padding-left 0.45s var(--ease);
}
.feat-row:hover h3 { color: var(--violet-bright); padding-left: 12px; }
.feat-row p { color: var(--cloud-70); max-width: 56ch; }

/* deux colonnes compris / audience */
.deliver { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: start; }
.deliver h2 { margin-bottom: 34px; }
.check-list li {
  display: flex;
  gap: 16px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.98rem;
  color: var(--cloud-70);
  align-items: baseline;
}
.check-list li::before {
  content: "";
  width: 9px; height: 9px;
  background: var(--coral);
  flex-shrink: 0;
  transform: translateY(-1px);
}
.check-list li strong { color: var(--cloud); font-weight: 600; }
.aud-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.aud-pill {
  padding: 10px 18px;
  border: 1px solid var(--line);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.88rem;
  color: var(--cloud-70);
  transition: border-color 0.3s ease, color 0.3s ease, background 0.3s ease;
}
.aud-pill:hover { border-color: var(--violet); color: var(--cloud); background: rgba(91, 63, 232, 0.12); }

/* ---------- Contact ---------- */
.contact-wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(48px, 7vw, 110px);
  align-items: start;
}
.contact-info h1 { margin-bottom: 26px; }
.contact-info .lede { margin-bottom: 48px; }
.channel-rows { border-top: 1px solid var(--line); margin-bottom: 44px; }
.channel {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left 0.4s var(--ease);
}
.channel:hover { padding-left: 14px; }
.channel strong { font-family: var(--font-display); font-size: 1.08rem; font-weight: 600; transition: color 0.3s ease; }
.channel:hover strong { color: var(--violet-bright); }
.channel span { font-size: 0.85rem; color: var(--cloud-45); text-align: right; }
.promise { color: var(--cloud-70); font-size: 0.95rem; max-width: 46ch; }
.promise strong { color: var(--cloud); }
.promise::before {
  content: "";
  display: block;
  width: 44px; height: 3px;
  background: linear-gradient(90deg, var(--violet), var(--coral));
  margin-bottom: 16px;
}

.contact-hero .neural-canvas { --nc-max: 0.28; }

.contact-form {
  border: 1px solid var(--line);
  background: rgba(21, 20, 31, 0.92);
  padding: clamp(22px, 3vw, 36px);
  position: relative;
  z-index: 1;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.form-group { display: flex; flex-direction: column; gap: 8px; padding: 0 0 18px; }
.form-group label {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--cloud);
}
.form-group .hint { font-size: 0.75rem; color: var(--cloud-45); font-weight: 400; }
.form-group input,
.form-group select,
.form-group textarea {
  background: #1b1a28;
  border: 1px solid rgba(245, 244, 248, 0.22);
  padding: 14px 16px;
  color: var(--cloud);
  font-family: var(--font-body);
  font-size: 1.02rem;
  width: 100%;
  min-height: 48px;
  transition: border-color 0.3s ease, background 0.3s ease;
  border-radius: 0;
}
.form-group input::placeholder, .form-group textarea::placeholder { color: rgba(245, 244, 248, 0.48); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--violet-bright);
  background: #221f33;
  box-shadow: 0 0 0 3px var(--violet-dim);
}
.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23F5F4F8' stroke-opacity='0.7' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-color: #1b1a28;
  cursor: pointer;
  padding-right: 40px;
}
.form-group select:focus { background-color: #221f33; }
.form-group select option { background: #1b1a28; color: var(--cloud); }
.form-group textarea { resize: vertical; min-height: 140px; }
.form-error { font-size: 0.8rem; color: var(--coral); display: none; }
.form-group.invalid input, .form-group.invalid textarea, .form-group.invalid select { border-color: var(--coral); }
.form-group.invalid .form-error { display: block; }
.contact-form .btn { margin-top: 8px; width: 100%; justify-content: center; }
.form-success { display: none; padding: 48px 0; }
.form-success .display-m { margin-bottom: 14px; }
.form-success p { color: var(--cloud-70); }

/* ---------- Pages légales ---------- */
.legal-page {
  position: relative;
  overflow: hidden;
  padding: calc(var(--nav-h) + clamp(50px, 8vh, 90px)) 0 clamp(70px, 10vh, 130px);
}
.legal-page .neural-canvas { --nc-max: 0.45; }
.legal-prose {
  position: relative;
  z-index: 1;
  max-width: 820px;
  color: var(--cloud-70);
  font-size: 0.99rem;
  line-height: 1.75;
}
.legal-prose h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--cloud);
  max-width: none;
  margin-bottom: 18px;
}
.legal-prose h1 + p em,
.legal-prose h1 + p {
  color: var(--cloud-45);
  font-size: 0.9rem;
}
.legal-prose h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.35rem, 2.6vw, 1.8rem);
  letter-spacing: -0.02em;
  color: var(--cloud);
  margin: 54px 0 18px;
}
.legal-prose h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.12rem;
  color: var(--cloud);
  margin: 34px 0 12px;
}
.legal-prose p { margin-bottom: 16px; }
.legal-prose strong { color: var(--cloud); font-weight: 600; }
.legal-prose a { color: var(--violet-bright); text-decoration: underline; text-underline-offset: 3px; }
.legal-prose a:hover { color: var(--cloud); }
.legal-prose ul, .legal-prose ol { margin: 0 0 18px 22px; display: flex; flex-direction: column; gap: 8px; }
.legal-prose ul li { list-style: none; position: relative; padding-left: 18px; }
.legal-prose ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 7px; height: 7px;
  background: var(--coral);
}
.legal-prose ol { list-style: decimal; }
.legal-prose ol li { list-style: decimal; }
.legal-prose hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 40px 0;
}
.legal-prose blockquote {
  border-left: 3px solid var(--violet);
  background: var(--surface);
  padding: 18px 22px;
  margin: 0 0 18px;
  color: var(--cloud-70);
}
.legal-prose blockquote p:last-child { margin-bottom: 0; }
.legal-prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.88em;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 1px 6px;
  color: var(--cloud);
}
.legal-prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 24px;
  font-size: 0.88rem;
  display: block;
  overflow-x: auto;
}
.legal-prose th, .legal-prose td {
  border: 1px solid var(--line);
  padding: 11px 14px;
  text-align: left;
  vertical-align: top;
  min-width: 120px;
}
.legal-prose th {
  background: var(--surface);
  color: var(--cloud);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.84rem;
}

/* ---------- Bandeau cookies ---------- */
.cookie-banner {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 300;
  margin: 0 auto;
  max-width: 720px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  padding: 22px 26px;
  display: flex;
  align-items: center;
  gap: 26px;
  animation: cookieIn 0.5s var(--ease);
}
.cookie-banner[hidden] { display: none; }
@keyframes cookieIn {
  from { transform: translateY(24px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  font-size: 0.88rem;
  color: var(--cloud-70);
  line-height: 1.6;
}
.cookie-banner a { color: var(--violet-bright); text-decoration: underline; text-underline-offset: 3px; }
.cookie-actions { display: flex; flex-direction: column; gap: 10px; flex-shrink: 0; }
.cookie-btn { justify-content: center; padding: 12px 22px; font-size: 0.85rem; white-space: nowrap; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); overflow: hidden; }
.footer-mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3.4rem, 12vw, 11rem);
  line-height: 1;
  letter-spacing: -0.045em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(245, 244, 248, 0.2);
  padding: clamp(40px, 6vh, 70px) 0 0;
  white-space: nowrap;
  user-select: none;
}
@supports not (-webkit-text-stroke: 2px white) {
  .footer-mark { color: rgba(245, 244, 248, 0.12); }
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding: clamp(44px, 7vh, 70px) 0;
}
.footer-brand svg, .footer-brand img { height: 34px; width: auto; display: block; margin-bottom: 16px; }
.footer-brand p { color: var(--cloud-45); font-size: 0.92rem; max-width: 32ch; }
.footer h4 { font-family: var(--font-display); font-size: 0.92rem; margin-bottom: 20px; }
.footer-col ul { display: flex; flex-direction: column; gap: 11px; }
.footer-col a { color: var(--cloud-45); font-size: 0.92rem; transition: color 0.25s ease, padding-left 0.3s var(--ease); }
.footer-col a:hover { color: var(--cloud); padding-left: 6px; }
.footer-link-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font: inherit;
  color: var(--cloud-45);
  font-size: 0.92rem;
  text-align: left;
  transition: color 0.25s ease, padding-left 0.3s var(--ease);
}
.footer-link-btn:hover { color: var(--cloud); padding-left: 6px; }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 26px 0;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  color: var(--cloud-45);
  font-size: 0.85rem;
}

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
  .cookie-banner { animation: none; }
}

/* focus visible */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--violet-bright);
  outline-offset: 3px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: block; }

  .svc-row { grid-template-columns: 1fr 48px; }
  .svc-row .svc-desc { display: none; }
  .svc-media { display: none; }

  .method-grid { grid-template-columns: 1fr; gap: 10px; }
  .method-num { font-size: clamp(4.5rem, 14vw, 8rem); }
  .method-panel { min-height: auto; position: static; padding: 56px 0; }

  .deliver { grid-template-columns: 1fr; gap: 56px; }
  .contact-wrap { grid-template-columns: 1fr; gap: 56px; }
  .quotes-minor { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .login-wrap { grid-template-columns: 1fr; }
  .login-visual { display: none; }
}

@media (max-width: 640px) {
  body { font-size: 15px; }

  .hero-foot { flex-direction: column; align-items: flex-start; gap: 30px; }
  .hero-ctas { width: 100%; flex-direction: column; }
  .hero-ctas .btn { justify-content: center; }
  .hero h1 .hline.indent { padding-left: 10vw; }

  .mani-row { grid-template-columns: 1fr; gap: 12px; }
  .feat-row { grid-template-columns: 1fr; gap: 10px; }

  .form-row { grid-template-columns: 1fr; gap: 18px; }
  .cta-final .cta-row { flex-direction: column; align-items: flex-start; }

  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; }
  .cookie-banner { flex-direction: column; align-items: stretch; gap: 16px; }
  .cookie-actions { flex-direction: row; }
  .cookie-btn { flex: 1; }
}

/* Phosphor via CDN */
.ph { display: inline-block; font-style: normal; font-weight: normal; line-height: 1; speak: never; }

/* ---------- Auth / portail ---------- */
body.app-body { background: var(--ink); }
.app-shell { min-height: 100dvh; display: grid; grid-template-columns: 260px 1fr; }
.app-side {
  border-right: 1px solid var(--line);
  background: var(--surface);
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: sticky; top: 0; height: 100dvh;
}
.app-side .brand { display: flex; align-items: center; gap: 10px; }
.app-side .brand svg, .app-side .brand img { height: 28px; width: auto; display: block; }
.app-side .brand span { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; }
.app-side .brand em { font-style: normal; font-weight: 400; color: var(--cloud-45); }
.app-nav { display: flex; flex-direction: column; gap: 4px; }
.app-nav a {
  padding: 11px 12px;
  color: var(--cloud-70);
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}
.app-nav a:hover, .app-nav a.active { color: var(--cloud); background: rgba(91,63,232,0.14); border-color: var(--line); }
.app-side .who { margin-top: auto; color: var(--cloud-45); font-size: 0.82rem; }
.app-main { padding: 40px var(--pad) 80px; min-width: 0; }
.app-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 36px; flex-wrap: wrap; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 36px; }
.kpi { border: 1px solid var(--line); padding: 22px; background: var(--surface); }
.kpi .micro { margin-bottom: 8px; display: block; }
.kpi strong { font-family: var(--font-display); font-size: 1.8rem; letter-spacing: -0.03em; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 14px 10px; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.table th { color: var(--cloud-45); font-weight: 500; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.12em; }
.table a { color: var(--cloud); }
.table a:hover { color: var(--violet-bright); }
.badge { display: inline-flex; align-items: center; padding: 4px 10px; font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; border: 1px solid var(--line); }
.badge-ok { color: #8ee0b0; border-color: rgba(142,224,176,0.35); }
.badge-warn { color: var(--coral); border-color: rgba(255,107,71,0.4); }
.badge-muted { color: var(--cloud-45); }
.flash { border: 1px solid var(--violet); background: rgba(91,63,232,0.16); padding: 16px 18px; margin-bottom: 24px; color: var(--cloud); }
.flash-error { border-color: var(--coral); background: rgba(255,107,71,0.12); }
.muted { color: var(--cloud-45); }
.alert { padding: 14px 18px; border: 1px solid var(--line); font-size: 0.9rem; margin-bottom: 20px; }
.alert.err { border-color: rgba(255, 107, 71, 0.4); color: var(--coral); background: rgba(255, 107, 71, 0.06); }
.alert.ok { border-color: rgba(62, 207, 142, 0.35); color: var(--green); background: rgba(62, 207, 142, 0.06); }

.login-wrap {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.login-visual {
  position: relative;
  border-right: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px;
}
.login-visual .footer-mark { font-size: clamp(2.6rem, 6vw, 5.4rem); padding: 0; position: relative; z-index: 1; }
.login-visual .nav-logo,
.login-visual .lede,
.login-visual .micro { position: relative; z-index: 1; }
.login-form-col { display: flex; flex-direction: column; justify-content: center; padding: clamp(28px, 6vw, 90px); }
.login-form-col h1 { font-size: clamp(2rem, 4vw, 3.2rem); margin-bottom: 12px; }
.login-form-col .lede { margin-bottom: 40px; }
.login-form-col form { max-width: 420px; }
.login-form-col .btn { margin-top: 0; }
.pform-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.line-editor { display: grid; gap: 12px; margin: 18px 0; }
.line-row { display: grid; grid-template-columns: 2fr 90px 120px 36px; gap: 10px; align-items: end; }
.muted { color: var(--cloud-45); }
.stack-sm { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 900px) {
  .app-shell { grid-template-columns: 1fr; }
  .app-side { position: static; height: auto; }
  .line-row { grid-template-columns: 1fr; }
}
