/* ============================================================
   PORTFOLIO — ANDI · v2 « ultra design / interactif »
   Thème sombre éditorial · accent électrique
   ------------------------------------------------------------
   Couleur d'accent : modifiez --accent ci-dessous, tout suit.
   ============================================================ */

:root {
  --bg:          #0a0a0b;
  --bg-elev:     #131316;
  --bg-elev-2:   #1c1c20;
  --line:        rgba(244, 244, 240, 0.12);
  --line-2:      rgba(244, 244, 240, 0.22);
  --text:        #f4f4f0;
  --muted:       #9a9a98;
  --faint:       #5e5e5c;
  --accent:      #ff3326;            /* ⟵ accent (rouge vif) */
  --accent-ink:  #160303;
  --accent-soft: rgba(255, 51, 38, 0.16);

  --maxw:   1440px;
  --pad:    clamp(20px, 5vw, 80px);
  --radius: 16px;
  --ease:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-2: cubic-bezier(0.65, 0.05, 0, 1);

  --font-display: "Clash Display", "Space Grotesk", system-ui, sans-serif;
  --font-body:    "Satoshi", "Inter", system-ui, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.has-js { scroll-behavior: auto; }      /* Lenis prend le relais */

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; height: 100vh; }

img, video, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }
::selection { background: var(--accent); color: var(--accent-ink); }

/* Masque le curseur natif quand le curseur custom est actif */
html.has-cursor, html.has-cursor a, html.has-cursor button { cursor: none; }

/* ============================================================
   LOADER
   ============================================================ */
.loader {
  position: fixed; inset: 0; z-index: 1000;
  background: var(--bg);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 28px;
  transition: transform 1s var(--ease-2), opacity 0.6s ease;
}
.loader.is-done { transform: translateY(-101%); }
.loader__inner {
  display: flex; align-items: flex-end; gap: 18px;
  font-family: var(--font-display);
}
.loader__name {
  font-size: clamp(2.4rem, 9vw, 6rem);
  font-weight: 600; letter-spacing: -0.03em; line-height: 1;
}
.loader__logo {
  display: block;
  width: clamp(46px, 9vw, 64px);
  height: clamp(74px, 14.5vw, 103px);
  background: url("assets/logo.png") center / contain no-repeat;
}
.loader__count {
  font-size: clamp(1rem, 3vw, 1.6rem);
  color: var(--accent); margin-bottom: 0.4em;
  /* Largeur réservée + chiffres à chasse fixe : le compteur (0 → 100) ne
     change plus de largeur, donc le logo reste parfaitement immobile. */
  width: 2.6ch; text-align: left;
  font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1;
}
.loader__bar {
  width: min(60vw, 340px); height: 2px;
  background: var(--line); overflow: hidden;
}
.loader__bar span {
  display: block; height: 100%; width: 0%;
  background: var(--accent);
}

/* ============================================================
   CURSEUR CUSTOM
   ============================================================ */
.cursor { position: fixed; top: 0; left: 0; z-index: 900; pointer-events: none; display: none; }
html.has-cursor .cursor { display: block; }
.cursor__dot {
  position: fixed; top: 0; left: 0;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  transform: translate(-50%, -50%);
}
.cursor__ring {
  position: fixed; top: 0; left: 0;
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line-2);
  transform: translate(-50%, -50%);
  display: grid; place-items: center;
  transition: width 0.35s var(--ease), height 0.35s var(--ease),
              background 0.35s var(--ease), border-color 0.35s var(--ease);
}
.cursor__label {
  font-family: var(--font-display);
  font-size: 0.7rem; letter-spacing: 0.04em;
  color: var(--accent-ink); opacity: 0;
  transform: scale(0.6); transition: opacity 0.3s, transform 0.3s var(--ease);
  text-transform: uppercase;
}
.cursor.is-hover .cursor__ring { width: 64px; height: 64px; border-color: var(--accent); }
.cursor.is-label .cursor__ring  { width: 92px; height: 92px; background: var(--accent); border-color: var(--accent); }
.cursor.is-label .cursor__label { opacity: 1; transform: scale(1); }
.cursor.is-label .cursor__dot   { opacity: 0; }

/* ============================================================
   GRAIN + WEBGL
   ============================================================ */
.grain {
  position: fixed; inset: -50%; z-index: 2;
  pointer-events: none; opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.6s steps(2) infinite;
}
@keyframes grain {
  0%   { transform: translate(0, 0); }
  50%  { transform: translate(-6%, 4%); }
  100% { transform: translate(4%, -6%); }
}
.webgl {
  position: fixed; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  opacity: 0; transition: opacity 1.4s ease;
}
.webgl.is-ready { opacity: 1; }

/* Barre de progression de défilement */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 150;
  pointer-events: none; background: transparent;
}
.scroll-progress span {
  display: block; height: 100%; width: 100%;
  background: var(--accent); transform: scaleX(0); transform-origin: 0 50%;
}

/* Tout le contenu passe au-dessus du WebGL (loader/cursor gardent leur position: fixed) */
.nav, .hero, .marquee, .section, .footer { position: relative; z-index: 3; }
.nav { z-index: 100; }
.loader { z-index: 1000; }
.cursor { z-index: 900; }

/* ============================================================
   LAYOUT
   ============================================================ */
.section { max-width: var(--maxw); margin: 0 auto; padding: clamp(80px, 12vw, 200px) var(--pad); }
.section__head { margin-bottom: clamp(36px, 6vw, 80px); }
.section__num {
  font-family: var(--font-display);
  font-size: 0.9rem; color: var(--accent);
  display: block; margin-bottom: 16px;
}
.section__title {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(2.2rem, 7vw, 5.5rem);
  letter-spacing: -0.03em; line-height: 0.98;
}
.section__lead {
  margin-top: 22px; max-width: 52ch;
  color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.15rem);
}

/* Reveal (gated : caché seulement si GSAP est chargé) */
html.has-gsap [data-reveal] { opacity: 0; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: transform 0.55s var(--ease);
}
.nav.is-hidden { transform: translateY(-150%); }
/* Capsule en glassmorphism */
.nav__inner {
  max-width: var(--maxw);
  width: calc(100% - var(--pad) * 2);
  margin: 14px auto 0;
  padding: 9px 9px 9px 18px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(22, 22, 27, 0.5);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
          backdrop-filter: blur(22px) saturate(170%);
  border: 1px solid rgba(244, 244, 240, 0.16);
  border-radius: 100px;
  box-shadow: 0 18px 50px -22px rgba(0,0,0,0.92), inset 0 1px 0 rgba(255,255,255,0.10);
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
}
.nav.is-scrolled .nav__inner { background: rgba(13, 13, 16, 0.6); border-color: rgba(244,244,240,0.15); }

.nav__logo { display: inline-flex; align-items: center; padding-left: 2px; }
.logo-mark {
  display: block; width: 22px; height: 36px;
  background: url("assets/logo.png") center / contain no-repeat;
  transition: transform 0.35s var(--ease);
}
.nav__logo:hover .logo-mark { background-image: url("assets/logo-red.png"); transform: rotate(-4deg) scale(1.08); }

.nav__links { display: flex; align-items: center; gap: 2px; }
.nav__links a {
  position: relative; font-size: 0.92rem; color: var(--muted);
  padding: 9px 16px; border-radius: 100px; line-height: 1;
  transition: color 0.3s var(--ease), background 0.3s var(--ease);
}
.nav__links a:not(.nav__cv):hover { color: var(--text); background: rgba(244, 244, 240, 0.09); }
.nav__links a.is-current:not(.nav__cv) { color: var(--text); background: rgba(244, 244, 240, 0.07); }

/* texte qui défile (roll) au survol */
.nav__rl { display: inline-block; overflow: hidden; vertical-align: bottom; }
.nav__rl > span { display: block; position: relative; transition: transform 0.42s var(--ease); }
.nav__rl > span::after { content: attr(data-text); position: absolute; left: 0; top: 100%; color: var(--accent); }
.nav__links a:hover .nav__rl > span { transform: translateY(-100%); }

.nav__cv {
  margin-left: 6px;
  border: 1px solid var(--line-2); padding: 9px 20px; border-radius: 100px;
  color: var(--text) !important;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.nav__cv:hover { background: var(--accent); color: var(--accent-ink) !important; border-color: var(--accent); }

.nav__burger { display: none; flex-direction: column; gap: 6px; width: 28px; }
.nav__burger span { height: 2px; width: 100%; background: var(--text); transition: transform 0.35s var(--ease), opacity 0.3s; }
.nav__burger.is-open span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100svh;
  max-width: none; width: 100%;
  padding: 0 clamp(28px, 5vw, 88px);
  position: relative;
  display: flex; align-items: center; justify-content: flex-start;
  text-align: left;
}
.hero__top {
  position: absolute; top: clamp(96px, 14vh, 150px);
  left: var(--pad); right: var(--pad);
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.hero__eyebrow {
  font-family: var(--font-display);
  font-size: 0.82rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--faint);
}
.hero__eyebrow--right { color: var(--muted); }

.hero__center { display: flex; flex-direction: column; align-items: flex-start; max-width: min(58%, 760px); }
.hero__logo {
  display: block;
  aspect-ratio: 194.82 / 313.76;
  height: clamp(120px, 22vh, 238px);
  margin-bottom: clamp(20px, 3.5vh, 40px);
  background: url("assets/logo.png") center / contain no-repeat;
}
.hero__title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(3.6rem, 14vw, 9.5rem);
  line-height: 0.92; letter-spacing: -0.04em;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero__title .word { display: inline-block; }

.hero__role {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1rem, 2.4vw, 1.7rem);
  margin-top: 16px;
  display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap;
}
.hero__sep { color: var(--accent); }
.hero__tag { max-width: 46ch; margin: 22px auto 0; color: var(--muted); font-size: clamp(0.98rem, 1.3vw, 1.12rem); }
.hero__cta {
  position: absolute; z-index: 2; margin: 0;
  right: clamp(28px, 5vw, 88px); bottom: clamp(44px, 9vh, 96px);
  display: flex; gap: 14px;
}

/* Showreel en fond du hero */
.hero__media { position: absolute; top: 0; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%); z-index: 0; overflow: hidden; }
.hero__center { position: relative; z-index: 2; }
.hero__top { z-index: 2; }   /* garde son position:absolute (coins en haut) */
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.78; }
.hero__ph {
  position: absolute; inset: 0;
  background:
    radial-gradient(70% 55% at 50% 38%, rgba(255, 51, 38, 0.12), transparent 70%),
    linear-gradient(160deg, var(--bg-elev) 0%, var(--bg) 60%);
  display: flex; align-items: flex-end; justify-content: center; padding-bottom: 30px;
}
.hero__ph span { font-family: var(--font-display); font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(8,8,9,0.94) 0%, rgba(8,8,9,0.78) 28%, rgba(8,8,9,0.32) 58%, rgba(8,8,9,0.05) 100%),
    linear-gradient(180deg, transparent 0%, transparent 62%, rgba(8,8,9,0.45) 84%, rgba(8,8,9,0.78) 100%);
}

.btn {
  font-family: var(--font-display); font-weight: 500; font-size: 0.98rem;
  padding: 16px 32px; border-radius: 100px;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
  white-space: nowrap;
}
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: #ff5a4d; }
.btn--ghost { border: 1px solid var(--line-2); color: var(--text); }
.btn--ghost:hover { background: var(--text); color: var(--bg); border-color: var(--text); }

.hero__scroll {
  position: absolute; left: 50%; bottom: 40px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.hero__scroll-dot {
  width: 24px; height: 40px; border: 1px solid var(--line-2); border-radius: 100px;
  position: relative;
}
.hero__scroll-dot::after {
  content: ""; position: absolute; left: 50%; top: 8px; margin-left: -2px;
  width: 4px; height: 8px; border-radius: 2px; background: var(--accent);
  animation: scrolldot 1.8s var(--ease) infinite;
}
.hero__scroll-txt { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--faint); }
@keyframes scrolldot { 0%{transform:translateY(0);opacity:1} 70%{transform:translateY(16px);opacity:0} 100%{opacity:0} }

/* Hero — version inspirée d'une réf premium : surtitre, titre 2 tons,
   badge « disponible » pulsant (rouge), bouton rond « démo reel ». */
.hero__eyebrow--top { display: block; margin-bottom: clamp(16px, 3vh, 30px); color: var(--muted); }
.hero__title--big { font-size: clamp(2.7rem, 9vw, 7rem); text-transform: uppercase; }
.hero__title .word--muted { color: var(--muted); }

.hero__status {
  position: absolute; top: clamp(96px, 14vh, 150px); right: var(--pad); z-index: 2;
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-display); font-size: 0.76rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted);
}
.hero__dot {
  width: 9px; height: 9px; border-radius: 50%; background: var(--accent); flex: none;
  box-shadow: 0 0 0 0 rgba(255, 51, 38, 0.55); animation: heroPulse 2.2s ease-out infinite;
}
@keyframes heroPulse {
  0%   { box-shadow: 0 0 0 0 rgba(255, 51, 38, 0.5); }
  70%  { box-shadow: 0 0 0 11px rgba(255, 51, 38, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 51, 38, 0); }
}

.hero__reel {
  position: relative; display: inline-grid; place-items: center; gap: 5px;
  width: clamp(132px, 15vw, 168px); aspect-ratio: 1; border-radius: 50%;
  border: 1px solid var(--line-2); color: var(--text);
  font-family: var(--font-display); font-size: clamp(0.8rem, 1vw, 0.92rem);
  letter-spacing: 0.04em; line-height: 1.25; text-transform: uppercase; text-align: center;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
}
.hero__reel:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.hero__reel-arrow { font-size: 1.05em; }
@media (prefers-reduced-motion: reduce) { .hero__dot { animation: none; } }

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: clamp(18px, 2.4vw, 34px) 0; overflow: hidden; white-space: nowrap;
}
.marquee__track {
  display: inline-flex; align-items: center; gap: 40px; will-change: transform;
}
.marquee__track span {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.6rem, 5vw, 4rem); letter-spacing: -0.02em;
}
.marquee__track i { color: var(--accent); font-style: normal; font-size: clamp(1rem, 2.4vw, 2rem); }
.marquee--xl { padding: clamp(30px, 5vw, 72px) 0; border-top: none; }
.marquee--xl .marquee__track span { font-size: clamp(2.4rem, 9vw, 8rem); }
.marquee--xl .marquee__track i { font-size: clamp(1.4rem, 4vw, 3rem); }

/* Pastille de statut « disponible » */
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-right: 9px; vertical-align: middle; position: relative; }
.status-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--accent); animation: pulse 2.2s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: 0.7; } 100% { transform: scale(3.2); opacity: 0; } }

/* ============================================================
   MEDIA PLACEHOLDERS
   ============================================================ */
.media-placeholder {
  position: relative; width: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  background: linear-gradient(135deg, var(--bg-elev) 0%, var(--bg-elev-2) 100%);
  border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--faint); text-align: center; overflow: hidden;
}
.media-placeholder::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.05) 50%, transparent 70%);
  background-size: 200% 100%; animation: shimmer 3.4s linear infinite;
}
@keyframes shimmer { from{background-position:200% 0} to{background-position:-200% 0} }
.media-placeholder[data-ratio="16/9"] { aspect-ratio: 16/9; }
.media-placeholder[data-ratio="4/3"]  { aspect-ratio: 4/3; }
.media-placeholder[data-ratio="1/1"]  { aspect-ratio: 1/1; }
.media-placeholder[data-ratio="4/5"]  { aspect-ratio: 4/5; }
.media-placeholder[data-ratio="3/4"]  { aspect-ratio: 3/4; }
.media-placeholder__label { font-family: var(--font-display); font-size: 0.9rem; color: var(--muted); z-index: 1; }
.media-placeholder__hint  { font-size: 0.76rem; color: var(--faint); z-index: 1; }

/* ============================================================
   SHOWREEL
   ============================================================ */
.reel__frame {
  position: relative; border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 50px 120px -50px rgba(0,0,0,0.9);
}
.reel__frame iframe, .reel__video { width: 100%; aspect-ratio: 16/9; border: 0; }
.reel__frame { transform-origin: center center; will-change: transform; }
.play {
  z-index: 2; width: 88px; height: 88px; border-radius: 50%;
  background: var(--accent); display: grid; place-items: center; margin-bottom: 10px;
  transition: transform 0.4s var(--ease);
}
.reel__frame:hover .play { transform: scale(1.1); }
.play span {
  width: 0; height: 0; border-left: 24px solid var(--accent-ink);
  border-top: 14px solid transparent; border-bottom: 14px solid transparent; margin-left: 6px;
}

/* ============================================================
   TRAVAUX
   ============================================================ */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: clamp(32px, 5vw, 64px); }
.filter {
  font-family: var(--font-display); font-size: 0.92rem;
  padding: 10px 22px; border-radius: 100px; border: 1px solid var(--line-2);
  color: var(--muted); transition: color 0.3s, background 0.3s, border-color 0.3s;
}
.filter sup { font-size: 0.62em; color: var(--accent); margin-left: 2px; }
.filter:hover { color: var(--text); }
.filter.is-active { background: var(--text); color: var(--bg); border-color: var(--text); }
.filter.is-active sup { color: var(--bg); opacity: 0.6; }

/* Galerie masonry : chaque visuel garde son format naturel (idéal pour des illustrations) */
.grid {
  column-count: 3;
  column-gap: clamp(16px, 2vw, 28px);
}
.project {
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  display: inline-block; width: 100%;
  margin: 0 0 clamp(18px, 2.4vw, 30px);
  cursor: pointer;
  transition: opacity 0.45s ease;
}
.project--feature { column-span: all; }   /* (optionnel) un visuel en pleine largeur */
.project__thumb {
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; position: relative; background: var(--bg-elev);
}
.project__media { display: block; transition: transform 0.9s var(--ease); }
.project__media img, .project__media video { width: 100%; height: auto; display: block; }
video.project__media { width: 100%; height: auto; display: block; }
.project:hover .project__media { transform: scale(1.04); }
/* effet galerie : on atténue les autres au survol */
.grid:hover .project:not(:hover) { opacity: 0.5; }

.project__cap {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 14px; padding: 14px 2px 0;
}
.project__title {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.02rem, 1.5vw, 1.3rem); letter-spacing: -0.01em; line-height: 1.12;
  transition: color 0.3s;
}
.project:hover .project__title { color: var(--accent); }
.project__cat { font-size: 0.8rem; color: var(--muted); white-space: nowrap; flex: none; }
.project.is-hidden { display: none; }

@media (max-width: 1000px) { .grid { column-count: 2; } }
@media (max-width: 600px)  { .grid { column-count: 1; } }

/* ============================================================
   À PROPOS
   ============================================================ */
.u-sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.about__grid {
  display: grid; grid-template-columns: 1.4fr 1fr;
  gap: clamp(40px, 6vw, 100px); align-items: start;
}
.about__lead {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.4rem, 3vw, 2.4rem); line-height: 1.25; letter-spacing: -0.02em;
  margin-bottom: 28px;
}
.about__text p:not(.about__lead) { color: var(--muted); margin-bottom: 18px; max-width: 54ch; font-size: 1.05rem; }
.about__photo {
  border-radius: var(--radius); aspect-ratio: 3 / 4; overflow: hidden;
  border: 1px solid var(--line); background: var(--bg-elev); position: relative;
}
.about__photo img {
  position: absolute; left: 0; top: -9%; width: 100%; height: 118%;
  object-fit: cover; object-position: center; display: block;
}

.skills { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: clamp(48px, 7vw, 96px); padding-top: clamp(36px, 5vw, 60px); border-top: 1px solid var(--line); }
.skills h3 { font-family: var(--font-display); font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); margin-bottom: 18px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font-size: 0.88rem; padding: 8px 16px; border-radius: 100px; border: 1px solid var(--line); background: var(--bg-elev); }
.tags--soft li { color: var(--muted); background: transparent; }

/* Parcours (expérience + formation) */
.resume {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
  margin-top: clamp(40px, 6vw, 72px); padding-top: clamp(32px, 4vw, 56px);
  border-top: 1px solid var(--line);
}
.resume h3 { font-family: var(--font-display); font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); margin-bottom: 20px; }
.resume__list { display: flex; flex-direction: column; gap: 22px; }
.resume__list li { display: grid; gap: 3px; }
.resume__date { font-family: var(--font-display); font-size: 0.82rem; color: var(--accent); }
.resume__role { font-family: var(--font-display); font-size: 1.02rem; color: var(--text); }
.resume__role em { font-style: normal; color: var(--muted); font-size: 0.86em; }
.resume__org { font-size: 0.9rem; color: var(--faint); }
.resume__lang { grid-column: 1 / -1; margin-top: 6px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 0.9rem; color: var(--muted); }

.contact__loc { font-family: var(--font-display); font-size: clamp(1rem, 1.6vw, 1.3rem); color: var(--faint); }
@media (max-width: 720px) { .resume { grid-template-columns: 1fr; gap: 28px; } }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { text-align: center; }
.contact__lead { font-family: var(--font-display); color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.3rem); margin-bottom: 18px; }
.contact__mail {
  display: inline-block; font-family: var(--font-display); font-weight: 600;
  font-size: clamp(3rem, 14vw, 13rem); line-height: 0.92; letter-spacing: -0.04em;
  transition: color 0.4s;
}
.contact__mail:hover { color: var(--accent); }
.contact__email {
  display: inline-block; margin-top: 32px; font-family: var(--font-display);
  font-size: clamp(1rem, 2.4vw, 1.6rem); color: var(--muted);
  border-bottom: 1px solid var(--line-2); padding-bottom: 6px; transition: color 0.3s, border-color 0.3s;
}
.contact__email:hover { color: var(--accent); border-color: var(--accent); }
.contact__reveal {
  display: inline-block; margin-top: 32px; font-family: var(--font-display);
  font-size: clamp(1rem, 2.2vw, 1.4rem); color: var(--muted);
  border: 1px solid var(--line-2); padding: 13px 28px; border-radius: 100px;
  transition: color 0.3s, border-color 0.3s, background 0.3s;
}
.contact__reveal:hover { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.contact__links {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 36px;
  margin-top: clamp(48px, 7vw, 90px); padding-top: 40px; border-top: 1px solid var(--line);
}
.contact__links a { font-family: var(--font-display); font-size: clamp(1rem, 1.6vw, 1.3rem); color: var(--muted); transition: color 0.3s; }
.contact__links a span { color: var(--accent); display: inline-block; transition: transform 0.3s var(--ease); }
.contact__links a:hover { color: var(--text); }
.contact__links a:hover span { transform: translate(3px, -3px); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  max-width: var(--maxw); margin: 0 auto; padding: 36px var(--pad) 44px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  color: var(--faint); font-size: 0.88rem;
}
.footer__brand { display: inline-flex; align-items: center; gap: 9px; }
.footer__logo {
  display: inline-block; width: 12px; height: 19px; flex: none;
  background: url("assets/logo.png") center / contain no-repeat;
  opacity: 0.5;
}
.footer__mid { color: var(--muted); }
.footer__top { transition: color 0.3s; }
.footer__top:hover { color: var(--accent); }

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed; inset: 0; z-index: 800; background: rgba(6,6,7,0.96);
  backdrop-filter: blur(10px); display: none; align-items: center; justify-content: center; padding: 5vw;
}
.lightbox.is-open { display: flex; }
.lightbox__content { max-width: 1200px; width: 100%; }
.lightbox__content img, .lightbox__content video { width: 100%; border-radius: var(--radius); max-height: 86vh; object-fit: contain; }
.lightbox__close {
  position: absolute; top: 28px; right: var(--pad); font-family: var(--font-display);
  font-size: 1.1rem; color: var(--muted); transition: color 0.3s;
}
.lightbox__close:hover { color: var(--text); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__side { max-width: 440px; }
}
@media (max-width: 720px) {
  .hero__title { font-size: clamp(2.6rem, 12vw, 4.5rem); }
  .hero__title--big { font-size: clamp(2.2rem, 11vw, 3.9rem); }
  .hero__status { display: none; }
  .hero__center { max-width: 100%; }
  .hero__cta { position: static; transform: none; top: auto; left: auto; margin-top: 32px; }
  .hero__scrim {
    background:
      linear-gradient(180deg, rgba(8,8,9,0.55) 0%, rgba(8,8,9,0.42) 45%, rgba(8,8,9,0.8) 100%);
  }
  .hero__logo { height: clamp(100px, 18vh, 170px); }
  .skills { grid-template-columns: 1fr; gap: 28px; }
  .nav__links {
    position: fixed; inset: 0 0 0 auto; width: min(82vw, 360px);
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 30px;
    padding: 0 var(--pad); background: var(--bg-elev); border-left: 1px solid var(--line);
    transform: translateX(100%); transition: transform 0.5s var(--ease);
  }
  .nav__links.is-open { transform: translateX(0); }
  .nav__links a { font-size: 1.4rem; color: var(--text); }
  .nav__burger { display: flex; z-index: 101; }
  html.has-cursor, html.has-cursor a, html.has-cursor button { cursor: auto; }
  .cursor { display: none !important; }
}

/* Préférence : mouvement réduit */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  html.has-gsap [data-reveal] { opacity: 1 !important; }
  .grain, .webgl { display: none; }
}

/* ============================================================
   PAGE PROJET (case study)
   ============================================================ */
.case { max-width: 1120px; margin: 0 auto; padding: clamp(120px, 16vh, 190px) var(--pad) clamp(60px, 10vw, 120px); }
.case__back {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); color: var(--muted); font-size: 0.95rem;
  margin-bottom: clamp(28px, 5vw, 56px); transition: color 0.3s, gap 0.3s var(--ease);
}
.case__back:hover { color: var(--accent); gap: 12px; }
.case__cat { font-family: var(--font-display); color: var(--accent); font-size: 0.9rem; letter-spacing: 0.04em; }
.case__title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2.4rem, 7vw, 5rem); letter-spacing: -0.03em; line-height: 1; margin-top: 10px;
}
.case__lead { margin-top: 22px; max-width: 60ch; color: var(--muted); font-size: clamp(1.05rem, 1.5vw, 1.25rem); }
.case__cover { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: clamp(30px, 5vw, 60px) 0; background: var(--bg-elev); }
.case__cover img { width: 100%; height: auto; display: block; }
/* Lecteur vidéo embarqué (YouTube/Vimeo) : ratio 16/9 responsive */
.case__video {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  margin: clamp(30px, 5vw, 60px) 0; background: #000;
  aspect-ratio: 16 / 9;
}
.case__video iframe, .case__video video { width: 100%; height: 100%; display: block; border: 0; object-fit: cover; background: #000; }
/* Affiche / key art : visuel portrait centré (ne remplit pas toute la largeur) */
.case__poster {
  max-width: 460px; margin: clamp(30px, 5vw, 60px) auto;
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: var(--bg-elev);
}
.case__poster img { width: 100%; height: auto; display: block; }
/* titre de section média hors colonne (ex. « Le teaser du film ») */
.case__media-title {
  font-family: var(--font-display); font-size: 0.78rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--faint);
  margin: clamp(36px, 6vw, 64px) 0 16px;
}
/* figure légendée (planches, sheets) */
.case__fig { margin: clamp(20px, 3vw, 32px) 0; }
.case__fig img {
  width: 100%; height: auto; display: block;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-elev);
}
.case__fig figcaption { margin-top: 10px; text-align: center; color: var(--faint); font-size: 0.82rem; }
/* vidéo inline dans une figure (paysage par défaut) */
.case__fig video {
  width: 100%; height: auto; display: block;
  border: 1px solid var(--line); border-radius: var(--radius); background: #000;
}
/* média centré non pleine largeur (carré / portrait) */
.case__fig--center { text-align: center; }
.case__fig--center img, .case__fig--center video { width: auto; max-width: 100%; margin: 0 auto; }
.case__fig--square img, .case__fig--square video { max-width: min(100%, 640px); }
.case__fig--portrait video { max-width: min(100%, 430px); max-height: 80vh; }
/* deux médias côte à côte */
.case__duo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2.4vw, 28px); margin: clamp(20px, 3vw, 32px) 0; align-items: start; }
.case__duo > * { margin: 0; }
@media (max-width: 760px) { .case__duo { grid-template-columns: 1fr; } }
/* deux médias sur la même ligne (paysage + portrait), bords alignés.
   flex-grow proportionnel au ratio (16/9 et 9/16) → hauteurs identiques. */
.case__row { display: flex; gap: clamp(16px, 2.5vw, 28px); align-items: flex-start; margin: clamp(20px, 3vw, 32px) 0; }
.case__row > figure { margin: 0; }
.case__row__h { flex: 1.778 1 0; min-width: 0; }
.case__row__v { flex: 0.5625 1 0; min-width: 0; }
.case__row__h video, .case__row__v video { width: 100%; height: auto; }
@media (max-width: 760px) {
  .case__row { flex-direction: column; align-items: center; }
  .case__row__h, .case__row__v { flex: none; width: 100%; }
  .case__row__v { max-width: 320px; }
}
.case__fig figcaption a { color: var(--accent); text-decoration: none; }
.case__fig figcaption a:hover { text-decoration: underline; }
/* page web embarquée (iframe d'un exemple HTML) — format 16:9 */
.case__embed {
  position: relative; aspect-ratio: 16 / 9;
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: var(--bg-elev);
}
.case__embed iframe { width: 100%; height: 100%; border: 0; display: block; }
/* figure élargie : déborde la colonne de texte (centrée sur la page) */
.case__fig--wide {
  width: min(94vw, 1440px);
  margin-left: calc(50% - min(94vw, 1440px) / 2);
}
.case__intro { color: var(--muted); max-width: 60ch; margin: 0 0 6px; font-size: 1.06rem; line-height: 1.7; }

/* Comparateur avant / après DÉFILABLE
   (cadre à hauteur fixe, scroll interne dans les maquettes pleine page,
   poignée à glisser pour le fondu avant/après) */
.compare { margin: clamp(30px, 5vw, 60px) 0; }
.compare__frame {
  position: relative; overflow-y: auto; overflow-x: hidden;
  height: clamp(440px, 72vh, 880px);
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg-elev); --pos: 50%;
  scrollbar-width: thin; scrollbar-color: var(--accent) transparent;
}
.compare__frame::-webkit-scrollbar { width: 8px; }
.compare__frame::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 100px; }
.compare__scroller { position: relative; width: 100%; }
.compare__sticky { position: sticky; top: 0; width: 100%; overflow: hidden; }
.compare__pane { position: absolute; inset: 0; overflow: hidden; }
.compare__pane img {
  position: absolute; top: 0; left: 0; width: 100%; height: auto;
  display: block; will-change: transform; user-select: none; -webkit-user-drag: none;
}
.compare__after  { z-index: 0; }
/* l'image « avant » est révélée de la gauche jusqu'à la poignée */
.compare__before { z-index: 1; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
/* poignée : ligne pleine hauteur + pastille, zone de préhension large */
.compare__handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 40px;
  transform: translateX(-50%); z-index: 4; cursor: ew-resize; touch-action: none;
  display: grid; place-items: center;
}
.compare__handle::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 50%;
  width: 2px; transform: translateX(-50%); background: var(--accent);
}
.compare__handle span {
  position: relative; width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent); color: #fff; display: grid; place-items: center;
  font-size: 1.1rem; box-shadow: 0 4px 18px rgba(0,0,0,0.35);
}
.compare__label {
  position: absolute; bottom: 14px; z-index: 4; pointer-events: none;
  font-family: var(--font-display); font-size: 0.72rem; letter-spacing: 0.12em;
  text-transform: uppercase; padding: 5px 12px; border-radius: 100px;
  background: rgba(0,0,0,0.55); color: #fff; backdrop-filter: blur(6px);
}
.compare__label--before { left: 14px; }
.compare__label--after  { right: 14px; }
.compare__note { margin-top: 12px; text-align: center; color: var(--faint); font-size: 0.85rem; }
.case__grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: start; }
.case__body p { color: var(--muted); margin-bottom: 18px; max-width: 60ch; font-size: 1.06rem; line-height: 1.7; }
.case__body h3, .case__meta h3 {
  font-family: var(--font-display); font-size: 0.78rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--faint); margin: 30px 0 14px;
}
.case__body h3:first-child { margin-top: 0; }
.case__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.case__tags li { font-size: 0.84rem; padding: 7px 15px; border-radius: 100px; border: 1px solid var(--line); color: var(--text); background: var(--bg-elev); }
.case__meta { position: sticky; top: 110px; }
.case__meta .row { display: flex; justify-content: space-between; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.case__meta .row:first-of-type { border-top: 1px solid var(--line); }
.case__meta dt { font-family: var(--font-display); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }
.case__meta dd { text-align: right; color: var(--text); font-size: 0.95rem; }
.case__meta dd .accent { color: var(--accent); }
.case__cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: clamp(44px, 7vw, 84px); padding-top: clamp(28px, 4vw, 48px); border-top: 1px solid var(--line); }
@media (max-width: 820px) {
  .case__grid { grid-template-columns: 1fr; gap: 36px; }
  .case__meta { position: static; }
}
