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

  :root {
    --bg: #080c10;
    --bg2: #0d1117;
    --bg3: #111820;
    --border: rgba(255,255,255,0.07);
    --border-h: rgba(255,255,255,0.13);
    --accent: #00d4a0;
    --accent2: #0087ff;
    --text: #e8edf2;
    --muted: #7a8a9e;
    --muted2: #7a8998;
    --badge-auto-color: #4da6ff;
    --badge-tool-color: #b47aff;
    --mono: 'JetBrains Mono', monospace;
    --sans: 'Space Grotesk', sans-serif;
    --nav-bg: rgba(8,12,16,0.85);
  }

  [data-theme="light"] {
    --bg: #f0f2f5;
    --bg2: #e8eaed;
    --bg3: #dfe1e5;
    --border: rgba(0,0,0,0.08);
    --border-h: rgba(0,0,0,0.15);
    --accent: #0b7d61;
    --accent2: #005fcc;
    --text: #1a1a1a;
    --muted: #505f72;
    --muted2: #445060;
    --badge-auto-color: #004aaa;
    --badge-tool-color: #6b21e8;
    --nav-bg: rgba(255,255,255,0.9);
  }

  html { scroll-behavior: smooth; }

  body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.65;
    overflow-x: hidden;
    transition: background-color 0.3s, color 0.3s;
  }

  /* ── NOISE OVERLAY ── */
  body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
    opacity: 0.025;
    pointer-events: none;
    z-index: 0;
  }

  /* ── GRID LINES ── */
  body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
      linear-gradient(var(--border) 1px, transparent 1px),
      linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.4;
    pointer-events: none;
    z-index: 0;
  }

  /* ── GLOW ── */
  .glow-orb {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(80px);
  }
  .glow-orb.a {
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(0,212,160,0.08) 0%, transparent 70%);
    top: -100px; left: -100px;
  }
  .glow-orb.b {
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(0,135,255,0.06) 0%, transparent 70%);
    bottom: 10%; right: -80px;
  }

  /* ── LAYOUT ── */
  .wrap { max-width: 820px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }

  /* ── NAV ── */
  nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: background-color 0.3s, border-color 0.3s;
  }
  nav .inner {
    max-width: 820px; margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between;
    height: 52px;
  }
  nav .logo { font-family: var(--mono); font-size: 13px; color: var(--accent); letter-spacing: 0.05em; }
  nav ul { list-style: none; display: none; }
  nav a { font-size: 13px; color: var(--muted); text-decoration: none; letter-spacing: 0.03em; transition: color 0.2s; }
  nav a:hover { color: var(--text); }
  .theme-toggle {
    background: none;
    border: 1px solid var(--border-h);
    border-radius: 6px;
    color: var(--muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    flex-shrink: 0;
    transition: all 0.2s;
  }
  .theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
  .theme-toggle .icon-sun { display: none; }
  .theme-toggle .icon-moon { display: block; }
  [data-theme="light"] .theme-toggle .icon-sun { display: block; }
  [data-theme="light"] .theme-toggle .icon-moon { display: none; }

  /* ── HERO ── */
  #hero {
    min-height: 100vh;
    display: flex; align-items: center;
    padding-top: 52px;
  }
  .hero-inner { padding-top: 80px; padding-bottom: 80px; }
  .eyebrow {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--accent);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 20px;
    display: flex; align-items: center; gap: 10px;
  }
  .eyebrow::before {
    content: '';
    display: block; width: 32px; height: 1px;
    background: var(--accent);
  }
  h1 {
    font-size: clamp(36px, 7vw, 72px);
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
  }
  h1 .dim { color: var(--muted); font-weight: 300; }
  .hero-sub {
    font-size: 17px;
    color: var(--muted);
    max-width: 520px;
    line-height: 1.7;
    margin-bottom: 40px;
  }
  .hero-sub strong { color: var(--text); font-weight: 500; }
  .cta-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
  .btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 22px;
    border-radius: 6px;
    font-size: 14px; font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    font-family: var(--sans);
    cursor: pointer; border: none;
  }
  .btn-primary {
    background: var(--accent);
    color: #04201a;
  }
  .btn-primary:hover { background: #00edb4; transform: translateY(-1px); }
  .btn-ghost {
    background: transparent;
    border: 1px solid var(--border-h);
    color: var(--text);
  }
  .btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }

  /* ── STACK PILLS ── */
  .stack-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 48px; }
  .pill {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--muted);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 4px 10px;
    letter-spacing: 0.04em;
    transition: all 0.2s;
  }
  .pill:hover { border-color: var(--accent); color: var(--accent); }

  /* ── SECTIONS ── */
  section { padding: 96px 0; border-top: 1px solid var(--border); }
  .section-label {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--accent);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 48px;
    display: flex; align-items: center; gap: 12px;
  }
  .section-label::after {
    content: '';
    flex: 1; max-width: 60px;
    height: 1px; background: var(--border-h);
  }
  h2 {
    font-size: clamp(26px, 4vw, 36px);
    font-weight: 600;
    letter-spacing: -0.025em;
    margin-bottom: 16px;
  }


  /* ── PROJECTS ── */
  .project-grid { display: grid; gap: 16px; }
  .project-card {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 28px;
    transition: all 0.25s;
    position: relative;
    overflow: hidden;
  }
  .project-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    opacity: 0;
    transition: opacity 0.25s;
  }
  .project-card:hover { border-color: var(--border-h); transform: translateY(-2px); }
  .project-card:hover::before { opacity: 1; }
  .project-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
  .project-title { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
  .project-badge {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 4px;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .badge-ai { background: rgba(0,212,160,0.1); color: var(--accent); border: 1px solid rgba(0,212,160,0.2); }
  .badge-auto { background: rgba(0,135,255,0.1); color: var(--badge-auto-color); border: 1px solid rgba(0,135,255,0.2); }
  .badge-tool { background: rgba(180,120,255,0.1); color: var(--badge-tool-color); border: 1px solid rgba(180,120,255,0.2); }
  .project-desc { color: var(--muted); font-size: 15px; line-height: 1.65; margin-bottom: 8px; }
  .project-date { color: var(--muted2); font-size: 12px; margin-bottom: 16px; }
  .tag-row { display: flex; flex-wrap: wrap; gap: 6px; }
  .tag {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--muted2);
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 3px 8px;
  }

  /* ── SERVICES ── */
  .section-intro { color: var(--muted); font-size: 16px; max-width: 560px; margin-bottom: 48px; line-height: 1.7; }
  .services-grid { display: grid; gap: 16px; }
  .service-card {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 28px;
    transition: all 0.25s;
  }
  .service-card:hover { border-color: var(--border-h); transform: translateY(-2px); }
  .service-icon {
    width: 40px; height: 40px;
    background: rgba(0,212,160,0.08);
    border: 1px solid rgba(0,212,160,0.15);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: var(--accent);
    margin-bottom: 16px;
  }
  .service-title { font-size: 16px; font-weight: 600; margin-bottom: 10px; }
  .service-desc { color: var(--muted); font-size: 14px; line-height: 1.65; margin-bottom: 16px; }
  .service-list { list-style: none; display: flex; flex-direction: column; gap: 6px; }
  .service-list li {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--muted2);
    padding-left: 18px;
    position: relative;
  }
  .service-list li::before { content: '→'; position: absolute; left: 0; color: var(--accent); }

  #projects { padding-bottom: 48px; }

  /* ── CONTACT ── */
  .contact-inner { max-width: 820px; }
  .contact-inner p { color: var(--muted); font-size: 16px; margin-bottom: 32px; line-height: 1.7; max-width: 520px; }
  .calendly-inline-widget { border-radius: 10px; overflow: hidden; }
  .contact-alt { margin-top: 40px; max-width: 520px; }
  .contact-link {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--mono);
    font-size: 14px;
    color: var(--text);
    text-decoration: none;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 14px 22px;
    transition: all 0.2s;
    background: var(--bg2);
    cursor: pointer;
    text-align: left;
  }
  .contact-link:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
  .contact-link.is-copied { border-color: var(--accent); color: var(--accent); }
  .contact-link .arrow { transition: transform 0.2s; }
  .contact-link:hover .arrow { transform: translateX(4px); }

  /* ── FOOTER ── */
  footer {
    border-top: 1px solid var(--border);
    padding: 28px 0;
    position: relative; z-index: 1;
  }
  footer .inner {
    max-width: 820px; margin: 0 auto; padding: 0 24px;
    display: flex; justify-content: space-between; align-items: center;
  }
  footer p { font-family: var(--mono); font-size: 12px; color: var(--muted); }
  .footer-gh-link {
    display: inline-flex; align-items: center; gap: 6px;
    font-family: var(--mono); font-size: 12px;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s;
  }
  .footer-gh-link:hover { color: var(--accent); }
  .footer-right { display: flex; align-items: center; gap: 16px; }

  /* ── ANIMATIONS ── */
  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
  }
  .fade-up { animation: fadeUp 0.6s ease both; }
  .delay-1 { animation-delay: 0.1s; }
  .delay-2 { animation-delay: 0.2s; }
  .delay-3 { animation-delay: 0.3s; }
  .delay-4 { animation-delay: 0.4s; }

  /* ── RAPPORTS LISTE ── */
  .report-list { display: flex; flex-direction: column; gap: 16px; }
  .report-row {
    display: flex; gap: 24px; align-items: flex-start;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 24px;
    transition: all 0.25s;
  }
  .report-row:hover { border-color: var(--border-h); transform: translateX(4px); }
  .report-num {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--muted2);
    letter-spacing: 0.1em;
    padding-top: 3px;
    min-width: 24px;
  }
  .report-body { flex: 1; }
  .report-row-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 10px; }
  .report-row-title { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
  .report-row-meta { font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: 0.04em; }
  .report-row-desc { font-size: 14px; color: var(--muted); line-height: 1.65; margin-bottom: 14px; }
  .btn-dl {
    display: inline-flex; align-items: center; gap: 6px;
    font-family: var(--mono); font-size: 11px;
    color: var(--accent);
    border: 1px solid rgba(0,212,160,0.25);
    border-radius: 5px;
    padding: 6px 12px;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.2s;
    background: rgba(0,212,160,0.05);
  }
  .btn-dl:hover { background: rgba(0,212,160,0.12); border-color: var(--accent); transform: translateY(-1px); }

  /* ── PROJECT CARD ENRICHED ── */
  .project-img {
    width: 100%; border-radius: 7px;
    border: 1px solid var(--border);
    margin-bottom: 20px;
    display: block;
    overflow: hidden;
    background: var(--bg3);
  }
  .project-img img { width: 100%; display: block; border-radius: 6px; opacity: 0.9; transition: opacity 0.2s; }
  .project-img img:hover { opacity: 1; }
  .project-links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
  .btn-dl-json {
    display: inline-flex; align-items: center; gap: 6px;
    font-family: var(--mono); font-size: 11px;
    color: var(--badge-auto-color);
    border: 1px solid rgba(0,135,255,0.25);
    border-radius: 5px;
    padding: 6px 12px;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.2s;
    background: rgba(0,135,255,0.05);
  }
  .btn-dl-json:hover { background: rgba(0,135,255,0.12); border-color: var(--badge-auto-color); transform: translateY(-1px); }
  .btn-gh {
    display: inline-flex; align-items: center; gap: 6px;
    font-family: var(--mono); font-size: 11px;
    color: var(--muted);
    border: 1px solid var(--border-h);
    border-radius: 5px;
    padding: 6px 12px;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.2s;
    background: transparent;
  }
  .btn-gh:hover { background: rgba(255,255,255,0.05); border-color: var(--text); color: var(--text); transform: translateY(-1px); }
  .project-title a { color: inherit; text-decoration: none; transition: color .2s; }
  .project-title a:hover { color: var(--accent); }
  .project-error { color: var(--muted); font-size: 14px; margin-top: 24px; }

  /* ── RESPONSIVE ── */
  @media (min-width: 640px) {
    nav ul { display: flex; gap: 28px; }
    h1 { font-size: clamp(40px, 7vw, 72px); }
    .services-grid { grid-template-columns: repeat(3, 1fr); }
  }

  /* ── ACCESSIBILITÉ ── */
  .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;
  }

  .skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    z-index: 200;
    background: var(--accent);
    color: #04201a;
    font-family: var(--sans);
    font-size: 14px;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 0 0 6px 6px;
    text-decoration: none;
    transition: top 0.2s;
  }
  .skip-link:focus { top: 0; }

  a:focus-visible,
  button:focus-visible,
  [data-action]:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 3px;
  }

  nav .logo { text-decoration: none; }
  nav .logo:hover { color: var(--accent); }

  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
    }
  }
