@font-face {
    font-family: 'HighCruiser';
    src: url('fonts/HighCruiser.otf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
  }
  :root {
    --bg: #121212;
    --bg2: #191919;
    --surface: #1f1f1f;
    --border: #2c2c2c;
    --text: #eeeeee;
    --text-mid: #888888;
    --text-dim: #444444;
  }

  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }

  body {
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    font-weight: 300;
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
  }

  /* Grain photographique */
  body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9998;
    opacity: 1;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='4' seed='8' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeBlend in='SourceGraphic' mode='overlay' result='blend'/%3E%3CfeComposite in='blend' in2='SourceGraphic' operator='in'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23g)' opacity='0.055'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 220px 220px;
    mix-blend-mode: overlay;
  }

  /* NAV */
  nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 52px;
    background: rgba(18,18,18,0.92);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
  }

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

  .nav-logo-img {
    height: 36px;
    width: auto;
    mix-blend-mode: screen;
    transition: opacity 0.2s;
  }

  .nav-logo-img:hover { opacity: 0.75; }

  .nav-links {
    display: flex;
    gap: 36px;
    list-style: none;
  }

  .nav-links a {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    font-size: 11px;
    font-weight: 300;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-mid);
    text-decoration: none;
    transition: color 0.2s;
  }

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

  /* HERO */
  #hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 400px;
    position: relative;
    overflow: hidden;
  }

  .hero-left {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0 60px 80px;
    position: relative;
    z-index: 2;
  }

  .hero-right {
    position: relative;
    overflow: hidden;
  }

  .hero-right img {
    position: absolute;
    bottom: 0; right: 0;
    height: 90%;
    width: auto;
    object-fit: cover;
    object-position: top center;
    filter: grayscale(100%) contrast(1.05);
  }

  .hero-right::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, #121212 0%, transparent 38%);
    z-index: 1;
  }

  .hero-right::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 100px;
    background: linear-gradient(to top, #121212 0%, transparent 100%);
    z-index: 1;
  }

  .hero-tag {
    font-size: 11px;
    font-weight: 300;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-mid);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 14px;
  }

  .hero-tag::before {
    content: '';
    display: inline-block;
    width: 28px;
    height: 1px;
    background: var(--text-mid);
  }

  .hero-name {
    margin-bottom: 8px;
  }

  .hero-logo-img {
    width: clamp(240px, 48vw, 580px);
    max-width: 100%;
    height: auto;
    mix-blend-mode: screen;
    display: block;
  }

  .hero-subtitle {
    font-size: 15px;
    font-weight: 300;
    color: var(--text-mid);
    margin: 22px 0 44px;
    max-width: 460px;
    line-height: 1.65;
  }

  .hero-subtitle strong { color: var(--text); font-weight: 400; }

  .hero-kpis {
    display: flex;
    gap: 36px;
    margin-bottom: 44px;
    flex-wrap: wrap;
  }

  .kpi { border-left: 1px solid var(--border); padding-left: 16px; }

  .kpi-val {
    font-family: 'HighCruiser', sans-serif;
    font-size: 34px;
    color: var(--text);
    line-height: 1;
    letter-spacing: 0.04em;
  }

  .kpi-lbl {
    font-size: 10px;
    font-weight: 300;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-top: 5px;
  }

  .hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

  .btn-primary {
    background: var(--text);
    color: var(--bg);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 14px 30px;
    transition: background 0.2s, transform 0.15s;
    display: inline-block;
  }

  .btn-primary:hover { background: #cccccc; transform: translateY(-2px); }

  .btn-ghost {
    border: 1px solid var(--border);
    color: var(--text-mid);
    font-size: 11px;
    font-weight: 300;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 14px 30px;
    transition: border-color 0.2s, color 0.2s, transform 0.15s;
    display: inline-block;
  }

  .btn-ghost:hover { border-color: var(--text-mid); color: var(--text); transform: translateY(-2px); }

  /* SECTIONS */
  section { padding: 100px 52px; }

  .section-hd {
    display: flex;
    align-items: baseline;
    gap: 18px;
    margin-bottom: 64px;
  }

  .section-num {
    font-size: 11px;
    font-weight: 300;
    letter-spacing: 0.14em;
    color: var(--text-dim);
  }

  .section-title {
    font-family: 'HighCruiser', sans-serif;
    font-size: clamp(40px, 5.5vw, 68px);
    letter-spacing: 0.04em;
    line-height: 1;
    color: var(--text);
  }

  .section-line {
    flex: 1;
    height: 1px;
    background: var(--border);
    margin-left: auto;
  }

  /* COMPETENCES */
  #competences { background: var(--bg2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

  .skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1px;
    background: var(--border);
  }

  .skill-card {
    background: var(--bg);
    padding: 28px 26px;
    position: relative;
    overflow: hidden;
    transition: background 0.2s;
  }

  .skill-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 1px; height: 0;
    background: var(--text);
    transition: height 0.3s ease;
  }

  .skill-card:hover::after { height: 100%; }
  .skill-card:hover { background: var(--surface); }

  .skill-icon { font-size: 22px; margin-bottom: 14px; display: block; }

  .skill-name {
    font-family: 'HighCruiser', sans-serif;
    font-size: 20px;
    letter-spacing: 0.04em;
    color: var(--text);
    margin-bottom: 8px;
  }

  .skill-tools {
    font-size: 12px;
    font-weight: 300;
    color: var(--text-dim);
    line-height: 1.9;
  }

  /* EXPERIENCES */
  #experiences { background: var(--bg); }

  .exp-item {
    display: grid;
    grid-template-columns: 190px 1fr;
    border-top: 1px solid var(--border);
    padding: 44px 0;
  }

  .exp-item:last-child { border-bottom: 1px solid var(--border); }

  .exp-meta { padding-right: 40px; padding-top: 4px; }

  .exp-period {
    font-size: 11px;
    font-weight: 300;
    letter-spacing: 0.08em;
    color: var(--text-dim);
    line-height: 1.8;
    margin-bottom: 10px;
  }

  .exp-badge {
    display: inline-block;
    border: 1px solid var(--border);
    font-size: 10px;
    font-weight: 300;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-mid);
    padding: 3px 10px;
  }

  .exp-role {
    font-family: 'HighCruiser', sans-serif;
    font-size: 30px;
    letter-spacing: 0.03em;
    color: var(--text);
    margin-bottom: 6px;
    line-height: 1.1;
  }

  .exp-company {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-mid);
    margin-bottom: 14px;
  }

  .exp-desc {
    font-size: 14px;
    font-weight: 300;
    color: var(--text-mid);
    line-height: 1.75;
    max-width: 620px;
    margin-bottom: 18px;
  }

  .exp-metrics { display: flex; gap: 28px; flex-wrap: wrap; margin-bottom: 16px; }

  .exp-metric-val {
    font-family: 'HighCruiser', sans-serif;
    font-size: 28px;
    letter-spacing: 0.04em;
    color: var(--text);
    line-height: 1;
  }

  .exp-metric-lbl {
    font-size: 10px;
    font-weight: 300;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-top: 3px;
  }

  .tags { display: flex; flex-wrap: wrap; gap: 8px; }

  .tag {
    font-size: 10px;
    font-weight: 300;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-dim);
    border: 1px solid var(--border);
    padding: 3px 10px;
  }

  /* PORTFOLIO */
  #portfolio { background: var(--bg2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

  .portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }

  .portfolio-card {
    background: var(--bg);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: border-color 0.2s;
  }

  .portfolio-card:hover { border-color: #444; }
  .portfolio-card.large { grid-column: span 2; }

  .portfolio-thumb { width: 100%; aspect-ratio: 16/9; overflow: hidden; }

  .portfolio-thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease, filter 0.4s ease;
    filter: brightness(0.65) grayscale(15%);
  }

  .portfolio-card:hover .portfolio-thumb img {
    transform: scale(1.04);
    filter: brightness(0.8) grayscale(0%);
  }

  .portfolio-info { padding: 22px; }

  .portfolio-client {
    font-size: 10px;
    font-weight: 300;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 6px;
  }

  .portfolio-project {
    font-family: 'HighCruiser', sans-serif;
    font-size: 19px;
    letter-spacing: 0.03em;
    color: var(--text);
    margin-bottom: 8px;
    line-height: 1.2;
  }

  .portfolio-desc {
    font-size: 13px;
    font-weight: 300;
    color: var(--text-dim);
    line-height: 1.65;
  }

  /* CONTACT */
  #contact { background: var(--bg); }

  .contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }

  .contact-headline {
    font-family: 'HighCruiser', sans-serif;
    font-size: clamp(44px, 6.5vw, 86px);
    line-height: 0.95;
    letter-spacing: 0.03em;
    color: var(--text);
    margin-bottom: 24px;
  }

  .contact-text {
    font-size: 15px;
    font-weight: 300;
    color: var(--text-mid);
    line-height: 1.7;
    max-width: 380px;
    margin-bottom: 32px;
  }

  .contact-impulsion {
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 1px solid #555;
    padding: 18px 20px;
    font-size: 13px;
    font-weight: 300;
    color: var(--text-mid);
    line-height: 1.65;
    max-width: 420px;
  }

  .contact-impulsion strong { color: var(--text); font-weight: 400; }

  .contact-links { display: flex; flex-direction: column; gap: 14px; padding-top: 8px; }

  .contact-link {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 22px 26px;
    border: 1px solid var(--border);
    text-decoration: none;
    background: var(--bg2);
    transition: border-color 0.2s, background 0.2s, transform 0.15s;
  }

  .contact-link:hover { border-color: #555; background: var(--surface); transform: translateX(6px); }

  .contact-link-icon { font-size: 20px; width: 34px; text-align: center; flex-shrink: 0; }
  .contact-link-label { font-size: 10px; font-weight: 300; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 3px; }
  .contact-link-value { font-size: 14px; font-weight: 400; color: var(--text); }
  .contact-link-arrow { margin-left: auto; color: var(--text-dim); font-size: 15px; transition: color 0.2s; }
  .contact-link:hover .contact-link-arrow { color: var(--text); }

  footer {
    padding: 26px 52px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .footer-copy, .footer-url {
    font-size: 11px;
    font-weight: 300;
    letter-spacing: 0.08em;
    color: var(--text-dim);
  }

  .footer-eco {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: #4caf50;
  }

  /* REVEAL */
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
  .reveal.in { opacity: 1; transform: translateY(0); }

  /* RESPONSIVE */
  @media (max-width: 900px) {
    nav { padding: 16px 24px; }
    .nav-links { gap: 20px; }
    section { padding: 70px 24px; }
    #hero { grid-template-columns: 1fr; min-height: auto; padding-top: 80px; }
    .hero-left { padding: 40px 24px 60px; }
    .hero-right { display: none; }
    .exp-item { grid-template-columns: 1fr; gap: 8px; }
    .exp-meta { padding-right: 0; padding-bottom: 12px; }
    .portfolio-grid { grid-template-columns: 1fr; }
    .portfolio-card.large { grid-column: span 1; }
    .contact-wrap { grid-template-columns: 1fr; gap: 48px; }
    footer { flex-direction: column; gap: 8px; text-align: center; }
  }

  @media (max-width: 600px) {
    .nav-links { display: none; }
    .nav-logo-img { height: 28px; }
    .hero-logo-img { width: 80vw; }
    nav { position: relative; }
  }

  /* LIGHTBOX */
  .portfolio-thumb { cursor: zoom-in; }

  #lightbox {
    position: fixed;
    inset: 0;
    z-index: 9000;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
  }

  #lightbox.open {
    opacity: 1;
    pointer-events: all;
  }

  #lightbox-inner {
    position: relative;
    width: 78vw;
    max-width: 1200px;
  }

  #lightbox-inner img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: contain;
    display: block;
  }

  #lightbox-inner .video-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
  }

  #lightbox-inner .video-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block;
  }

  #lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: #eeeeee;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.15s;
    padding: 4px 8px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    font-weight: 300;
  }

  #lightbox-close:hover { opacity: 1; }

  @media (max-width: 900px) {
    #lightbox-inner { width: 94vw; }
    #lightbox-close { top: -36px; font-size: 24px; }
  }
