/* ==========================================================================
   DataExg — feuille de style
   ========================================================================== */

:root {
  --ink: #0b0d10;
  --ink-2: #12151a;
  --ink-3: #1a1e25;
  --ink-line: rgba(255, 255, 255, 0.1);
  --paper: #f5f4ef;
  --paper-2: #ecebe4;
  --line: #d9d6cc;
  --text: #0b0d10;
  --muted: #565b63;
  --muted-dark: #9aa0a8;
  --accent: #d4ff3f;
  --accent-hover: #e2ff7a;
  --accent-deep: #3f5e00;

  --radius: 16px;
  --container: 1200px;
  --gutter: 16px;
  --header-h: 68px;

  --font-sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (min-width: 768px) {
  :root { --gutter: 32px; }
}

/* Base
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; line-height: 1.05; letter-spacing: -0.025em; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.section-light :focus-visible,
.section-alt :focus-visible { outline-color: var(--accent-deep); }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 100;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { left: 8px; }

.br-lg { display: none; }
@media (min-width: 900px) { .br-lg { display: inline; } }

/* Mentions France Num : visibles seulement avec <html data-france-num="valide"> */
html:not([data-france-num="valide"]) .fn-only { display: none !important; }

.fn-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  margin-top: 28px;
  padding: 8px 16px 8px 10px;
  border: 1px solid var(--ink-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
}
.fn-badge svg { width: 20px; height: 20px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.fn-badge span { font-weight: 400; color: var(--muted-dark); }
.footer-brand .fn-badge { margin-top: 16px; }

/* Boutons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s var(--ease);
}
.btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.25s var(--ease);
}
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--accent); color: var(--ink); }
.btn-primary:hover { background: var(--accent-hover); }

.btn-ghost { border-color: rgba(255, 255, 255, 0.24); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.06); }

.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }

.btn-sm { padding: 11px 18px; font-size: 0.92rem; }

/* En-tête
   ========================================================================== */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  color: #fff;
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s;
}
.site-header.is-scrolled,
.site-header.menu-open {
  background: rgba(11, 13, 16, 0.8);
  border-bottom-color: var(--ink-line);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.035em;
  text-decoration: none;
}
.brand-logo { display: block; width: auto; height: 30px; }

.nav { display: flex; align-items: center; gap: 24px; }
.nav ul { display: flex; gap: 2px; }
.nav ul a {
  display: block;
  padding: 8px 11px;
  border-radius: 999px;
  font-size: 0.94rem;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}
.nav ul a:hover,
.nav ul a.is-active { color: #fff; background: rgba(255, 255, 255, 0.08); }

.nav-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.nav-toggle span {
  position: absolute;
  left: 12px;
  width: 20px;
  height: 1.5px;
  background: #fff;
  transition: transform 0.3s var(--ease);
}
.nav-toggle span:first-child { top: 18px; }
.nav-toggle span:last-child { top: 25px; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

@media (max-width: 1100px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 12px var(--gutter) 24px;
    background: rgba(11, 13, 16, 0.97);
    border-bottom: 1px solid var(--ink-line);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav ul { flex-direction: column; }
  .nav ul a { padding: 13px 8px; border-radius: 8px; font-size: 1.05rem; }
  .nav .btn { padding-block: 15px; }
}

/* Hero
   ========================================================================== */

.hero {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: calc(var(--header-h) + 40px) 0 32px;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
}

.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }

/* Voile de lisibilité au-dessus de l'animation */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(11, 13, 16, 0.92) 0%, rgba(11, 13, 16, 0.7) 36%, rgba(11, 13, 16, 0) 66%),
    linear-gradient(0deg, var(--ink) 0%, rgba(11, 13, 16, 0) 22%);
}

/* Grille de fond */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 72% 45%, #000 15%, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 70% at 72% 45%, #000 15%, transparent 75%);
}

.hero-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: 32px 64px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}
.pulse {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(212, 255, 63, 0.5); }
  70%, 100% { box-shadow: 0 0 0 9px rgba(212, 255, 63, 0); }
}

.hero h1 {
  max-width: 15ch;
  font-size: clamp(2.7rem, 7.4vw, 6.1rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}
@media (min-width: 900px) { .hero h1 { max-width: none; } }
.hero h1 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--accent);
}

.hero-lead {
  max-width: 580px;
  margin-top: 28px;
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: rgba(255, 255, 255, 0.72);
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.proof {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--ink-line);
}
.proof li { display: flex; flex-direction: column; gap: 2px; padding: 22px 24px 6px 0; }
.proof li + li { padding-left: 24px; border-left: 1px solid var(--ink-line); }
.proof strong { font-size: 1.12rem; font-weight: 600; letter-spacing: -0.01em; }
.proof span { font-size: 0.9rem; color: var(--muted-dark); }

@media (max-width: 860px) {
  .proof { grid-template-columns: repeat(2, 1fr); }
  .proof li { padding: 16px 12px 16px 0; }
  .proof li + li { padding-left: 0; border-left: 0; }
  .proof li:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--ink-line); }
  .proof li:nth-child(n + 3) { border-top: 1px solid var(--ink-line); }
}

@media (max-width: 760px) {
  .hero-canvas { opacity: 0.6; }
  .hero::before { background: linear-gradient(180deg, rgba(11, 13, 16, 0.5), rgba(11, 13, 16, 0.82) 70%, var(--ink)); }
  .hero::after { -webkit-mask-image: radial-gradient(ellipse 90% 50% at 50% 30%, #000 10%, transparent 75%); mask-image: radial-gradient(ellipse 90% 50% at 50% 30%, #000 10%, transparent 75%); }
}

/* Sections
   ========================================================================== */

.section { position: relative; padding-block: clamp(80px, 11vw, 140px); }
.section-light { background: var(--paper); }
.section-alt { background: var(--paper-2); }
.section-dark { background: var(--ink); color: #fff; }

.section-head {
  display: grid;
  gap: 20px;
  max-width: 820px;
  margin-bottom: clamp(48px, 6vw, 72px);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.kicker span {
  display: inline-grid;
  place-items: center;
  height: 24px;
  padding: 0 9px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 0.7rem;
}
.section-dark .kicker { color: var(--muted-dark); }

h2 {
  font-size: clamp(2.1rem, 4.6vw, 3.7rem);
  line-height: 1.03;
  letter-spacing: -0.038em;
}
h2 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.015em;
}
.section-dark h2 em { color: var(--accent); }
.section-light h2 em,
.section-alt h2 em {
  padding-inline: 0.06em;
  background: linear-gradient(180deg, transparent 58%, var(--accent) 58%, var(--accent) 90%, transparent 90%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.lead { max-width: 640px; font-size: clamp(1.05rem, 1.3vw, 1.18rem); color: var(--muted); }
.section-dark .lead { color: var(--muted-dark); }
.lead a { color: var(--text); text-decoration-color: var(--accent-deep); text-underline-offset: 3px; }

/* Expertises
   ========================================================================== */

.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.service {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 36px 32px 32px;
  background: var(--paper);
  transition: background 0.3s;
}
.service:hover { background: #fff; }

.service-num {
  position: absolute;
  top: 34px;
  right: 32px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--muted);
}

.service-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--accent);
  transition: transform 0.35s var(--ease);
}
.service:hover .service-icon { transform: rotate(-6deg) scale(1.06); }
.service-icon svg,
.value-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service h3 { font-size: 1.35rem; letter-spacing: -0.02em; }
.service p { font-size: 0.98rem; color: var(--muted); }

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 14px; }
.tags li {
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #3a3f46;
}

@media (max-width: 1000px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .services { grid-template-columns: 1fr; }
  .service { padding: 28px 22px; }
  .service-num { top: 30px; right: 22px; }
}

/* Méthode
   ========================================================================== */

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }

.step { position: relative; padding-top: 64px; }
.step::before,
.step::after {
  content: "";
  position: absolute;
  top: 19px;
  left: 0;
  height: 1px;
}
.step::before { right: -32px; background: var(--ink-line); }
.step:last-child::before { right: 0; }
.step::after {
  width: 0;
  background: var(--accent);
  transition: width 0.9s var(--ease) calc(var(--i, 0) * 0.28s + 0.2s);
}
.steps.is-visible .step::after { width: calc(100% + 32px); }
.steps.is-visible .step:last-child::after { width: 100%; }

.step-num {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.step:hover .step-num { background: var(--accent); border-color: var(--accent); color: var(--ink); }

.step h3 { margin-bottom: 12px; font-size: 1.55rem; }
.step p { font-size: 0.98rem; color: var(--muted-dark); }
.step .step-meta {
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; gap: 0; }
  .step { padding: 0 0 44px 64px; }
  .step:last-child { padding-bottom: 0; }
  .step::before { top: 40px; bottom: 0; left: 19.5px; right: auto; width: 1px; height: auto; }
  .step:last-child::before { display: none; }
  .step::after { display: none; }
  .step-num { top: -6px; }
  .step h3 { font-size: 1.35rem; }
}

/* Hermes Ops
   ========================================================================== */

.hermes {
  background:
    radial-gradient(ellipse 45% 60% at 82% 45%, rgba(212, 255, 63, 0.08), transparent 70%),
    var(--ink);
  overflow: hidden;
}
.hermes-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
.hermes-copy { display: grid; gap: 22px; }
.hermes-copy h2 { font-size: clamp(2.1rem, 3.8vw, 3.2rem); }
.hermes-copy .lead { color: rgba(255, 255, 255, 0.72); }

.hermes-features { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 28px; margin-top: 14px; }
.hermes-features li { display: flex; gap: 14px; }
.hermes-features h3 { margin-bottom: 6px; font-size: 1.02rem; letter-spacing: -0.01em; }
.hermes-features p { font-size: 0.9rem; line-height: 1.55; color: var(--muted-dark); }

.hermes-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; margin-top: 14px; }
.hermes-cta p { flex: 1 1 240px; font-size: 0.88rem; color: var(--muted-dark); }

.console {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--ink-line);
  border-radius: 18px;
  background: #0e1115;
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.8), 0 0 0 6px rgba(255, 255, 255, 0.02);
  font-family: var(--font-mono);
}
.console-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--ink-line);
  font-size: 0.74rem;
  color: var(--muted-dark);
}
.console-dots { display: inline-flex; gap: 6px; }
.console-dots i { width: 10px; height: 10px; border-radius: 50%; background: #2a2f37; }
.console-title { white-space: nowrap; }
.console-status { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; color: var(--accent); white-space: nowrap; }

.console-body { display: grid; gap: 10px; min-height: 380px; padding: 20px 16px; align-content: start; }
.c-line {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 4px 12px;
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: 10px;
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}
.js .c-line { opacity: 0; transform: translateY(6px); }
.js .c-line.is-on { opacity: 1; transform: none; }
.c-tag { padding-top: 3px; font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.c-line p { font-family: var(--font-sans); font-size: 0.95rem; line-height: 1.5; color: #e6e8eb; }
.c-time { font-family: var(--font-mono); font-size: 0.8rem; color: var(--muted-dark); }
.c-line code {
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(212, 255, 63, 0.08);
  font-family: var(--font-mono);
  font-size: 0.82em;
  color: var(--accent);
}
.c-alert { background: rgba(255, 138, 101, 0.06); border-color: rgba(255, 138, 101, 0.22); }
.c-alert .c-tag { color: #ff8a65; }
.c-approve {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
  background: rgba(212, 255, 63, 0.06);
  border-color: rgba(212, 255, 63, 0.25);
}
.c-line.c-approve p { font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent); }
.c-actions { display: inline-flex; gap: 8px; }
.c-btn {
  padding: 7px 13px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: #fff;
}
.c-btn-primary { background: var(--accent); border-color: var(--accent); font-weight: 600; color: var(--ink); }
.console-caption {
  padding: 12px 18px;
  border-top: 1px solid var(--ink-line);
  font-size: 0.7rem;
  letter-spacing: 0.03em;
  color: var(--muted-dark);
}

@media (max-width: 1000px) {
  .hermes-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .hermes-features { grid-template-columns: 1fr; }
  .console-body { min-height: 0; padding: 16px 12px; }
  .c-line { grid-template-columns: 1fr; }
  .console-status { font-size: 0.68rem; }
  .console-dots { display: none; }
}


/* Bandeau réseau (animation V2 dans la page)
   ========================================================================== */

.network-band {
  position: relative;
  height: clamp(320px, 34vw, 420px);
  margin: 0 0 clamp(56px, 7vw, 88px);
  overflow: hidden;
  border: 1px solid var(--ink-line);
  border-radius: 20px;
  background:
    radial-gradient(ellipse 55% 70% at 65% 50%, rgba(212, 255, 63, 0.06), transparent 70%),
    var(--ink-2);
}
.network-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 50%, #000 20%, transparent 80%);
  mask-image: radial-gradient(ellipse 70% 80% at 50% 50%, #000 20%, transparent 80%);
}
.network-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.network-caption {
  position: absolute;
  top: 22px;
  left: 24px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 600px) {
  .network-band { height: 320px; border-radius: 16px; }
  .network-caption { top: 18px; left: 18px; }
}
/* Réalisations
   ========================================================================== */

.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.project {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px 28px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
}
.project:hover { transform: translateY(-4px); border-color: #c9c5b9; box-shadow: 0 18px 40px -26px rgba(11, 13, 16, 0.4); }
.project-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--line);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.project-sector { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: var(--accent-deep); }
.project-sector::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 1px var(--accent-deep); }
.project-role { color: var(--muted); }
.project h3 { font-size: 1.22rem; letter-spacing: -0.02em; line-height: 1.15; }
.project > p:not(.project-meta) { font-size: 0.95rem; color: var(--muted); }
.project .tags { padding-top: 6px; }

/* Réalisation mise en avant, avec schéma du flux */
.project-featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  align-items: center;
  gap: clamp(28px, 4vw, 56px);
  padding: clamp(28px, 4vw, 44px);
  border-color: var(--ink);
  background:
    radial-gradient(ellipse 50% 80% at 90% 50%, rgba(212, 255, 63, 0.07), transparent 70%),
    var(--ink);
  color: #fff;
}
.project-featured:hover { border-color: var(--ink); }
.project-featured-copy { display: flex; flex-direction: column; gap: 14px; }
.project-featured .project-meta { border-bottom-color: var(--ink-line); }
.project-featured .project-sector { color: var(--accent); }
.project-featured .project-role { color: var(--muted-dark); }
.project-featured h3 { font-size: clamp(1.4rem, 2.2vw, 1.85rem); }
.project-featured-copy > p:not(.project-meta) { font-size: 0.98rem; color: var(--muted-dark); }
.project-featured .checks { margin: 2px 0 4px; border-top-color: var(--ink-line); }
.project-featured .checks li::before { background-color: var(--ink-3); }
.project-featured .tags li { border-color: var(--ink-line); background: transparent; color: rgba(255, 255, 255, 0.82); }

.pipeline { display: grid; gap: 12px; }
.pipeline li {
  position: relative;
  display: grid;
  grid-template-columns: 104px 1fr;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border: 1px solid var(--ink-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  animation: pipe-signal 4.5s var(--ease) infinite;
  animation-delay: calc(var(--n, 0) * 0.45s);
}
.pipeline li + li::before {
  content: "";
  position: absolute;
  top: -13px;
  left: 30px;
  width: 1px;
  height: 12px;
  background: var(--accent);
}
.pipe-k {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-dark);
}
.pipeline strong { font-size: 0.98rem; font-weight: 600; }
.pipeline li.is-end { border-color: rgba(212, 255, 63, 0.45); background: rgba(212, 255, 63, 0.07); }
.pipeline li.is-end strong { color: var(--accent); }

@keyframes pipe-signal {
  0%, 30%, 100% { box-shadow: inset 0 0 0 1px rgba(212, 255, 63, 0); }
  10% { box-shadow: inset 0 0 0 1px rgba(212, 255, 63, 0.75), 0 0 0 4px rgba(212, 255, 63, 0.08); }
}

@media (max-width: 1000px) { .project-featured { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .pipeline li { grid-template-columns: 1fr; gap: 2px; } }

@keyframes fade-up {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 1000px) { .projects { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .projects { grid-template-columns: 1fr; gap: 14px; } .project { padding: 24px 22px; } }

/* Technologies
   ========================================================================== */

.stack { border-top: 1px solid var(--line); }
.stack-row {
  display: grid;
  grid-template-columns: 240px 1fr;
  align-items: center;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.stack-row h3 {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  padding: 8px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  font-size: 0.95rem;
  font-weight: 500;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.chips li:hover { background: var(--ink); border-color: var(--ink); color: var(--accent); }

.certs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.cert {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 8px;
  border-radius: 999px;
  background: var(--ink);
  font-size: 0.92rem;
  font-weight: 600;
  color: #fff;
}
.cert svg {
  width: 26px;
  height: 26px;
  padding: 5px;
  border-radius: 50%;
  background: var(--accent);
  fill: none;
  stroke: var(--ink);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 700px) {
  .stack-row { grid-template-columns: 1fr; gap: 12px; }
  .chips li { padding: 7px 13px; font-size: 0.9rem; }
}

/* À propos
   ========================================================================== */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.about-grid .kicker { margin-bottom: 20px; }
@media (min-width: 1001px) { .big-ten { position: sticky; top: calc(var(--header-h) + 48px); } }

.big-ten {
  display: flex;
  align-items: flex-start;
  gap: 0.08em;
  font-family: var(--font-serif);
  font-size: clamp(9rem, 23vw, 19rem);
  line-height: 0.78;
  letter-spacing: -0.05em;
  color: var(--accent);
}
.big-ten small {
  margin-top: 0.9em;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.5;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
}

.about-text { margin-top: 24px; max-width: 620px; font-size: 1.1rem; color: var(--muted-dark); }
.values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 32px;
  margin-top: 44px;
  padding-top: 36px;
  border-top: 1px solid var(--ink-line);
}
.values li { display: flex; gap: 14px; }
.value-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  border: 1px solid var(--ink-line);
  border-radius: 10px;
  color: var(--accent);
}
.value-icon svg { width: 18px; height: 18px; }
.values h3 { margin-bottom: 6px; font-size: 1.05rem; letter-spacing: -0.01em; }
.values p { font-size: 0.92rem; line-height: 1.55; color: var(--muted-dark); }

@media (max-width: 1000px) {
  .about-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .values { grid-template-columns: 1fr; }
}

/* Offres
   ========================================================================== */

.offers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding-top: 12px; }

.offer {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 32px 26px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.offer:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -24px rgba(11, 13, 16, 0.35); }
.offer.is-featured { background: var(--ink); border-color: var(--ink); color: #fff; }

.offer-badge {
  position: absolute;
  top: -12px;
  left: 24px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
}

.offer .offer-meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-deep);
}
.offer.is-featured .offer-meta { color: var(--accent); }
.offer h3 { font-size: 1.35rem; letter-spacing: -0.02em; }
.offer > p:not(.offer-meta) { font-size: 0.95rem; color: var(--muted); }
.offer.is-featured > p:not(.offer-meta) { color: var(--muted-dark); }

.checks { display: grid; gap: 10px; margin: 6px 0 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.offer.is-featured .checks { border-top-color: var(--ink-line); }
.checks li { position: relative; padding-left: 26px; font-size: 0.93rem; }
.checks li::before {
  content: "";
  position: absolute;
  top: 0.35em;
  left: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D4FF3F' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8.5'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.offer.is-featured .checks li::before { background-color: var(--ink-3); }
.offer .btn { margin-top: auto; width: 100%; }

@media (max-width: 1100px) { .offers { grid-template-columns: repeat(2, 1fr); row-gap: 28px; } }
@media (max-width: 600px) { .offers { grid-template-columns: 1fr; } }

/* FAQ
   ========================================================================== */

.faq-wrap {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.faq-wrap .section-head { position: sticky; top: calc(var(--header-h) + 32px); margin-bottom: 0; }

.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.012em;
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: #000; }

.plus {
  position: relative;
  flex: none;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: background 0.25s, border-color 0.25s, color 0.25s;
}
.plus::before,
.plus::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 11px;
  height: 1.5px;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform 0.3s var(--ease);
}
.plus::after { transform: translate(-50%, -50%) rotate(90deg); }
details[open] .plus { background: var(--ink); border-color: var(--ink); color: var(--accent); }
details[open] .plus::after { transform: translate(-50%, -50%) rotate(0deg); }

.faq .answer { padding: 0 56px 26px 0; color: var(--muted); }
details[open] .answer { animation: fade-up 0.35s var(--ease) both; }

@media (max-width: 860px) {
  .faq-wrap { grid-template-columns: 1fr; }
  .faq-wrap .section-head { position: static; }
  .faq summary { font-size: 1.05rem; padding: 20px 0; }
  .faq .answer { padding-right: 0; }
}

/* Contact
   ========================================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.contact-info { display: grid; gap: 22px; }

.contact-list { margin-top: 12px; }
.contact-list li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 0;
  border-top: 1px solid var(--ink-line);
}
.contact-list .label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-dark);
}
.contact-list a {
  align-self: flex-start;
  font-size: 1.1rem;
  font-weight: 500;
  text-decoration: none;
  background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 1px no-repeat;
  transition: background-size 0.3s var(--ease);
}
.contact-list a:hover { background-size: 100% 1px; }

.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--ink-line);
  border-radius: 20px;
  background: var(--ink-2);
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.86rem; font-weight: 500; color: rgba(255, 255, 255, 0.82); }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: var(--ink);
  font-size: 1rem;
  color: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field select {
  padding-right: 40px;
  -webkit-appearance: none;
  appearance: none;
  background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D4FF3F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 14px center / 16px no-repeat;
}
.field select:invalid { color: rgba(255, 255, 255, 0.45); }
.field option { background: var(--ink); color: #fff; }
.field ::placeholder { color: rgba(255, 255, 255, 0.35); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(212, 255, 63, 0.18);
}

.consent {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.86rem;
  color: var(--muted-dark);
  cursor: pointer;
}
.consent input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); }
.consent a { color: #fff; text-underline-offset: 3px; }

.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; margin-top: 4px; }
.form-status { flex: 1 1 240px; font-size: 0.9rem; color: var(--accent); }
.form-status[data-state="pending"] { color: var(--muted-dark); }
.form-status[data-state="error"] { color: #ff9b8a; }
.form .btn:disabled { opacity: 0.6; cursor: progress; }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .form { grid-template-columns: 1fr; }
  .form-foot .btn { width: 100%; }
}

/* Pied de page
   ========================================================================== */

.site-footer {
  padding: 64px 0 32px;
  overflow: hidden;
  border-top: 1px solid var(--ink-line);
  background: var(--ink);
  font-size: 0.92rem;
  color: var(--muted-dark);
}
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; }
.footer-brand .brand { color: #fff; }
.footer-brand p { max-width: 320px; margin-top: 16px; }
.footer-brand .footer-contact { margin-top: 12px; line-height: 1.7; }
.footer-contact a { color: rgba(255, 255, 255, 0.78); text-decoration: none; transition: color 0.2s; }
.footer-contact a:hover { color: var(--accent); }
.footer-nav { display: grid; grid-template-columns: repeat(2, auto); gap: 10px 56px; }
.footer-nav a,
.footer-bottom a { color: rgba(255, 255, 255, 0.78); text-decoration: none; transition: color 0.2s; }
.footer-nav a:hover,
.footer-bottom a:hover { color: var(--accent); }

.footer-word {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 48px;
  color: #161a20;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--ink-line);
}

/* Page mentions légales
   ========================================================================== */

.legal-hero { padding: calc(var(--header-h) + 72px) 0 56px; background: var(--ink); color: #fff; }
.legal-hero h1 { margin-top: 20px; font-size: clamp(2.4rem, 6vw, 4rem); letter-spacing: -0.04em; }
.legal { max-width: 760px; }
.legal h2 { margin: 48px 0 14px; font-size: 1.5rem; letter-spacing: -0.02em; }
.legal h2:first-child { margin-top: 0; }
.legal p,
.legal li { color: var(--muted); }
.legal p + p { margin-top: 12px; }
.legal ul { display: grid; gap: 6px; }
.legal strong { color: var(--text); font-weight: 600; }
.legal a { text-underline-offset: 3px; }
.legal .todo { padding: 1px 6px; border-radius: 4px; background: var(--accent); color: var(--ink); }

/* Apparition au défilement (activée par JS)
   ========================================================================== */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
