:root {
      --bg:     #0d0d0d;
      --bg2:    #141414;
      --bg3:    #1c1c1c;
      --line:   rgba(255,255,255,0.07);
      --text:   #e8e6e0;
      --muted:  #7a7870;
      --accent: #c8a97e;
      --accent2:#e8d5b7;
      --serif:  'DM Serif Display', Georgia, serif;
      --sans:   'DM Sans', system-ui, sans-serif;
      --r:      10px;
      --ease:   cubic-bezier(0.16, 1, 0.3, 1);
    }

    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    html { scroll-behavior: smooth; }
    body {
      background: var(--bg);
      color: var(--text);
      font-family: var(--sans);
      font-weight: 300;
      line-height: 1.7;
      overflow-x: hidden;
      cursor: none;
    }
    a { color: inherit; text-decoration: none; }
    img { display: block; max-width: 100%; }

    /* CURSOR */
    #cursor {
      position: fixed; top: 0; left: 0;
      width: 10px; height: 10px;
      background: var(--accent);
      border-radius: 50%;
      pointer-events: none;
      z-index: 9999;
      transform: translate(-50%,-50%);
      transition: transform 0.15s var(--ease);
    }
    #cursor-ring {
      position: fixed; top: 0; left: 0;
      width: 36px; height: 36px;
      border: 1px solid rgba(200,169,126,0.45);
      border-radius: 50%;
      pointer-events: none;
      z-index: 9998;
      transform: translate(-50%,-50%);
      transition: width 0.3s, height 0.3s, border-color 0.3s;
    }

    /* NOISE */
    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.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
      pointer-events: none; z-index: 0; opacity: 0.3;
    }

    /* NAV */
    nav {
      position: fixed; top: 0; left: 0; right: 0; z-index: 100;
      display: flex; align-items: center; justify-content: space-between;
      padding: 22px 48px;
      border-bottom: 1px solid transparent;
      transition: border-color 0.4s, background 0.4s, padding 0.4s;
    }
    nav.scrolled {
      background: rgba(13,13,13,0.9);
      backdrop-filter: blur(16px);
      border-color: var(--line);
      padding: 14px 48px;
    }
    .nav-logo { font-family: var(--serif); font-size: 1.25rem; color: var(--accent); }
    .nav-links { display: flex; gap: 32px; align-items: center; }
    .nav-links a {
      font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase;
      color: var(--muted); transition: color 0.25s; position: relative;
    }
    .nav-links a::after {
      content: ''; position: absolute; bottom: -3px; left: 0;
      width: 0; height: 1px; background: var(--accent);
      transition: width 0.3s var(--ease);
    }
    .nav-links a:hover { color: var(--accent); }
    .nav-links a:hover::after { width: 100%; }

    .lang-btn {
      background: none; border: 1px solid var(--line);
      color: var(--muted); font-family: var(--sans); font-size: 0.72rem;
      letter-spacing: 0.1em; text-transform: uppercase;
      padding: 5px 13px; border-radius: 20px; cursor: none;
      transition: border-color 0.25s, color 0.25s;
    }
    .lang-btn:hover { border-color: var(--accent); color: var(--accent); }

    .hamburger {
      display: none; flex-direction: column; gap: 5px;
      cursor: none; background: none; border: none; padding: 4px;
    }
    .hamburger span {
      display: block; width: 24px; height: 1.5px; background: var(--text);
      transition: transform 0.35s var(--ease), opacity 0.3s; transform-origin: center;
    }
    .hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
    .hamburger.open span:nth-child(2) { opacity: 0; }
    .hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

    .mobile-menu {
      display: none; position: fixed; inset: 0;
      background: rgba(13,13,13,0.97); backdrop-filter: blur(20px); z-index: 99;
      flex-direction: column; justify-content: center; align-items: center; gap: 28px;
      opacity: 0; pointer-events: none; transition: opacity 0.4s var(--ease);
    }
    .mobile-menu.open { opacity: 1; pointer-events: all; }
    .mobile-menu a { font-family: var(--serif); font-size: 2rem; color: var(--text); transition: color 0.2s; }
    .mobile-menu a:hover { color: var(--accent); }

    @media (max-width: 768px) {
      nav { padding: 18px 24px; }
      nav.scrolled { padding: 14px 24px; }
      .nav-links { display: none; }
      .hamburger { display: flex; }
      .mobile-menu { display: flex; }
    }

    /* HERO */
    #hero {
      min-height: 100vh; display: flex; flex-direction: column;
      justify-content: flex-end; padding: 0 48px 80px;
      position: relative; overflow: hidden;
    }
    .hero-blob {
      position: absolute; top: -15%; right: -5%;
      width: 700px; height: 700px;
      background: radial-gradient(circle, rgba(200,169,126,0.07) 0%, transparent 70%);
      border-radius: 50%; pointer-events: none;
      animation: blob 14s ease-in-out infinite alternate;
    }
    @keyframes blob {
      from { transform: translate(0,0) scale(1); }
      to   { transform: translate(-80px, 60px) scale(1.2); }
    }

    .hero-eyebrow {
      font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase;
      color: var(--accent); margin-bottom: 20px;
      opacity: 0; animation: fade-up 0.8s var(--ease) 0.3s forwards;
    }
    .hero-name {
      font-family: var(--serif); font-size: clamp(3.8rem, 10vw, 9rem);
      line-height: 0.95; letter-spacing: -0.02em; color: var(--text);
      opacity: 0; animation: fade-up 0.9s var(--ease) 0.5s forwards;
    }
    .hero-name em { font-style: italic; color: var(--accent); }
    .hero-sub {
      margin-top: 28px; font-size: 0.97rem; color: var(--muted);
      max-width: 460px; line-height: 1.85;
      opacity: 0; animation: fade-up 0.9s var(--ease) 0.7s forwards;
    }
    .hero-sub strong { color: var(--text); font-weight: 400; }
    .hero-actions {
      margin-top: 40px; display: flex; gap: 14px; flex-wrap: wrap;
      opacity: 0; animation: fade-up 0.9s var(--ease) 0.9s forwards;
    }

    .btn-primary {
      display: inline-flex; align-items: center; gap: 8px;
      padding: 13px 28px; background: var(--accent); color: #0d0d0d;
      font-family: var(--sans); font-size: 0.8rem; font-weight: 500;
      letter-spacing: 0.08em; text-transform: uppercase;
      border-radius: var(--r); border: none; cursor: none;
      transition: background 0.3s, transform 0.3s var(--ease), box-shadow 0.3s;
    }
    .btn-primary:hover { background: var(--accent2); transform: translateY(-2px); box-shadow: 0 12px 32px rgba(200,169,126,0.25); }

    .btn-ghost {
      display: inline-flex; align-items: center; gap: 8px;
      padding: 12px 28px; border: 1px solid var(--line); color: var(--muted);
      font-family: var(--sans); font-size: 0.8rem; letter-spacing: 0.08em;
      text-transform: uppercase; border-radius: var(--r); cursor: none;
      transition: border-color 0.3s, color 0.3s, transform 0.3s var(--ease);
    }
    .btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

    .hero-stats {
      position: absolute; bottom: 80px; right: 48px;
      display: flex; gap: 40px;
      opacity: 0; animation: fade-left 0.9s var(--ease) 1.1s forwards;
    }
    .stat-num { font-family: var(--serif); font-size: 2.5rem; color: var(--accent); line-height: 1; }
    .stat-label { font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }

    .scroll-hint {
      position: absolute; bottom: 32px; left: 48px;
      display: flex; align-items: center; gap: 14px;
      color: var(--muted); font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase;
      opacity: 0; animation: fade-up 0.9s var(--ease) 1.3s forwards;
    }
    .scroll-line { width: 48px; height: 1px; background: var(--line); position: relative; overflow: hidden; }
    .scroll-line::after {
      content: ''; position: absolute; left: -100%; top: 0;
      width: 100%; height: 100%; background: var(--accent);
      animation: slide 2.4s ease-in-out infinite;
    }
    @keyframes slide { 0%{left:-100%} 50%{left:0} 100%{left:100%} }

    @media (max-width: 768px) {
      #hero { padding: 0 24px 100px; }
      .hero-stats { right: 24px; bottom: 100px; gap: 28px; }
      .scroll-hint { left: 24px; }
    }
    @media (max-width: 480px) {
      .hero-stats { position: static; margin-top: 36px; animation: fade-up 0.9s var(--ease) 1.1s forwards; }
      .scroll-hint { display: none; }
    }

    /* SECTIONS */
    section { padding: 100px 48px; position: relative; }
    @media (max-width: 768px) { section { padding: 72px 24px; } }

    .section-label {
      font-size: 0.68rem; letter-spacing: 0.24em; text-transform: uppercase;
      color: var(--accent); margin-bottom: 16px;
      display: flex; align-items: center; gap: 12px;
    }
    .section-label::before { content: ''; display: block; width: 30px; height: 1px; background: var(--accent); }
    .section-title {
      font-family: var(--serif); font-size: clamp(2rem, 4vw, 3.4rem);
      line-height: 1.1; color: var(--text); margin-bottom: 56px; max-width: 580px;
    }

    /* REVEAL */
    .reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.85s var(--ease), transform 0.85s var(--ease); }
    .reveal.visible { opacity: 1; transform: translateY(0); }

    /* ABOUT */
    #about { border-top: 1px solid var(--line); }
    .about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
    @media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; gap: 40px; } }

    .about-photo-wrap { position: relative; }
    .about-photo-wrap img {
      width: 100%; max-width: 400px; aspect-ratio: 4/5; object-fit: cover;
      border-radius: var(--r); filter: grayscale(20%); transition: filter 0.5s;
    }
    .about-photo-wrap:hover img { filter: grayscale(0%); }
    .about-photo-wrap::before {
      content: ''; position: absolute; top: 18px; left: 18px; right: -18px; bottom: -18px;
      border: 1px solid rgba(200,169,126,0.25); border-radius: var(--r); z-index: -1;
      transition: transform 0.4s var(--ease);
    }
    .about-photo-wrap:hover::before { transform: translate(5px,5px); }

    .about-text p { color: var(--muted); margin-bottom: 18px; line-height: 1.9; font-size: 0.95rem; }
    .about-text p strong { color: var(--text); font-weight: 400; }

    .skills-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 28px; }
    .skill-tag {
      padding: 8px 14px; border: 1px solid var(--line); border-radius: 6px;
      font-size: 0.76rem; color: var(--muted); letter-spacing: 0.05em;
      transition: border-color 0.25s, color 0.25s, background 0.25s;
    }
    .skill-tag:hover { border-color: var(--accent); color: var(--accent); background: rgba(200,169,126,0.05); }

    /* PROJECTS */
    #projects { border-top: 1px solid var(--line); }

    .project-item {
      display: grid; grid-template-columns: 40px 1fr auto;
      align-items: center; gap: 28px;
      padding: 28px 0; border-bottom: 1px solid var(--line);
      cursor: none; position: relative; overflow: hidden;
      transition: padding 0.4s var(--ease);
    }
    .project-item::before {
      content: ''; position: absolute; inset: 0;
      background: var(--bg3); transform: scaleX(0); transform-origin: left;
      transition: transform 0.45s var(--ease); z-index: -1; border-radius: var(--r);
    }
    .project-item:hover::before { transform: scaleX(1); }
    .project-item:hover { padding: 28px 20px; }

    .project-num { font-family: var(--serif); font-size: 0.85rem; color: var(--muted); font-style: italic; }
    .project-name { font-family: var(--serif); font-size: 1.5rem; color: var(--text); transition: color 0.3s; }
    .project-item:hover .project-name { color: var(--accent); }
    .project-desc { font-size: 0.8rem; color: var(--muted); margin-top: 5px; }
    .project-tags { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
    .project-tag {
      font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase;
      color: var(--muted); border: 1px solid var(--line); padding: 3px 10px; border-radius: 20px;
    }
    .project-arrow { font-size: 1.3rem; color: var(--muted); transition: transform 0.4s var(--ease), color 0.3s; }
    .project-item:hover .project-arrow { transform: translate(4px,-4px); color: var(--accent); }

    @media (max-width: 580px) {
      .project-item { grid-template-columns: 36px 1fr; gap: 14px; }
      .project-arrow { display: none; }
    }

    /* SERVICES */
    #services { border-top: 1px solid var(--line); }
    .services-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
    @media (max-width: 900px) { .services-grid { grid-template-columns: 1fr 1fr; } }
    @media (max-width: 560px) { .services-grid { grid-template-columns: 1fr; } }

    .service-card {
      background: var(--bg2); border: 1px solid var(--line); border-radius: var(--r);
      padding: 32px 26px; cursor: none;
      transition: border-color 0.35s, transform 0.35s var(--ease), background 0.35s;
    }
    .service-card:hover { border-color: rgba(200,169,126,0.35); background: var(--bg3); transform: translateY(-6px); }
    .service-icon { font-size: 1.5rem; margin-bottom: 20px; display: block; line-height: 1; }
    .service-name { font-family: var(--serif); font-size: 1.15rem; color: var(--text); margin-bottom: 12px; }
    .service-desc { font-size: 0.83rem; color: var(--muted); line-height: 1.8; }

    /* CONTACT */
    #contact { border-top: 1px solid var(--line); text-align: center; }
    #contact .section-label { justify-content: center; }
    #contact .section-label::before { display: none; }

    .contact-headline {
      font-family: var(--serif); font-size: clamp(2.8rem, 7vw, 5.5rem);
      color: var(--text); line-height: 1.05; margin-bottom: 24px;
    }
    .contact-headline em { color: var(--accent); font-style: italic; }
    .contact-sub { color: var(--muted); font-size: 0.97rem; max-width: 440px; margin: 0 auto 40px; line-height: 1.8; }

    .contact-links { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
    .social-link {
      display: inline-flex; align-items: center; gap: 8px;
      padding: 10px 22px; border: 1px solid var(--line); border-radius: 30px;
      font-size: 0.78rem; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase;
      cursor: none; transition: border-color 0.3s, color 0.3s, transform 0.3s var(--ease);
    }
    .social-link:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-3px); }

    /* FOOTER */
    footer {
      padding: 28px 48px; border-top: 1px solid var(--line);
      display: flex; justify-content: space-between; align-items: center;
      font-size: 0.72rem; color: var(--muted); letter-spacing: 0.07em;
    }
    .footer-logo { font-family: var(--serif); color: var(--accent); font-size: 1rem; }
    @media (max-width: 600px) { footer { flex-direction: column; gap: 10px; padding: 24px; text-align: center; } }

    /* KEYFRAMES */
    @keyframes fade-up {
      from { opacity: 0; transform: translateY(28px); }
      to   { opacity: 1; transform: translateY(0); }
    }
    @keyframes fade-left {
      from { opacity: 0; transform: translateX(28px); }
      to   { opacity: 1; transform: translateX(0); }
    }

    /* LANG SYSTEM */
    [data-fr], [data-en] { display: none; }
    [data-lang="fr"] [data-fr] { display: inline; }
    [data-lang="en"] [data-en] { display: inline; }
    .block-fr, .block-en { display: none; }
    [data-lang="fr"] .block-fr { display: block; }
    [data-lang="en"] .block-en { display: block; }