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

:root {
  --bg:        #080808;
  --bg2:       #0f0f0f;
  --bg3:       #141414;
  --border:    rgba(255,255,255,0.06);
  --border2:   rgba(255,255,255,0.12);
  --text:      rgba(255,255,255,0.88);
  --text-muted: rgba(255,255,255,0.35);
  --text-dim:  rgba(255,255,255,0.18);
  --amber:     #BA7517;
  --amber-bg:  rgba(239,159,39,0.12);
  --amber-br:  rgba(239,159,39,0.22);
  --blue:      #378ADD;
  --blue-bg:   rgba(55,138,221,0.12);
  --blue-br:   rgba(55,138,221,0.22);
  --radius:    6px;
  --nav-h:     56px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* NAV */
.nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  height: var(--nav-h); padding: 0 32px;
  background: rgba(8,8,8,0.92);
  border-bottom: 0.5px solid var(--border);
  backdrop-filter: blur(12px);
}
.nav-logo-img { height: 28px; width: auto; display: block; filter: brightness(0.85); }
.nav-logo { text-decoration: none; }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { font-size: 12px; color: var(--text-muted); text-decoration: none; letter-spacing: 0.04em; transition: color 0.15s; }
.nav-links a:hover { color: var(--text); }
.nav-cta { border: 0.5px solid var(--border2) !important; padding: 5px 14px !important; border-radius: 99px !important; color: rgba(255,255,255,0.55) !important; }
.nav-cta:hover { color: var(--text) !important; background: rgba(255,255,255,0.04); }
.nav-burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-burger span { display: block; width: 22px; height: 1.5px; background: var(--text-muted); }

/* HERO — fond uni, pas de grille */
.hero {
  background: var(--bg);
  padding: 64px 32px 52px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.hero-grid-bg { display: none; }
.hero-eyebrow { font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 14px; }
.hero-title { font-size: clamp(28px, 5vw, 48px); font-weight: 500; color: #fff; letter-spacing: 0.01em; line-height: 1.1; }
.hero-sub { font-size: 13px; color: var(--text-muted); margin-top: 10px; letter-spacing: 0.06em; }

.reel-wrap {
  width: 100%; max-width: 720px; margin: 36px auto 0;
  border-radius: var(--radius); overflow: hidden;
  border: 0.5px solid var(--border2); background: var(--bg3);
  aspect-ratio: 16/9;
}
.reel-wrap iframe, .reel-wrap video { width: 100%; height: 100%; border: none; display: block; }
.reel-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--text-dim); font-size: 12px; }

/* SECTION HEADERS */
.section-label { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-dim); }
.section-count { font-size: 10px; color: rgba(255,255,255,0.14); }
.work-header { display: flex; justify-content: space-between; align-items: baseline; padding: 32px 32px 20px; border-bottom: 0.5px solid var(--border); margin-bottom: 24px; }

/* GRID — vignettes sans texte */
.work { background: var(--bg); }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 8px;
  padding: 0 32px 40px;
}

.card {
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  background: var(--bg2);
  border: none;
}

/* Zoom au hover — pas d'overlay, pas de play */
.card-thumb {
  position: relative; width: 100%;
  aspect-ratio: 2/3; overflow: hidden;
}
.card-thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}
.card:hover .card-thumb img { transform: scale(1.06); }

/* Cacher tout ce qui n'est pas l'image */
.card-thumb-empty { width: 100%; height: 100%; background: var(--bg3); }
.card-overlay { display: none; }

/* Badge discret en haut à gauche */
.badge {
  position: absolute; top: 7px; left: 7px; z-index: 2;
  font-size: 9px; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 2px 8px; border-radius: 99px; font-weight: 500; pointer-events: none;
}
.badge-major    { background: var(--amber-bg); color: var(--amber); border: 0.5px solid var(--amber-br); }
.badge-upcoming { background: var(--blue-bg);  color: var(--blue);  border: 0.5px solid var(--blue-br); }

/* OUTILS */
.tools { background: var(--bg); border-top: 0.5px solid var(--border); }
.tools-list { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 32px 36px; }
.tool-pill { font-size: 12px; padding: 5px 14px; border-radius: 99px; border: 0.5px solid var(--border2); color: var(--text-muted); }

/* CONTACT */
.contact { background: var(--bg); border-top: 0.5px solid var(--border); }
.contact-inner { padding: 0 32px 40px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.contact-links { display: flex; gap: 12px; flex-wrap: wrap; }
.contact-link { display: flex; align-items: center; gap: 8px; padding: 8px 16px; border: 0.5px solid var(--border2); border-radius: var(--radius); color: var(--text-muted); text-decoration: none; font-size: 12px; transition: color 0.15s, border-color 0.15s; }
.contact-link:hover { color: var(--text); border-color: rgba(255,255,255,0.25); }
.contact-link-icon { font-size: 11px; font-weight: 600; color: var(--text-dim); }
.cv-download { display: flex; align-items: center; gap: 8px; padding: 10px 20px; border: 0.5px solid var(--border2); border-radius: var(--radius); color: var(--text); text-decoration: none; font-size: 12px; letter-spacing: 0.04em; transition: background 0.15s; }
.cv-download:hover { background: rgba(255,255,255,0.04); }

/* FOOTER */
.footer { background: var(--bg); border-top: 0.5px solid var(--border); padding: 20px 32px; display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: var(--text-dim); }

/* MODALE */
.modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.85); z-index: 200; display: flex; align-items: center; justify-content: center; padding: 24px; opacity: 0; pointer-events: none; transition: opacity 0.22s; }
.modal-backdrop.open { opacity: 1; pointer-events: all; }
.modal { background: #111; border: 0.5px solid rgba(255,255,255,0.1); border-radius: 10px; width: 100%; max-width: 820px; max-height: 88vh; overflow-y: auto; position: relative; transform: translateY(16px); transition: transform 0.22s; }
.modal-backdrop.open .modal { transform: translateY(0); }
.modal-close { position: sticky; top: 0; float: right; margin: 16px 16px 0 0; background: rgba(255,255,255,0.06); border: 0.5px solid var(--border2); border-radius: 50%; width: 32px; height: 32px; color: var(--text-muted); font-size: 14px; cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 10; transition: background 0.15s; }
.modal-close:hover { background: rgba(255,255,255,0.12); color: var(--text); }
.modal-inner { display: grid; grid-template-columns: 180px 1fr; gap: 0; padding: 24px; clear: both; }
.modal-left { padding-right: 24px; }
.modal-poster { width: 100%; aspect-ratio: 2/3; object-fit: cover; border-radius: 5px; border: 0.5px solid var(--border2); display: block; margin-bottom: 16px; background: var(--bg3); }
.modal-title { font-size: 15px; font-weight: 500; color: var(--text); margin-bottom: 5px; }
.modal-studio { font-size: 12px; color: var(--text-muted); margin-bottom: 3px; }
.modal-role { font-size: 12px; color: var(--text-dim); margin-bottom: 8px; }
.modal-badge { display: inline-block; font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase; padding: 2px 9px; border-radius: 99px; font-weight: 500; }
.modal-badge.badge-major { background: var(--amber-bg); color: var(--amber); border: 0.5px solid var(--amber-br); }
.modal-badge.badge-upcoming { background: var(--blue-bg); color: var(--blue); border: 0.5px solid var(--blue-br); }
.modal-desc { font-size: 13px; color: var(--text-muted); line-height: 1.7; border-top: 0.5px solid var(--border); padding-top: 14px; margin-top: 14px; }
.modal-right { border-left: 0.5px solid var(--border); padding-left: 24px; }
.modal-clips-label { font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 16px; }
.modal-clips { display: flex; flex-direction: column; gap: 12px; }
.modal-no-clips { font-size: 13px; color: var(--text-dim); }
.clip-item { background: var(--bg3); border-radius: var(--radius); overflow: hidden; border: 0.5px solid var(--border); }
.clip-label { font-size: 12px; color: var(--text-muted); padding: 8px 12px; border-bottom: 0.5px solid var(--border); }
.clip-video-wrap { aspect-ratio: 16/9; position: relative; }
.clip-video-wrap iframe, .clip-video-wrap video { width: 100%; height: 100%; border: none; display: block; }

/* RESPONSIVE */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: var(--nav-h); left: 0; right: 0; background: var(--bg); border-bottom: 0.5px solid var(--border); padding: 16px 32px; gap: 16px; }
  .nav-burger { display: flex; }
  .hero { padding: 40px 20px 36px; }
  .grid { grid-template-columns: repeat(3, 1fr); padding: 0 16px 32px; gap: 6px; }
  .work-header { padding: 20px 16px 14px; }
  .tools-list { padding: 0 16px 24px; }
  .contact-inner { padding: 0 16px 28px; flex-direction: column; align-items: flex-start; }
  .footer { padding: 16px 20px; flex-direction: column; gap: 6px; text-align: center; }
  .modal-inner { grid-template-columns: 1fr; }
  .modal-left { padding-right: 0; padding-bottom: 20px; }
  .modal-right { border-left: none; border-top: 0.5px solid var(--border); padding-left: 0; padding-top: 20px; }
}

/* ── Overrides finaux ─────────────────────────────────────────────────────── */
.badge { display: none !important; }
.tools { display: none !important; }
.hero-sub { display: none !important; }
.hero-eyebrow { display: none !important; }
.hero-eyebrow { display: block !important; font-size: 13px !important; letter-spacing: 0.06em !important; color: rgba(255,255,255,0.45) !important; text-transform: none !important; }











/* ── Max 7 colonnes ──────────────────────────────────────────────────────────── */
.grid {
  grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
  max-width: 100% !important;
}
@media (max-width: 1100px) { .grid { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; } }
@media (max-width: 768px)  { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; } }





/* ── Cacher work-header si vide ──────────────────────────────────────────────── */
.work-header { display: none; }

/* Logo studio */
#modalLogo { margin-top:14px; padding-top:10px; border-top:0.5px solid rgba(255,255,255,0.06); }
#modalLogo { margin-top:14px; padding-top:10px; border-top:0.5px solid rgba(255,255,255,0.06); }
#modalLogo img { height:24px; width:auto; max-width:130px; opacity:0.85; display:block; background:white; padding:4px 8px; border-radius:4px; }

/* ── ONGLETS ─────────────────────────────────────────────────────────────────── */
.tabs-bar {
  display: flex;
  gap: 0;
  border-bottom: 0.5px solid var(--border);
  background: var(--bg);
  padding: 0 32px;
}
.tab-btn {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  font-size: 13px;
  padding: 14px 20px;
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: color 0.15s, border-color 0.15s;
  font-family: inherit;
}
.tab-btn:hover { color: var(--text); }
.tab-btn.active { color: var(--text); border-bottom-color: rgba(255,255,255,0.6); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ── PERSONAL WORK ───────────────────────────────────────────────────────────── */
.personal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 24px;
  padding: 32px;
}
.wipe-card { display: flex; flex-direction: column; gap: 10px; }
.wipe-title { font-size: 12px; color: var(--text-muted); letter-spacing: 0.06em; text-transform: uppercase; }

/* Wipe slider */
.wipe-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: var(--radius);
  border: 0.5px solid var(--border2);
  cursor: col-resize;
  user-select: none;
}
.wipe-before {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  position: absolute; inset: 0;
}
.wipe-after {
  position: absolute; inset: 0;
  clip-path: inset(0 50% 0 0);
}
.wipe-after img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.wipe-handle {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: all;
  cursor: col-resize;
  z-index: 10;
}
.wipe-line {
  width: 2px;
  height: 100%;
  background: rgba(255,255,255,0.7);
}
.wipe-circle {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.wipe-circle::before { content: '◀'; font-size: 8px; color: #333; margin-right: 1px; }
.wipe-circle::after  { content: '▶'; font-size: 8px; color: #333; margin-left: 1px; }

/* Vidéo personal */
.wipe-video video {
  width: 100%; border-radius: var(--radius);
  border: 0.5px solid var(--border2);
  display: block;
}

/* ── Vignettes personal work ─────────────────────────────────────────────────── */
.personal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px;
  padding: 24px 32px;
}
.perso-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: var(--radius);
  border: 0.5px solid var(--border);
  cursor: pointer;
}
.perso-thumb img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.3s;
}
.perso-thumb:hover img { transform: scale(1.04); }
.perso-thumb-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0);
  display: flex; align-items: flex-end; padding: 10px;
  transition: background 0.2s;
}
.perso-thumb:hover .perso-thumb-overlay { background: rgba(0,0,0,0.4); }
.perso-thumb-overlay span {
  font-size: 12px; color: rgba(255,255,255,0);
  font-weight: 500; letter-spacing: 0.04em;
  transition: color 0.2s;
}
.perso-thumb:hover .perso-thumb-overlay span { color: #fff; }

.perso-video-card { display: flex; flex-direction: column; gap: 8px; }
.perso-video-card video { width: 100%; border-radius: var(--radius); border: 0.5px solid var(--border2); display: block; }

/* ── Modale wipe ─────────────────────────────────────────────────────────────── */
.wipe-modal {
  background: #111;
  border: 0.5px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  width: 100%;
  max-width: 1200px;
  padding: 20px;
  position: relative;
}
.wipe-modal-title {
  font-size: 13px; color: var(--text-muted);
  letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 14px; text-align: center;
}
.wipe-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: col-resize;
  user-select: none;
}
.wipe-before {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  position: absolute; inset: 0;
}
.wipe-after {
  position: absolute; inset: 0;
  clip-path: inset(0 50% 0 0);
}
.wipe-after img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wipe-handle {
  position: absolute; top: 0; bottom: 0; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center;
  cursor: col-resize; z-index: 10; pointer-events: all;
}
.wipe-line { width: 2px; height: 100%; background: rgba(255,255,255,0.8); }
.wipe-circle {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%;
  background: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.5);
  font-size: 10px; color: #333; font-weight: 600;
  letter-spacing: -1px;
}
.wipe-circle::before { content: '◀▶'; }
.wipe-labels {
  display: flex; justify-content: space-between;
  margin-top: 10px; font-size: 11px; color: var(--text-dim);
  letter-spacing: 0.06em;
}

/* ── Section vidéos personal work ────────────────────────────────────────────── */
.perso-video-card {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 16px;
  border-top: 0.5px solid var(--border);
}
.perso-video-card .wipe-title {
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.perso-video-card video {
  width: 100%;
  max-width: 720px;
  border-radius: var(--radius);
  border: 0.5px solid var(--border2);
  display: block;
}

/* ── Vidéos dans modale wipe ─────────────────────────────────────────────────── */
.wipe-videos { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.wipe-video-item { display: flex; flex-direction: column; gap: 6px; }
.wipe-video-label { font-size: 11px; color: var(--text-dim); letter-spacing: 0.08em; text-transform: uppercase; }
.wipe-video-item video { width: 100%; border-radius: var(--radius); border: 0.5px solid var(--border2); display: block; }

/* ── Onglets centrés bold ────────────────────────────────────────────────────── */
.tabs-bar {
  justify-content: center !important;
  padding: 0 !important;
  gap: 8px !important;
}
.tab-btn {
  font-weight: 600 !important;
  font-size: 14px !important;
  padding: 16px 32px !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
}

/* ── Vidéos modale wipe — taille réduite ─────────────────────────────────────── */
.wipe-video-item video { max-width: 75% !important; }
