  :root {
    --dark: #14303f;
    --teal: #2a9aaa;
    --teal-light: #4bbfcc;
    --slate: #7a9aaa;
    --white: #f4f6f5;
    --off: #e8eceb;
  }
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }
  body { font-family: 'DM Sans', sans-serif; background: var(--white); color: var(--dark); overflow-x: hidden; }

  /* NAV */
  nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 5vw; height: 72px;
    background: rgba(244,246,245,0.92); backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(20,48,63,0.08);
    transition: box-shadow 0.3s;
  }
  nav.scrolled { box-shadow: 0 4px 32px rgba(20,48,63,0.1); }
  .nav-logo img { height: 44px; display: block; }
  .nav-links { display: flex; gap: 2.5rem; list-style: none; }
  .nav-links a {
    font-family: 'Syne', sans-serif; font-weight: 600; font-size: 0.85rem;
    letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--dark); text-decoration: none;
    position: relative; padding-bottom: 4px;
  }
  .nav-links a::after {
    content: ''; position: absolute; bottom: 0; left: 0;
    width: 0; height: 2px; background: var(--teal);
    transition: width 0.3s ease;
  }
  .nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
  .nav-cta {
    background: var(--dark); color: var(--white) !important;
    padding: 0.55rem 1.4rem; border-radius: 2px;
    font-family: 'Syne', sans-serif; font-size: 0.8rem;
    font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
    text-decoration: none; transition: background 0.25s;
  }
  .nav-cta:hover { background: var(--teal) !important; }
  .nav-cta::after { display: none !important; }

  .hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
  .hamburger span { display: block; width: 24px; height: 2px; background: var(--dark); transition: all 0.3s; }

  /* HERO */
  #accueil {
    min-height: 100vh; display: flex; align-items: center;
    padding: 120px 5vw 80px;
    background: var(--dark);
    position: relative; overflow: hidden;
  }
  .hero-bg-grid {
    position: absolute; inset: 0; opacity: 0.04;
    background-image: linear-gradient(var(--white) 1px, transparent 1px),
      linear-gradient(90deg, var(--white) 1px, transparent 1px);
    background-size: 60px 60px;
  }
  .hero-accent {
    position: absolute; right: 0; top: 0; bottom: 0; width: 35%;
    background: linear-gradient(135deg, var(--teal) 0%, transparent 70%);
    opacity: 0.08;
  }
  .hero-shell {
    position: relative; z-index: 2; width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: clamp(1rem, 2vw, 2rem);
    align-items: center;
  }
  .hero-content { max-width: 620px; }
  .hero-tag {
    display: inline-block; font-family: 'Syne', sans-serif;
    font-size: 0.72rem; font-weight: 700; letter-spacing: 0.2em;
    text-transform: uppercase; color: var(--teal);
    border: 1px solid var(--teal); padding: 0.35rem 0.9rem;
    margin-bottom: 2rem; border-radius: 1px;
    opacity: 0; animation: fadeUp 0.7s 0.2s forwards;
  }
  .hero-title {
    font-family: 'Syne', sans-serif; font-weight: 800;
    font-size: clamp(2.8rem, 7vw, 6rem); line-height: 1.02;
    color: var(--white); margin-bottom: 1.5rem;
    opacity: 0; animation: fadeUp 0.7s 0.4s forwards;
  }
  .hero-title em { font-style: normal; color: var(--teal-light); }
  .hero-sub {
    font-size: clamp(1rem, 1.8vw, 1.2rem); line-height: 1.7;
    color: rgba(244,246,245,0.65); max-width: 560px;
    margin-bottom: 3rem;
    opacity: 0; animation: fadeUp 0.7s 0.6s forwards;
  }
  .hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; opacity: 0; animation: fadeUp 0.7s 0.8s forwards; }
  .btn-primary {
    background: var(--teal); color: var(--white);
    padding: 0.9rem 2.2rem; border-radius: 2px;
    font-family: 'Syne', sans-serif; font-weight: 700;
    font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase;
    text-decoration: none; transition: background 0.25s, transform 0.2s;
    display: inline-block;
  }
  .btn-primary:hover { background: var(--teal-light); transform: translateY(-2px); }
  .btn-outline {
    border: 1.5px solid rgba(244,246,245,0.3); color: var(--white);
    padding: 0.9rem 2.2rem; border-radius: 2px;
    font-family: 'Syne', sans-serif; font-weight: 600;
    font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase;
    text-decoration: none; transition: border-color 0.25s, background 0.25s;
    display: inline-block;
  }
  .btn-outline:hover { border-color: var(--teal); background: rgba(42,154,170,0.1); }
  .hero-visual-wrap {
    min-height: 460px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    animation: fadeUp 0.7s 0.9s forwards;
    opacity: 0;
    width: calc(100% + 5vw);
    margin-right: -5vw;
    padding-left: 0;
  }
  .hero-banner-image {
    width: 100%;
    max-width: none;
    height: auto;
    display: block;
    border-radius: 0;
    box-shadow: none;
  }

  .hero-stats {
    position: absolute; bottom: 60px; right: 5vw;
    display: flex; gap: clamp(1rem, 2.5vw, 3rem); z-index: 2;
    flex-wrap: wrap;
    justify-content: flex-end;
    opacity: 0; animation: fadeUp 0.7s 1s forwards;
  }
  .stat-item { text-align: right; }
  .stat-num {
    font-family: 'Syne', sans-serif; font-weight: 800;
    font-size: 2.5rem; color: var(--white); line-height: 1;
    display: flex; align-items: baseline; gap: 2px;
  }
  .stat-num span { color: var(--teal); font-size: 1.5rem; }
  .stat-label { font-size: 0.75rem; color: rgba(244,246,245,0.5); letter-spacing: 0.06em; margin-top: 4px; }

  /* SECTIONS */
  section { padding: 100px 5vw; }
  .section-label {
    font-family: 'Syne', sans-serif; font-size: 0.7rem; font-weight: 700;
    letter-spacing: 0.22em; text-transform: uppercase; color: var(--teal);
    margin-bottom: 1rem;
  }
  .section-title {
    font-family: 'Syne', sans-serif; font-weight: 800;
    font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.1;
    color: var(--dark); margin-bottom: 1.5rem;
  }
  .section-sub {
    font-size: 1.05rem; line-height: 1.75;
    color: rgba(20,48,63,0.6); max-width: 560px;
  }

  /* PROJETS */
  #projets { background: var(--dark); }
  #projets .section-title { color: var(--white); }
  #projets .section-label { color: var(--teal-light); }
  #projets .section-sub { color: rgba(244,246,245,0.55); }
  .projets-header { margin-bottom: 4rem; }
  .projets-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5px;
  }
  .projet-card {
    position: relative; overflow: hidden; aspect-ratio: 4/3;
    cursor: pointer; background: #0e2330;
  }
  .projet-card:first-child { grid-column: span 2; aspect-ratio: 16/9; }
  .projet-card-bg {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, var(--dark) 0%, var(--teal) 100%);
    opacity: 0.3; transition: opacity 0.4s;
  }
  .projet-card:nth-child(2) .projet-card-bg { background: linear-gradient(135deg, #1a3a4a, var(--slate)); }
  .projet-card:nth-child(3) .projet-card-bg { background: linear-gradient(135deg, #0e2330, var(--teal-light)); }
  .projet-card:nth-child(4) .projet-card-bg { background: linear-gradient(135deg, var(--dark), #2a5a6a); }
  .projet-card:nth-child(5) .projet-card-bg { background: linear-gradient(135deg, #162a38, var(--teal)); }
  .projet-card:nth-child(6) .projet-card-bg { background: linear-gradient(135deg, var(--dark), var(--slate)); }
  .projet-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(14,35,48,0.95) 0%, transparent 60%);
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 2rem; transform: translateY(30px); opacity: 0;
    transition: all 0.4s ease;
  }
  .projet-card:hover .projet-overlay { transform: translateY(0); opacity: 1; }
  .projet-card:hover .projet-card-bg { opacity: 0.6; }
  .projet-cat {
    font-family: 'Syne', sans-serif; font-size: 0.68rem; font-weight: 700;
    letter-spacing: 0.18em; text-transform: uppercase; color: var(--teal-light);
    margin-bottom: 0.4rem;
  }
  .projet-name {
    font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.3rem;
    color: var(--white);
  }
  .projet-pattern {
    position: absolute; inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.05) 1px, transparent 0);
    background-size: 32px 32px;
  }
  .pixel-deco {
    position: absolute; top: 20px; right: 20px;
    width: 40px; height: 40px;
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px;
    opacity: 0.4;
  }
  .pixel-deco div { background: var(--teal-light); }
  .pixel-deco div:nth-child(2), .pixel-deco div:nth-child(4), .pixel-deco div:nth-child(9) { background: var(--slate); }
  .pixel-deco div:nth-child(5), .pixel-deco div:nth-child(7) { background: transparent; }

  .projet-card--preview .projet-preview-cover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    z-index: 0;
    display: block;
  }
  .projet-card--preview .projet-card-bg {
    z-index: 1;
    opacity: 0.4;
  }
  .projet-card--preview .projet-pattern { z-index: 2; }
  .projet-card--preview .pixel-deco { z-index: 3; }
  .projet-card--preview .projet-overlay { z-index: 4; }
  .projet-card--preview:focus {
    outline: 2px solid var(--teal-light);
    outline-offset: 2px;
  }
  .projet-card--preview:focus:not(:focus-visible) { outline: none; }

  /* Lightbox (project preview) */
  .lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(1rem, 4vw, 2.5rem);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
  }
  .lightbox.is-open {
    opacity: 1;
    visibility: visible;
  }
  .lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(20,48,63,0.88);
    backdrop-filter: blur(10px);
    cursor: pointer;
  }
  .lightbox__frame {
    position: relative;
    z-index: 1;
    max-width: min(96vw, 1200px);
    max-height: 90vh;
    margin: 0 auto;
  }
  .lightbox__img {
    display: block;
    max-width: 100%;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 2px;
    box-shadow: 0 24px 64px rgba(0,0,0,0.45);
  }
  .lightbox__close {
    position: fixed;
    top: 1.25rem;
    right: 1.25rem;
    z-index: 2;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 2px;
    background: rgba(244,246,245,0.12);
    color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s, transform 0.2s;
  }
  .lightbox__close:hover {
    background: var(--teal);
    color: var(--white);
    transform: scale(1.05);
  }
  .lightbox__close-icon {
    width: 22px;
    height: 22px;
  }

  /* EXPERTISE */
  #expertise { background: var(--off); }
  .expertise-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
    margin-top: 3.5rem;
  }
  .expertise-card {
    background: var(--white); padding: 2.5rem;
    border-radius: 2px; border: 1px solid rgba(20,48,63,0.08);
    transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
    position: relative; overflow: hidden;
  }
  .expertise-card::before {
    content: ''; position: absolute; top: 0; left: 0;
    width: 3px; height: 0; background: var(--teal);
    transition: height 0.4s ease;
  }
  .expertise-card:hover { border-color: transparent; transform: translateY(-4px); box-shadow: 0 16px 48px rgba(20,48,63,0.1); }
  .expertise-card:hover::before { height: 100%; }
  .exp-num {
    font-family: 'Syne', sans-serif; font-weight: 800; font-size: 2.5rem;
    color: rgba(20,48,63,0.06); line-height: 1; margin-bottom: 1rem;
  }
  .exp-icon { font-size: 2rem; margin-bottom: 1rem; }
  .exp-title { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1.1rem; color: var(--dark); margin-bottom: 0.6rem; }
  .exp-text { font-size: 0.9rem; line-height: 1.7; color: rgba(20,48,63,0.6); }

  /* CONTACT */
  #contact { background: var(--white); }
  .contact-wrap {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 780px;
    margin: 0 auto;
    justify-items: center;
    text-align: center;
  }
  .contact-wrap > div { width: 100%; }
  .contact-form { display: flex; flex-direction: column; gap: 1rem; margin-top: 2.5rem; }
  .contact-form .form-field { text-align: left; }
  .contact-form .btn-primary { margin: 0 auto; }
  .contact-form .status-message { text-align: center; }
  .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
  .form-field { display: flex; flex-direction: column; gap: 0.4rem; }
  .form-field label { font-family: 'Syne', sans-serif; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dark); }
  .form-field input, .form-field textarea, .form-field select {
    border: 1.5px solid rgba(20,48,63,0.15); padding: 0.85rem 1rem;
    border-radius: 2px; font-family: 'DM Sans', sans-serif; font-size: 0.95rem;
    color: var(--dark); background: var(--off); outline: none;
    transition: border-color 0.25s, background 0.25s;
  }
  .form-field input:focus, .form-field textarea:focus, .form-field select:focus {
    border-color: var(--teal); background: var(--white);
  }
  .form-field textarea { resize: vertical; min-height: 130px; }
  .field-error {
    font-size: 0.8rem;
    color: #cc4a4a;
    min-height: 1em;
  }
  .status-message {
    font-size: 0.9rem;
    min-height: 1.2em;
    color: rgba(20,48,63,0.75);
  }
  .status-message.success { color: #2a9aaa; }
  .status-message.error { color: #cc4a4a; }
  .btn-loading {
    opacity: 0.85;
    pointer-events: none;
    position: relative;
  }
  .btn-loading::after {
    content: "";
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid rgba(244,246,245,0.45);
    border-top-color: #fff;
    display: inline-block;
    margin-left: 0.55rem;
    vertical-align: -2px;
    animation: spin 0.8s linear infinite;
  }
  .contact-info { padding-top: 1rem; }
  .contact-info-item { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 2rem; }
  .info-icon {
    width: 44px; height: 44px; background: rgba(42,154,170,0.1);
    border-radius: 2px; display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; flex-shrink: 0;
  }
  .info-label { font-family: 'Syne', sans-serif; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--teal); margin-bottom: 0.25rem; }
  .info-val { font-size: 0.95rem; color: var(--dark); }

  /* FOOTER */
  footer {
    background: var(--dark); color: rgba(244,246,245,0.5);
    padding: 3rem 5vw; display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 1.5rem;
  }
  footer img { height: 36px; opacity: 0.8; }
  .footer-copy { font-size: 0.82rem; }
  .footer-links { display: flex; gap: 2rem; }
  .footer-links a { color: rgba(244,246,245,0.5); text-decoration: none; font-size: 0.82rem; transition: color 0.2s; }
  .footer-links a:hover { color: var(--teal-light); }

  /* ANIMATIONS */
  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(28px); }
    to { opacity: 1; transform: translateY(0); }
  }
  @keyframes spin {
    to { transform: rotate(360deg); }
  }
  .reveal { opacity: 0; transform: translateY(36px); transition: opacity 0.7s ease, transform 0.7s ease; }
  .reveal.in-view { opacity: 1; transform: translateY(0); }

  /* MOBILE */
  @media (max-width: 1180px) {
    .hero-stats {
      position: relative;
      bottom: auto;
      right: auto;
      margin-top: 2.5rem;
      justify-content: flex-start;
      width: 100%;
    }
    .stat-item { text-align: left; }
  }
  @media (max-width: 900px) {
    .nav-links { display: none; flex-direction: column; position: fixed; top: 72px; left: 0; right: 0; background: var(--white); padding: 2rem 5vw; gap: 1.5rem; border-bottom: 1px solid rgba(20,48,63,0.08); }
    .nav-links.open { display: flex; }
    .hamburger { display: flex; }
    .projets-grid { grid-template-columns: 1fr 1fr; }
    .projet-card:first-child { grid-column: span 2; }
    .expertise-grid { grid-template-columns: 1fr; }
    .contact-wrap { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .hero-stats { margin-top: 2rem; }
    .hero-shell { grid-template-columns: 1fr; }
    .hero-content { max-width: 100%; }
    .hero-visual-wrap {
      min-height: 0;
      order: 2;
      width: calc(100% + 5vw);
      margin-right: -5vw;
    }
    .hero-banner-image { max-width: 100%; }
  }
  @media (max-width: 600px) {
    .projets-grid { grid-template-columns: 1fr; }
    .projet-card:first-child { grid-column: span 1; }
    .hero-stats { gap: 1.25rem; }
    .stat-num { font-size: 2rem; }
    footer { flex-direction: column; align-items: flex-start; }
  }
