:root {
    --navy: #030508;
    --navy-light: #142c54;
    --blue: #3B82F6;
    --blue-soft: #a9c6f9;
    --off-white: #e2cc67;
    --gold: #D9A441;
    --slate: #5B6B82;
    --line: rgba(255,255,255,0.08);
  }

  * { box-sizing: border-box; margin: 0; padding: 0; }

  html { scroll-behavior: smooth; }

  body {
    background: var(--off-white);
    color: var(--navy);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
  }

  h1, h2, h3, .display {
    font-family: 'Space Grotesk', sans-serif;
  }

  .mono {
    font-family: 'JetBrains Mono', monospace;
  }

  a { color: inherit; text-decoration: none; }

  :focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 3px;
  }

  /* ===== NAV ===== */
  nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 60px;
    background: rgba(247,249,252,0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(11,29,58,0.06);
  }

  .logo {
    font-weight: 700;
    font-size: 18px;
    letter-spacing: -0.3px;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .logo .dot { color: var(--blue); }

  nav ul {
    display: flex;
    gap: 36px;
    list-style: none;
  }

  nav ul li a {
    font-size: 14px;
    font-weight: 500;
    color: var(--slate);
    transition: color 0.2s ease;
  }

  nav ul li a:hover { color: var(--navy); }

  .nav-cta {
    background: var(--navy);
    color: white !important;
    padding: 10px 22px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
  }

  /* ===== HERO ===== */
  .hero {
    min-height: 100vh;
    background: var(--navy);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 140px 60px 100px;
    position: relative;
    overflow: hidden;
  }

  .hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59,130,246,0.25) 0%, transparent 70%);
    pointer-events: none;
  }

  /* Fond de lignes de code défilantes, discret */
  .code-bg {
    position: absolute;
    inset: 0;
    display: flex;
    gap: 48px;
    padding: 0 20px;
    pointer-events: none;
    mask-image: linear-gradient(to bottom, transparent, black 25%, black 75%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 25%, black 75%, transparent);
  }

  .code-col {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    line-height: 2;
    color: rgba(255,255,255,0.06);
    white-space: pre;
    animation: scrollCode linear infinite;
    animation-duration: 38s;
  }

  .code-col.rev { animation-direction: reverse; animation-duration: 46s; color: rgba(59,130,246,0.09); }
  .code-col:last-child { animation-duration: 52s; }

  @keyframes scrollCode {
    from { transform: translateY(0); }
    to { transform: translateY(-50%); }
  }

  .eyebrow {
    position: relative;
    z-index: 1;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    color: var(--gold);
    letter-spacing: 2px;
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeUp 0.7s ease forwards;
  }

  .hero h1 {
    position: relative;
    z-index: 1;
    font-size: clamp(38px, 6vw, 76px);
    font-weight: 700;
    line-height: 1.05;
    max-width: 900px;
    letter-spacing: -1.5px;
    opacity: 0;
    animation: fadeUp 0.8s ease 0.15s forwards;
  }

  .hero h1 span {
    color: var(--blue-soft);
  }

  .hero p.lead {
    position: relative;
    z-index: 1;
    margin-top: 26px;
    font-size: 19px;
    color: rgba(255,255,255,0.72);
    max-width: 560px;
    opacity: 0;
    animation: fadeUp 0.8s ease 0.3s forwards;
  }

  .hero-cta {
    position: relative;
    z-index: 1;
    margin-top: 40px;
    display: flex;
    gap: 16px;
    opacity: 0;
    animation: fadeUp 0.8s ease 0.45s forwards;
  }

  .btn-primary {
    background: var(--blue);
    color: white;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    display: inline-block;
    transition: transform 0.2s ease, background 0.2s ease;
  }

  .btn-primary:hover {
    background: #2563eb;
    transform: translateY(-2px);
  }

  .btn-ghost {
    border: 1px solid rgba(255,255,255,0.25);
    color: white;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    display: inline-block;
    transition: border-color 0.2s ease;
  }

  .btn-ghost:hover { border-color: white; }

  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
  }

  /* Commit-graph signature line under hero */
  .commit-line {
    position: relative;
    z-index: 1;
    margin-top: 90px;
    display: flex;
    align-items: center;
    gap: 0;
    opacity: 0;
    animation: fadeUp 1s ease 0.6s forwards;
  }

  .commit-node {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--blue-soft);
    flex-shrink: 0;
  }

  .commit-node.gold { background: var(--gold); }

  .commit-seg {
    height: 1px;
    background: var(--line);
    flex: 1;
    min-width: 40px;
  }

  .commit-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    padding: 0 14px;
    white-space: nowrap;
  }

  /* ===== SECTION GENERIC ===== */
  section {
    padding: 110px 60px;
  }

  .section-head {
    max-width: 620px;
    margin-bottom: 64px;
  }

  .section-eyebrow {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    color: var(--blue);
    letter-spacing: 2px;
    margin-bottom: 14px;
  }

  .section-head h2 {
    font-size: clamp(28px, 4vw, 42px);
    letter-spacing: -0.8px;
    margin-bottom: 16px;
  }

  .section-head p {
    color: var(--slate);
    font-size: 16px;
  }

  /* ===== FORMULES ===== */
  .formules {
    background: white;
  }

  .formule-track {
    position: relative;
  }

  .formule-track::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 27px;
    width: 2px;
    background: linear-gradient(to bottom, var(--blue-soft), var(--line) 90%);
  }

  .formule {
    position: relative;
    padding: 28px 32px 44px 76px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .formule:last-child { padding-bottom: 28px; }

  .formule > * {
    position: relative;
    z-index: 1;
  }

  .formule::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 60px;
    right: -20px;
    bottom: 20px;
    background:
      radial-gradient(rgba(11,29,58,0.025) 1px, transparent 1px),
      #ffffff;
    background-size: 6px 6px, auto;
    border-radius: 14px;
    box-shadow: 0 1px 3px rgba(11,29,58,0.06), 0 8px 20px rgba(11,29,58,0.03);
    transform: rotate(0deg) translateY(0);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
    z-index: 0;
    pointer-events: none;
  }

  .formule:nth-child(odd)::before { transform-origin: bottom left; }
  .formule:nth-child(even)::before { transform-origin: bottom right; }

  .formule:hover::before {
    box-shadow: 0 4px 10px rgba(11,29,58,0.1), 0 18px 34px rgba(11,29,58,0.08);
  }

  .formule:nth-child(odd):hover::before {
    transform: rotate(-0.6deg) translateY(-6px);
  }

  .formule:nth-child(even):hover::before {
    transform: rotate(0.6deg) translateY(-6px);
  }

  .formule-marker {
    position: absolute;
    left: 0;
    top: 2px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--navy);
    color: var(--blue-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    font-weight: 500;
    border: 3px solid white;
    box-shadow: 0 0 0 2px var(--line);
  }

  .formule h3 {
    font-size: 24px;
    letter-spacing: -0.4px;
    margin-bottom: 6px;
  }

  .formule .tagline {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    color: var(--blue);
    margin-bottom: 16px;
  }

  .formule p.desc {
    color: var(--slate);
    font-size: 15px;
    margin-bottom: 18px;
  }

  .formule ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .formule ul li {
    font-size: 14.5px;
    color: var(--navy);
    display: flex;
    gap: 10px;
    align-items: baseline;
  }

  .formule ul li::before {
    content: '→';
    color: var(--blue);
    font-size: 13px;
  }

  .formule .meta {
    background: var(--off-white);
    border-radius: 12px;
    padding: 24px;
    align-self: start;
  }

  .meta-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(11,29,58,0.07);
    font-size: 14px;
  }

  .meta-row:last-child { border-bottom: none; }

  .meta-row .k { color: var(--slate); }
  .meta-row .v { font-weight: 600; }

  @media (max-width: 800px) {
    .formule { grid-template-columns: 1fr; }
  }

  /* ===== FONDATEURS ===== */
  .fondateurs {
    background: var(--off-white);
  }

  .founder-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .founder-card {
    background: white;
    border-radius: 16px;
    padding: 36px;
    border: 1px solid rgba(11,29,58,0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
  }

  .founder-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(11,29,58,0.08);
  }

  .founder-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--navy);
    color: var(--blue-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 20px;
  }

  .founder-card h3 {
    font-size: 21px;
    letter-spacing: -0.3px;
    margin-bottom: 4px;
  }

  .founder-role {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12.5px;
    color: var(--blue);
    margin-bottom: 16px;
  }

  .founder-bio {
    color: var(--slate);
    font-size: 14.5px;
    margin-bottom: 20px;
  }

  .founder-github {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    padding: 9px 16px;
    border: 1px solid rgba(11,29,58,0.15);
    border-radius: 8px;
    transition: border-color 0.2s ease, background 0.2s ease;
  }

  .founder-github:hover {
    border-color: var(--navy);
    background: var(--navy);
    color: white;
  }

  @media (max-width: 800px) {
    .founder-grid { grid-template-columns: 1fr; }
  }

  /* ===== RÉALISATIONS ===== */
  .realisations {
    background: white;
  }

  .real-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 32px;
    align-items: stretch;
  }

  .real-card {
    background: var(--off-white);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(11,29,58,0.06);
    display: flex;
    flex-direction: column;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
  }

  .real-card:nth-child(odd):hover {
    transform: rotate(-0.8deg) translateY(-6px);
    box-shadow: 0 4px 10px rgba(11,29,58,0.1), 0 20px 38px rgba(11,29,58,0.09);
  }

  .real-card:nth-child(even):hover {
    transform: rotate(0.8deg) translateY(-6px);
    box-shadow: 0 4px 10px rgba(11,29,58,0.1), 0 20px 38px rgba(11,29,58,0.09);
  }

  .real-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid rgba(11,29,58,0.06);
  }

  .real-card-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--blue);
    letter-spacing: 1px;
  }

  .real-card-dots {
    display: flex;
    gap: 6px;
  }

  .real-card-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(11,29,58,0.15);
  }

  .real-card h3 {
    font-size: 18px;
    padding: 18px 22px 0;
    letter-spacing: -0.3px;
  }

  .real-card p.real-desc {
    padding: 8px 22px 18px;
    font-size: 14px;
    color: var(--slate);
  }

  .real-embed {
    flex: 1;
    min-height: 340px;
    background: var(--navy);
    margin: 0 22px 22px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
  }

  .real-embed iframe {
    width: 100%;
    height: 100%;
    min-height: 340px;
    border: none;
    display: block;
  }

  .real-embed img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
  }

  .real-embed-label {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(11,29,58,0.85);
    color: white;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    padding: 5px 10px;
    border-radius: 6px;
    letter-spacing: 0.5px;
  }

  .real-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11.5px;
    color: var(--gold);
  }

  .real-status::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold);
  }

  @media (max-width: 800px) {
    .real-grid { grid-template-columns: 1fr; }
  }

  /* ===== CTA FINAL ===== */
  .cta-final {
    background: var(--navy);
    color: white;
    text-align: center;
    padding: 130px 60px;
  }

  .cta-final h2 {
    font-size: clamp(28px, 5vw, 48px);
    letter-spacing: -1px;
    margin-bottom: 20px;
  }

  .cta-final p {
    color: rgba(255,255,255,0.65);
    font-size: 17px;
    margin-bottom: 36px;
  }

  /* ===== FOOTER ===== */
  footer {
    padding: 36px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--slate);
    border-top: 1px solid rgba(11,29,58,0.06);
    background: white;
  }

  @media (max-width: 700px) {
    nav { padding: 18px 24px; }
    nav ul { display: none; }
    section { padding: 80px 24px; }
    .hero { padding: 120px 24px 80px; }
    .cta-final { padding: 90px 24px; }
    footer { flex-direction: column; gap: 10px; text-align: center; }
  }

  @media (prefers-reduced-motion: reduce) {
    * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  }