:root {
    --accent:        #C4B5FD;   /* lavande pastel */
    --accent-mid:    #A78BFA;   /* violet doux */
    --accent-bright: #9B72F5;   /* violet pastel moyen */
    --accent-purple: #8d5cf8;
    --accent-light:  #EDE9FE;   /* lavande très clair */
    --gray:          #8B8D98;
    --gray-light:    #b4b2a9;
    --bg:            #111111;
    --bg2:           #1a1a1a;
    --bg3:           #222222;
    --border:        rgba(196,181,253,0.12);
    --border-hover:  rgba(196,181,253,0.28);
    --text:          #f0ece8;
    --text-muted:    #9d8ec4;
    --text-dim:      #4a4060;
    --radius:        6px;
    --radius-lg:     12px;
    --nav-bg:        rgba(17,17,17,.88);
    --tag-bg:        rgba(196,181,253,0.1);
    --tag-border:    rgba(196,181,253,0.22);
    --tag-text:      #C4B5FD;
    --skill-hover:   #1a1a1a;
  }

  html.light {
    --bg:            #f8f7ff;
    --bg2:           #ffffff;
    --bg3:           #f0ecff;
    --border:        rgba(155,114,245,0.15);
    --border-hover:  rgba(109,40,217,0.28);
    --text:          #1a1020;   /* quasi-noir violacé — titres */
    --text-muted:    #3d2a55;   /* violet sombre — paragraphes */
    --text-dim:      #6b4fa0;   /* violet moyen — labels */
    --accent-bright: #6d28d9;   /* violet vif accessible */
    --accent-mid:    #7c3aed;
    --nav-bg:        rgba(248,247,255,.95);
    --tag-bg:        rgba(109,40,217,0.08);
    --tag-border:    rgba(109,40,217,0.2);
    --tag-text:      #5b21b6;
    --skill-hover:   #ede9fe;
  }

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

  html { font-size: 100%; scroll-behavior: smooth; }

  body {
    font-family: 'Commissioner', sans-serif;
    font-weight: 400;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
  }

  /* ─── NOISE TEXTURE ─── */
  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: 0;
    opacity: .35;
  }

  /* ─── SCROLL PROGRESS ─── */
  #progress-bar {
    position: fixed;
    top: 0; left: 0;
    height: 2px;
    width: 0%;
    background: linear-gradient(90deg, var(--accent-mid), var(--accent-bright));
    z-index: 1000;
    transition: width .1s;
  }

  /* ─── NAV ─── */
  nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4rem;
    height: 64px;
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    z-index: 100;
  }

  .nav-right {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-left: auto;
  }

  /* Burger — caché par défaut sur desktop */
  .nav-burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: transparent;
    border: 1px solid var(--border-hover);
    border-radius: var(--radius);
    cursor: pointer;
    padding: 7px 8px;
    flex-shrink: 0;
    position: fixed;
    top: 14px;
    right: 1.5rem;
    z-index: 101;
  }

  .nav-burger span {
    display: block;
    height: 2px;
    background: var(--text-muted);
    border-radius: 2px;
    transition: transform .3s, opacity .3s, width .3s;
    transform-origin: center;
  }

  .nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-burger.open span:nth-child(2) { opacity: 0; width: 0; }
  .nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* Menu mobile overlay — caché par défaut */
  .nav-mobile {
    display: none;
    position: fixed;
    top: 64px; left: 0; right: 0;
    height: 100%;
    background: var(--nav-bg);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 2rem 2rem;
    z-index: 99;
    flex-direction: column;
    gap: 0;
  }

  .nav-mobile.open { display: flex; }

  .nav-mobile-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
  }

  .nav-mobile-links li a {
    display: block;
    font-family: 'Commissioner', sans-serif;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    text-align: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
    transition: color .2s, padding-left .2s;
  }

  .nav-mobile-links li:last-child a { border-bottom: none; border-left:none; border-right:none }
  .nav-mobile-links li a:hover { color: var(--text); padding-left: .5rem; }
  .nav-mobile-links .nav-cta { color: var(--accent-bright) !important; }

  .nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
  }

  .nav-logo-text {
    font-family: 'Commissioner', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: .12em;
    color: var(--text);
  }

  .nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
  }

  .nav-links a {
    font-family: 'Commissioner', sans-serif;
    font-weight: 400;
    font-size: .875rem;
    color: var(--text-muted);
    text-decoration: none;
    letter-spacing: .04em;
    transition: color .2s;
  }

  .nav-links a:hover { color: var(--text); }

  .nav-cta {
    font-family: 'Commissioner', sans-serif;
    font-size: .875rem;
    font-weight: 500;
    color: var(--accent-bright) !important;
    border: 1px solid var(--border-hover);
    padding: .375rem 1rem;
    border-radius: var(--radius);
    transition: background .2s, color .2s !important;
  }

  .nav-cta:hover {
    background: rgba(167,139,250,.1) !important;
    color: var(--accent-light) !important;
  }

  /* ─── HERO ─── */
  #hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 8rem 4rem 4rem;
    position: relative;
    overflow: hidden;
    gap: 2rem;
  }

  .hero-content {
    position: relative;
    z-index: 2;
  }

  /* Floating color blocks — Realtime Colors style */
  .hero-blocks {
    position: relative;
    height: 520px;
    z-index: 1;
  }

  /* ── Floating code symbols ── */
  .code-symbol {
    position: absolute;
    font-family: 'Courier New', monospace;
    font-weight: 700;
    line-height: 1;
    pointer-events: none;
    user-select: none;
    white-space: nowrap;
  }

  .cs1  { top: 18px;  right: 60px;  font-size: 2.4rem; color: var(--accent);        opacity: .9;  animation: floatA 6s ease-in-out infinite; }
  .cs2  { top: 80px;  right: 200px; font-size: 3.2rem; color: var(--accent-light);  opacity: .6;  animation: floatB 7s ease-in-out infinite; }
  .cs3  { top: 5px;   right: 220px; font-size: 1.6rem; color: var(--accent-bright); opacity: .65; animation: floatC 5s ease-in-out infinite; }
  .cs4  { top: 155px; right: 30px;  font-size: 2rem;   color: var(--accent);        opacity: .55; animation: floatA 8s ease-in-out 1s infinite; }
  .cs5  { top: 200px; right: 180px; font-size: 2.8rem; color: var(--accent-mid);    opacity: .75; animation: floatB 6.5s ease-in-out .5s infinite; }
  .cs6  { top: 260px; right: 60px;  font-size: 1.5rem; color: var(--accent-bright); opacity: .5;  animation: floatC 9s ease-in-out 2s infinite; }
  .cs7  { top: 300px; right: 220px; font-size: 2rem;   color: var(--accent-light);  opacity: .5;  animation: floatA 7s ease-in-out 1.5s infinite; }
  .cs8  { top: 360px; right: 100px; font-size: 1.8rem; color: var(--accent);        opacity: .5;  animation: floatB 8s ease-in-out 3s infinite; }
  .cs9  { top: 100px; right: 310px; font-size: 1.4rem; color: var(--accent-mid);    opacity: .45; animation: floatC 6s ease-in-out .8s infinite; }
  .cs10 { top: 420px; right: 160px; font-size: 2.2rem; color: var(--accent-bright); opacity: .55; animation: floatA 5.5s ease-in-out 2.5s infinite; }

  .hero-glow {
    position: absolute;
    top: -120px; left: -80px;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(155,114,245,.18) 0%, transparent 70%);
    pointer-events: none;
  }

  .hero-glow-2 {
    position: absolute;
    bottom: 0; right: -100px;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(196,181,253,.08) 0%, transparent 70%);
    pointer-events: none;
  }

  @keyframes floatA {
    0%,100% { transform: translateY(0px) rotate(0deg); }
    50%      { transform: translateY(-14px) rotate(2deg); }
  }
  @keyframes floatB {
    0%,100% { transform: translateY(0px) rotate(0deg); }
    50%      { transform: translateY(-9px) rotate(-1.5deg); }
  }
  @keyframes floatC {
    0%,100% { transform: translateY(0px) rotate(0deg); }
    50%      { transform: translateY(-18px) rotate(1deg); }
  }

  .hero-glow-2 {
    position: absolute;
    bottom: 0; right: -100px;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(208,36,238,.1) 0%, transparent 70%);
    pointer-events: none;
  }

  .hero-eyebrow {
    display: block;
    font-size: .75rem;
    font-weight: 500;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--accent-bright);
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeUp .6s .2s forwards;
  }

  h1 {
    font-family: 'Commissioner', sans-serif;
    font-weight: 700;
    font-size: clamp(2.8rem, 5.5vw, 4.21rem);
    line-height: 1.06;
    letter-spacing: -.025em;
    color: var(--text);
    max-width: 580px;
    opacity: 0;
    animation: fadeUp .6s .35s forwards;
  }

  h1 em {
    font-style: italic;
    color: var(--accent-bright);
  }

  .hero-sub {
    margin-top: 1.75rem;
    max-width: 460px;
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
    opacity: 0;
    animation: fadeUp .6s .5s forwards;
  }

  .hero-actions {
    margin-top: 2.5rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeUp .6s .65s forwards;
  }

  .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .75rem 1.75rem;
    background: var(--accent-bright);
    color: #fff;
    font-family: 'Commissioner', sans-serif;
    font-weight: 600;
    font-size: .9rem;
    letter-spacing: .04em;
    border-radius: var(--radius);
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background .2s, transform .15s;
  }

  .btn-primary:hover { background: var(--accent-purple); transform: translateY(-1px); }

  .btn-outline {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .75rem 1.75rem;
    background: transparent;
    color: var(--text-muted);
    font-family: 'Commissioner', sans-serif;
    font-weight: 500;
    font-size: .9rem;
    border: 1px solid var(--border-hover);
    border-radius: var(--radius);
    text-decoration: none;
    cursor: pointer;
    transition: border-color .2s, color .2s;
  }

  .btn-outline:hover { border-color: var(--gray); color: var(--text); }

  .hero-scroll {
    position: absolute;
    bottom: 2.5rem; left: 4rem;
    display: flex;
    align-items: center;
    gap: .75rem;
    font-size: .75rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--text-dim);
    opacity: 0;
    animation: fadeUp .6s 1s forwards;
    z-index: 3;
  }

  .scroll-line {
    width: 32px;
    height: 1px;
    background: var(--text-dim);
    animation: scrollPulse 2s ease-in-out infinite;
  }

  /* ─── SECTION COMMONS ─── */
  section {
    padding: 6rem 4rem;
    position: relative;
  }

  .section-label {
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--accent-bright);
    margin-bottom: 1rem;
  }

  h2 {
    font-family: 'Commissioner', sans-serif;
    font-weight: 700;
    font-size: clamp(1.8rem, 3.5vw, 3.158rem);
    line-height: 1.12;
    letter-spacing: -.02em;
    color: var(--text);
  }

  h3 {
    font-family: 'Commissioner', sans-serif;
    font-weight: 700;
    font-size: 1.333rem;
    letter-spacing: -.01em;
    color: var(--text);
  }

  /* ─── DIVIDER ─── */
  .divider {
    width: 100%;
    height: 1px;
    background: var(--border);
  }

  /* ─── ABOUT ─── */
  #about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
  }

  .about-text p {
    color: var(--text-muted);
    margin-top: 1.5rem;
    line-height: 1.8;
    font-size: 1rem;
  }


  .about-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .about-logo-frame {
    width: 280px;
    height: 280px;
    border: 1px solid var(--border-hover);
    border-radius: var(--radius-lg);
    background: var(--bg2);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
  }

  .about-logo-frame::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 40% 40%, var(--tag-bg), transparent 60%);
  }

  /* ─── SKILLS ─── */
  #skills { background: var(--bg); }

  .skills-header { margin-bottom: 3rem; }

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

  .skill-card {
    background: var(--bg);
    padding: 2rem 1.75rem;
    transition: background .2s;
    cursor: default;
  }

  .skill-card:hover { background: var(--skill-hover); }

  .skill-icon {
    width: 36px;
    height: 36px;
    margin-bottom: 1.25rem;
    color: var(--accent-bright);
  }

  .skill-card h3 {
    font-size: 1rem;
    margin-bottom: .5rem;
  }

  .skill-card p {
    font-size: .85rem;
    color: var(--text-muted);
    line-height: 1.6;
  }

  .skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin-top: 1rem;
  }

  .tag {
    font-size: .7rem;
    font-weight: 500;
    letter-spacing: .06em;
    padding: .25rem .6rem;
    border-radius: 3px;
    background: var(--tag-bg);
    color: var(--tag-text);
    border: 1px solid var(--tag-border);
  }

  /* ─── SERVICES ─── */
  #services { background: var(--bg); }

  .skills-header {
    margin-bottom: 3rem;
  }

  .services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  .service-card {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: 
      border-color .25s ease,
      background .25s ease,
      transform .25s ease,
      box-shadow .25s ease;
    cursor: default;
    position: relative;
    overflow: hidden;
  }

  .service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 100% 0%, var(--tag-bg), transparent 70%);
    opacity: 0;
    transition: opacity .3s ease;
    pointer-events: none;
  }

  .service-card:hover {
    border-color: var(--border-hover);
    background: var(--bg3);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(196, 181, 253, 0.08);
  }

  html.light .service-card:hover {
    box-shadow: 0 8px 24px rgba(155, 114, 245, 0.12);
  }

  .service-card:hover::before {
    opacity: 1;
  }

  .service-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    background: var(--tag-bg);
    color: var(--accent-bright);
    transition: background .25s ease;
    flex-shrink: 0;
  }

  .service-card:hover .service-icon {
    background: rgba(155, 114, 245, 0.2);
  }

  .service-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
  }

  .service-card p {
    font-size: .95rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0;
    flex: 1;
  }

  .service-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .service-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
    padding: 0;
  }

  .service-list li::before {
    content: '✓';
    color: var(--accent-bright);
    font-weight: bold;
    flex-shrink: 0;
    margin-top: 2px;
  }

  .service-item.tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    background: var(--tag-bg);
    border: 1px solid var(--tag-border);
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--tag-text);
    letter-spacing: 0.02em;
  }

  .service-list li.service-item.tag::before {
    content: none;
  }

  .service-cta {
    align-self: center;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: transparent;
    border: 1px solid var(--accent-bright);
    border-radius: var(--radius);
    color: var(--accent-bright);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: 
      all .25s ease;
    letter-spacing: 0.02em;
  }

  .service-cta:hover {
    background: var(--accent-bright);
    color: var(--bg);
    box-shadow: 0 4px 12px rgba(196, 181, 253, 0.3);
  }

  html.light .service-cta:hover {
    background: var(--accent-bright);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(109, 40, 217, 0.25);
  }

  /* ─── SERVICE PRICING ─── */
  .service-pricing {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 0;
    margin: 1.25rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }

  .service-pricing > div {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    width: 100%;
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
  }

  .service-pricing strong {
    color: var(--accent-bright);
    font-weight: 600;
    transition: color 0.25s ease;
  }

  .service-pricing strong::after {
    content: '';
  }

  .service-description {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: italic;
  }

  /* ─── SERVICES RESPONSIVE ─── */
  @media (max-width: 1024px) {
    .services-grid {
      grid-template-columns: repeat(2, 1fr);
    }

    .service-pricing > div {
      font-size: 0.9rem;
    }
  }

  @media (max-width: 640px) {
    .services-grid {
      grid-template-columns: 1fr;
    }

    .service-card {
      padding: 1.5rem;
    }

    .service-icon {
      width: 44px;
      height: 44px;
    }

    .service-card h3 {
      font-size: 1rem;
    }

    .service-card p {
      font-size: 0.9rem;
    }

    .service-pricing {
      padding: 1rem 0;
      margin: 1rem 0;
    }

    .service-pricing > div {
      font-size: 0.85rem;
      gap: 0.5rem;
    }

    .service-description {
      font-size: 0.85rem;
    }
  }

  /* ─── PROJECTS ─── */
  #projects { background: var(--bg); }

  .projects-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3rem;
  }

  .projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .project-card {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: border-color .2s, transform .2s;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
  }

  .project-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
  }

  .project-card.featured {
    grid-column: span 2;
    flex-direction: row;
    gap: 2.5rem;
  }

  .project-thumb {
    width: 100%;
    border-radius: var(--radius);
    background: var(--bg3);
    overflow: hidden;
    flex-shrink: 0;
  }

  .project-card.featured .project-thumb {
    width: 340px;
    height: 155px;
  }

  .project-meta { flex: 1; display: flex; flex-direction: column; }

  .project-label {
    font-size: .7rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--accent-bright);
    margin-bottom: .5rem;
  }

  .project-card h3 { font-size: 1.2rem; margin-bottom: .5rem; }

  .project-card p {
    font-size: .875rem;
    color: var(--text-muted);
    line-height: 1.6;
    flex: 1;
  }

  .project-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: .75rem;
    padding-top: .75rem;
    border-top: 1px solid var(--border);
  }

  .project-link {
    font-size: .8rem;
    font-weight: 500;
    color: var(--accent-bright);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: .3rem;
    letter-spacing: .04em;
  }

  /* ─── CONTACT ─── */
  #contact {
    background: var(--bg2);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    text-align: center;
  }

  #contact h2 { margin-bottom: 1rem; }

  #contact p {
    color: var(--text-muted);
    max-width: 440px;
    margin: 0 auto 2.5rem;
    font-size: 1rem;
    line-height: 1.7;
  }

  .contact-form{
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 400px;
    margin: 0 auto 2.5rem;
  }

  .contact-form input, .contact-form textarea {
    padding: .75rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: transparent;
    color: var(--text);
    font-family: 'Commissioner', sans-serif;
    font-size: .9rem;
    transition: border-color .2s;
  }

  .contact-form input:focus, .contact-form textarea:focus {
    border-color: var(--accent-bright);
    outline: none;
  }

  .contact-form button {
    align-self: flex-start;
    padding: .75rem 1.5rem;
    background: var(--accent-bright);
    color: #fff;
    font-family: 'Commissioner', sans-serif;
    font-weight: 600;
    font-size: .9rem;
    letter-spacing: .04em;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: background .2s, transform .15s;
  }

  .contact-form option {
    background: var(--bg);
  }
  .contact-form select {
    padding: .75rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: transparent;
    color: var(--text);
    font-family: 'Commissioner', sans-serif;
    font-size: .9rem;
    transition: border-color .2s;
  }

  .contact-form button:hover { background: var(--accent-purple); transform: translateY(-1px); }

  .contact-form button:disabled {
    background: var(--accent-bright);
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
  }
  
  .contact-form button:disabled:hover {
    background: var(--accent-bright);
    transform: none;
  }

  .contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
  }

  .contact-info a {
    color: var(--accent-bright);
    text-decoration: none;
    font-size: .9rem;
    transition: color .2s;
  }

  .contact-info a:hover { color: var(--accent-purple); }

  .contact-info .contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .contact-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
  }

  /* ─── FOOTER ─── */
  footer {
    padding: 2.5rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .8rem;
    color: var(--text-dim);
  }

  footer a { color: var(--text-muted); text-decoration: none; }
  footer a:hover { color: var(--text); }

  /* ─── ANIMATIONS ─── */
  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  @keyframes scrollPulse {
    0%,100% { width: 32px; opacity: .4; }
    50%      { width: 48px; opacity: .8; }
  }

  .reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .55s, transform .55s;
  }

  .reveal.visible {
    opacity: 1;
    transform: none;
  }

   /* ─── PAPER TEXTURE ─── */
  #about, #contact {
    position: relative;
  }
  #about::after, #contact::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image:
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='paper'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23paper)' opacity='0.06'/%3E%3C/svg%3E");
    background-repeat: repeat;
    opacity: .5;
  }
  html.light #about::after, html.light #contact::after { opacity: .8; }
  #about > *, #contact > * { position: relative; z-index: 1; }
 
  /* ─── PIXEL CANVAS ─── */
  #pixel-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 9999;
  }
 
  /* ─── BUTTON PIXEL BURST ─── */
  .btn-primary, .btn-outline {
    overflow: visible !important;
  }
  .pixel-burst {
    position: fixed;
    width: 6px; height: 6px;
    border-radius: 1px;
    pointer-events: none;
    z-index: 9998;
    animation: pixelFly var(--dur, .6s) ease-out forwards;
  }
  @keyframes pixelFly {
    0%   { transform: translate(0,0) scale(1); opacity: 1; }
    100% { transform: translate(var(--tx), var(--ty)) scale(0); opacity: 0; }
  }
 

  /* ─── THEME TOGGLE ─── */
  #theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius);
    border: 1px solid var(--border-hover);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: background .2s, color .2s, border-color .2s;
    flex-shrink: 0;
  }

  #theme-toggle:hover {
    background: var(--bg2);
    color: var(--text);
    border-color: var(--gray);
  }

  html { transition: background .3s, color .3s; }
  body { transition: background .3s, color .3s; }

  /* light mode nav adjustments */
  html.light nav { box-shadow: 0 1px 0 var(--border); }
  html.light .hero-glow  { background: radial-gradient(circle, rgba(155,114,245,.1) 0%, transparent 70%); }
  html.light .hero-glow-2 { background: radial-gradient(circle, rgba(196,181,253,.06) 0%, transparent 70%); }
  html.light .code-symbol { opacity: .25; }

  /* ══════════════════════════════════════════
     RESPONSIVE
  ══════════════════════════════════════════ */

  /* ─── < 900px — tablette & mobile ─── */
  @media (max-width: 900px) {
    nav { padding: 0 1.5rem; }
    .nav-links { display: none; }
    .nav-burger { display: flex; }
    nav #theme-toggle {
      position: fixed;
      top: 14px;
      right: calc(1.5rem + 36px + 8px);
      z-index: 101;
    }

    section { padding: 4rem 1.5rem; }

    #hero {
      grid-template-columns: 1fr;
      padding: 6rem 1.5rem 3rem;
      gap: 0;
      min-height: auto;
    }
    .hero-blocks { display: none; }
    .hero-scroll  { display: none; }
    h1 { font-size: clamp(2rem, 8vw, 3rem); max-width: 100%; }
    .hero-sub { max-width: 100%; font-size: .95rem; }
    .hero-actions { flex-direction: column; align-items: flex-start; }
    .btn-primary, .btn-outline { width: 100%; justify-content: center; }

    #about { grid-template-columns: 1fr; gap: 2.5rem; }
    .about-visual { display: none; }
    .about-stats { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .stat { padding: 1rem; }
    .stat-number { font-size: 1.8rem; }

    .skills-grid { grid-template-columns: repeat(2, 1fr); }

    .projects-grid { grid-template-columns: 1fr; }
    .project-card.featured { flex-direction: column; grid-column: span 1; }
    .project-card.featured .project-thumb { width: 100%; height: auto; }

    .contact-links { flex-direction: column; align-items: center; }
    .contact-links .btn-primary,
    .contact-links .btn-outline { width: 100%; max-width: 320px; justify-content: center; }

    footer { flex-direction: column; gap: 1.25rem; text-align: center; padding: 2rem 1.5rem; }
    footer div:last-child { flex-wrap: wrap; justify-content: center; }
  }

  /* ─── < 600px — petit mobile ─── */
  @media (max-width: 600px) {
    nav { padding: 0 1rem; height: 56px; }
    .nav-mobile { top: 56px; }
    section { padding: 3rem 1rem; }
    #hero { padding: 5rem 1rem 2.5rem; }
    h1 { font-size: clamp(1.8rem, 9vw, 2.5rem); }
    .about-stats { grid-template-columns: repeat(2, 1fr); gap: .75rem; }
    .stat-number { font-size: 1.5rem; }
    .skills-grid { grid-template-columns: 1fr; }
    .project-card { padding: 1.25rem; }
    footer img { height: 40px !important; }
  }

  /* ─── 900px–1200px ─── */
  @media (min-width: 900px) and (max-width: 1200px) {
    nav { padding: 0 2.5rem; }
    section { padding: 5rem 2.5rem; }
    #hero { padding: 7rem 2.5rem 4rem; gap: 1.5rem; }
    .hero-blocks { height: 420px; }
    .cs9, .cs10 { display: none; }
    #about { gap: 3rem; }
    .about-logo-frame { width: 220px; height: 220px; }
    footer { padding: 2rem 2.5rem; }
  }

  /* ─── > 1400px ─── */
  @media (min-width: 1400px) {
    nav { padding: 0 6rem; }
    section { padding: 7rem 6rem; }
    #hero { padding: 9rem 6rem 5rem; }
    footer { padding: 2.5rem 6rem; }
  }