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

    :root {
      --bg: #0b0c0f;
      --surface: #111318;
      --border: #1f2330;
      --accent: #c8f562;
      --accent2: #5b8cff;
      --muted: #4a5068;
      --text: #d4d8e8;
      --text-dim: #6b7291;
    }

    html { scroll-behavior: smooth; }

    body {
      background: var(--bg);
      color: var(--text);
      font-family: 'DM Mono', monospace;
      min-height: 100vh;
      overflow-x: hidden;
      cursor: none;
    }

    .cursor {
      position: fixed;
      width: 10px; height: 10px;
      background: var(--accent);
      border-radius: 50%;
      pointer-events: none;
      z-index: 9999;
      transition: transform 0.1s ease;
      mix-blend-mode: difference;
    }
    .cursor-ring {
      position: fixed;
      width: 36px; height: 36px;
      border: 1px solid var(--accent);
      border-radius: 50%;
      pointer-events: none;
      z-index: 9998;
      transition: all 0.18s ease;
      opacity: 0.5;
    }

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

    .container { max-width: 900px; margin: 0 auto; padding: 0 2rem; }

    /* ── Header ── */
    header { padding: 2rem 0 0; animation: fadeDown 0.8s ease both; }
    .header-inner {
      display: flex;
      justify-content: space-between;
      align-items: center;
      border-bottom: 1px solid var(--border);
      padding-bottom: 1.5rem;
    }
    .logo {
      font-family: 'Fraunces', serif;
      font-size: 1.1rem;
      font-weight: 700;
      letter-spacing: -0.02em;
    }
    .logo span { color: var(--accent); }
    .status-pill {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      font-size: 0.7rem;
      color: var(--accent);
      border: 1px solid var(--accent);
      padding: 0.3rem 0.75rem;
      border-radius: 100px;
      letter-spacing: 0.1em;
      text-transform: uppercase;
    }
    .status-dot {
      width: 6px; height: 6px;
      background: var(--accent);
      border-radius: 50%;
      animation: pulse 1.5s ease infinite;
    }

    /* ── Hero ── */
    .hero { padding: 6rem 0 4rem; animation: fadeUp 0.9s 0.1s ease both; }
    .hero-tag {
      font-size: 0.7rem;
      color: var(--text-dim);
      letter-spacing: 0.12em;
      text-transform: uppercase;
      margin-bottom: 1.5rem;
    }
    .hero-tag span { color: var(--accent2); }
    .hero-title {
      font-family: 'Fraunces', serif;
      font-size: clamp(3rem, 8vw, 5.5rem);
      font-weight: 700;
      line-height: 1.0;
      letter-spacing: -0.04em;
      margin-bottom: 2rem;
      color: #eef0f8;
    }
    .hero-title em { font-style: italic; font-weight: 300; color: var(--accent); }
    .hero-desc {
      max-width: 480px;
      font-size: 0.85rem;
      line-height: 1.8;
      color: var(--text-dim);
      margin-bottom: 3rem;
    }

    /* ── Terminal ── */
    .terminal {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 8px;
      overflow: hidden;
      margin-bottom: 3rem;
    }
    .terminal-bar {
      background: #161820;
      padding: 0.6rem 1rem;
      display: flex;
      align-items: center;
      gap: 0.4rem;
      border-bottom: 1px solid var(--border);
    }
    .terminal-dot { width: 10px; height: 10px; border-radius: 50%; }
    .terminal-dot:nth-child(1) { background: #ff5f57; }
    .terminal-dot:nth-child(2) { background: #febc2e; }
    .terminal-dot:nth-child(3) { background: #28c840; }
    .terminal-title { font-size: 0.65rem; color: var(--muted); margin: 0 auto; }
    .terminal-body { padding: 1.25rem 1.5rem; font-size: 0.78rem; line-height: 2; }
    .terminal-body .line { display: flex; gap: 0.75rem; }
    .prompt { color: var(--accent); }
    .output { color: var(--text-dim); padding-left: 1.25rem; }
    .highlight { color: var(--accent2); }
    .blink { animation: blink 1s step-end infinite; }

    .type-line { overflow: hidden; white-space: nowrap; animation: typeIn 0.6s steps(30) forwards; opacity: 0; }
    .type-line:nth-child(1) { animation-delay: 0.5s;  animation-fill-mode: both; }
    .type-line:nth-child(2) { animation-delay: 1.1s;  animation-fill-mode: both; }
    .type-line:nth-child(3) { animation-delay: 1.7s;  animation-fill-mode: both; }
    .type-line:nth-child(4) { animation-delay: 2.3s;  animation-fill-mode: both; }

    /* ── About cards ── */
    .about {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 1.5rem;
      margin-bottom: 4rem;
      animation: fadeUp 1s 0.3s ease both;
    }
    @media (max-width: 600px) { .about { grid-template-columns: 1fr; } }

    .card {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 8px;
      padding: 1.75rem;
      transition: border-color 0.2s ease, transform 0.2s ease;
    }
    .card:hover { border-color: var(--accent); transform: translateY(-2px); }
    .card-label { font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); margin-bottom: 1rem; }
    .card-title { font-family: 'Fraunces', serif; font-size: 1.5rem; font-weight: 700; color: #eef0f8; margin-bottom: 0.5rem; line-height: 1.2; }
    .card-text { font-size: 0.78rem; color: var(--text-dim); line-height: 1.7; }
    .card-wide { grid-column: 1 / -1; }

    .tag-list { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1rem; }
    .tag { font-size: 0.65rem; padding: 0.2rem 0.6rem; border: 1px solid var(--border); border-radius: 4px; color: var(--text-dim); letter-spacing: 0.05em; }
    .tag.active { border-color: var(--accent); color: var(--accent); }

    .linkedin-link {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      margin-top: 1rem;
      font-size: 0.72rem;
      color: var(--accent2);
      text-decoration: none;
      border-bottom: 1px solid transparent;
      transition: border-color 0.2s;
    }
    .linkedin-link:hover { border-color: var(--accent2); }
    .linkedin-link svg { width: 14px; height: 14px; }

    /* ── Projects ── */
    .projects-section {
      margin-bottom: 5rem;
      animation: fadeUp 1s 0.5s ease both;
    }
    .section-header {
      display: flex;
      align-items: center;
      gap: 1rem;
      margin-bottom: 1.5rem;
    }
    .section-label { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); white-space: nowrap; }
    .section-count { font-size: 0.65rem; color: var(--accent); letter-spacing: 0.08em; white-space: nowrap; }
    .section-line { flex: 1; height: 1px; background: var(--border); }

    /*
      Grille adaptative :
      - 1 projet  → 1 colonne, carte large
      - 2 projets → 2 colonnes
      - 3 projets → 2 col, 3e pleine largeur
      - 4 projets → 2×2
      On utilise auto-fill avec min 260px, la grille s'adapte naturellement.
    */
    .projects-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
      gap: 1rem;
    }

    /* Quand il n'y a qu'1 seul enfant, le forcer pleine largeur */
    .projects-grid > .project-card:only-child {
      grid-column: 1 / -1;
      max-width: 520px;
    }

    .project-card {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 8px;
      padding: 1.75rem;
      text-decoration: none;
      color: inherit;
      display: flex;
      flex-direction: column;
      gap: 0;
      transition: all 0.2s ease;
      position: relative;
      overflow: hidden;
    }
    .project-card::before {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(135deg, transparent 60%, rgba(200,245,98,0.04));
      pointer-events: none;
    }
    .project-card:hover {
      border-color: var(--accent);
      transform: translateY(-3px);
      box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    }
    .project-card:hover .project-arrow { transform: translate(3px, -3px); }

    .project-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1rem; }
    .project-num { font-size: 0.6rem; color: var(--muted); letter-spacing: 0.1em; }
    .project-badge {
      font-size: 0.58rem;
      padding: 0.15rem 0.5rem;
      border-radius: 100px;
      letter-spacing: 0.08em;
      text-transform: uppercase;
    }
    .badge-live   { border: 1px solid var(--accent);  color: var(--accent); }
    .badge-wip    { border: 1px solid var(--accent2); color: var(--accent2); }
    .badge-paused { border: 1px solid var(--muted);   color: var(--muted); }

    .project-name { font-family: 'Fraunces', serif; font-size: 1.3rem; color: #eef0f8; margin-bottom: 0.5rem; line-height: 1.2; }
    .project-desc { font-size: 0.75rem; color: var(--text-dim); line-height: 1.7; flex: 1; margin-bottom: 1.25rem; }
    .project-footer { display: flex; justify-content: space-between; align-items: center; }
    .project-tech { font-size: 0.62rem; color: var(--accent2); }
    .project-arrow { color: var(--accent); font-size: 0.9rem; transition: transform 0.2s ease; }

    /* ── Footer ── */
    footer {
      border-top: 1px solid var(--border);
      padding: 2rem 0;
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: 0.65rem;
      color: var(--muted);
      animation: fadeUp 1s 0.7s ease both;
    }
    @media (max-width: 500px) { footer { flex-direction: column; gap: 0.5rem; text-align: center; } }

    /* ── Animations ── */
    @keyframes fadeUp   { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
    @keyframes fadeDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
    @keyframes pulse    { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
    @keyframes blink    { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
    @keyframes typeIn   { from { width: 0; } to { width: 100%; } }