/* ── NYGHT SERIF (locale) ── */
@font-face{font-family:'Nyght Serif';src:url('fonts/NyghtSerif-Light.woff2') format('woff2');font-weight:300;font-style:normal;font-display:swap}
@font-face{font-family:'Nyght Serif';src:url('fonts/NyghtSerif-LightItalic.woff2') format('woff2');font-weight:300;font-style:italic;font-display:swap}
@font-face{font-family:'Nyght Serif';src:url('fonts/NyghtSerif-Regular.woff2') format('woff2');font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:'Nyght Serif';src:url('fonts/NyghtSerif-RegularItalic.woff2') format('woff2');font-weight:400;font-style:italic;font-display:swap}
@font-face{font-family:'Nyght Serif';src:url('fonts/NyghtSerif-Medium.woff2') format('woff2');font-weight:500;font-style:normal;font-display:swap}
@font-face{font-family:'Nyght Serif';src:url('fonts/NyghtSerif-MediumItalic.woff2') format('woff2');font-weight:500;font-style:italic;font-display:swap}

/* ── WORK SANS (locale) — remplace Bebas Neue + DM Mono ── */
@font-face{font-family:'Work Sans';src:url('fonts/WorkSans-Light.woff2') format('woff2');font-weight:300;font-display:swap}
@font-face{font-family:'Work Sans';src:url('fonts/WorkSans-Regular.woff2') format('woff2');font-weight:400;font-display:swap}
@font-face{font-family:'Work Sans';src:url('fonts/WorkSans-Medium.woff2') format('woff2');font-weight:500;font-display:swap}
@font-face{font-family:'Work Sans';src:url('fonts/WorkSans-SemiBold.woff2') format('woff2');font-weight:600;font-display:swap}
@font-face{font-family:'Work Sans';src:url('fonts/WorkSans-Bold.woff2') format('woff2');font-weight:700;font-display:swap}
@font-face{font-family:'Work Sans';src:url('fonts/WorkSans-ExtraBold.woff2') format('woff2');font-weight:800;font-display:swap}
@font-face{font-family:'Work Sans';src:url('fonts/WorkSans-Black.woff2') format('woff2');font-weight:900;font-display:swap}

/* Gros titres désormais en Nyght Serif (casse naturelle, façon réf) ; le 404 reste en capitales */
.code{text-transform:uppercase;letter-spacing:0}

.highlight-red { color: #8b2fc9; }
.hero-title span:nth-child(3) { color: #8b2fc9; }


/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img { -webkit-user-drag: none; user-select: none; }

/* ── VARIABLES ── */
:root {
  --bg: #000000;
  --paper: #141414;
  --line: #2a2a2a;
  --accent: #8b2fc9;
  --text: #ffffff;
  --muted: #6b6760;
  --serif: 'DM Serif Display', Georgia, serif;
  --mono: 'Work Sans', sans-serif;
}

/* ── BASE ── */
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--mono);
  min-height: 100vh;
  overflow-x: clip;
}

/* Lenis (smooth scroll) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-smooth iframe { pointer-events: none; }


/* ── LAYOUT ── */
.wrapper {
  max-width: 960px;
  margin: 0 auto;
  padding: 60px 40px 100px;
  position: relative;
  z-index: 1;
}

/* ── HEADER ── */
header {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 40px;
  align-items: end;
  border-bottom: 1px solid var(--line);
  padding-bottom: 48px;
  margin-bottom: 64px;
  animation: fadeUp .8s ease both;
}

.header-text { display: flex; flex-direction: column; gap: 12px; }

.eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--accent);
}

h1.name {
  font-family: var(--serif);
  font-size: clamp(48px, 8vw, 80px);
  font-weight: 400;
  line-height: .95;
}
h1.name em { font-style: italic; color: var(--accent); }

.tagline {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: .05em;
  margin-top: 4px;
}

.contact-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 12px;
  color: var(--muted);
  margin-top: 16px;
  width: fit-content;
  text-decoration: none;
  transition: border-color .2s, color .2s;
}
.contact-chip:hover { border-color: var(--text); }
.contact-chip::before { content: '✉'; font-size: 11px; }

/* ── PHOTO ── */
.photo-frame { position: relative; width: 180px; height: 220px; }
.photo-frame::before {
  content: '';
  position: absolute;
  inset: -8px -8px 8px 8px;
  border: 1px solid var(--accent);
  border-radius: 4px;
  z-index: 0;
}
.photo-frame img {
  position: relative; z-index: 1;
  width: 100%; height: 100%;
  object-fit: cover; border-radius: 4px;
  filter: grayscale(10%) contrast(1.05);
}
.photo-placeholder {
  position: relative; z-index: 1;
  width: 100%; height: 100%;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 8px;
  color: var(--muted); font-size: 11px; letter-spacing: .1em;
}
.photo-placeholder .icon { font-size: 32px; opacity: .4; }

/* ── SECTION LABEL ── */
.section-label {
  display: flex; align-items: center; gap: 12px; margin-bottom: 36px;
}
.section-label span {
  font-size: 10px; font-weight: 500;
  letter-spacing: .3em; text-transform: uppercase; color: var(--muted);
}
.section-label::after { content: ''; flex: 1; height: 1px; background: var(--line); }

/* ── PROJECTS GRID ── */
.projects-section { margin-bottom: 64px; animation: fadeUp .8s .15s ease both; }

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

.project-card {
  position: relative; overflow: hidden;
  aspect-ratio: 4/3; cursor: pointer;
  background: var(--paper);
  display: block; border: none; padding: 0; outline: none;
}
.project-card.featured { grid-column: 1/-1; aspect-ratio: 16/6; }

.project-card img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform .7s cubic-bezier(.25,.46,.45,.94), filter .7s;
  filter: grayscale(30%) brightness(.85);
  pointer-events: none;
}
.project-card:hover img { transform: scale(1.08); filter: grayscale(0%) brightness(1.05); }

/* Shimmer */
.project-card::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 40%, rgba(139,47,201,.07) 50%, transparent 60%);
  transform: translateX(-100%);
  pointer-events: none; z-index: 3; transition: transform 0s;
}
.project-card:hover::after { transform: translateX(100%); transition: transform .6s ease; }

/* Accent borders */
.b-top, .b-bot {
  position: absolute; left: 0; right: 0; height: 2px;
  background: var(--accent); z-index: 4; transform: scaleX(0);
  transition: transform .4s cubic-bezier(.25,.46,.45,.94);
}
.b-top { top: 0; transform-origin: left; }
.b-bot { bottom: 0; transform-origin: right; }
.project-card:hover .b-top,
.project-card:hover .b-bot { transform: scaleX(1); }

/* Bottom strip */
.project-strip {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 12px 16px;
  background: linear-gradient(to top, rgba(0,0,0,.75), transparent);
  display: flex; align-items: flex-end; justify-content: space-between;
  z-index: 1; transition: opacity .3s; pointer-events: none;
}
.project-card:hover .project-strip { opacity: 0; }

.proj-name { font-family: var(--serif); font-size: 15px; font-weight: 400; color: #fff; line-height: 1.2; }
.project-card.featured .proj-name { font-size: 24px; }
.proj-stats { display: flex; gap: 10px; font-size: 10px; color: rgba(255,255,255,.5); white-space: nowrap; }

/* Overlay */
.project-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.92) 0%, rgba(0,0,0,.3) 45%, transparent 100%);
  opacity: 0; transition: opacity .45s;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 24px; z-index: 2; pointer-events: none;
}
.project-card:hover .project-overlay { opacity: 1; }

.ov-tag {
  display: inline-block;
  background: rgba(139,47,201,.15); color: var(--accent);
  border: 1px solid rgba(139,47,201,.3);
  font-size: 9px; letter-spacing: .15em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 2px;
  margin-bottom: 8px; width: fit-content;
  transform: translateY(12px); opacity: 0;
  transition: transform .35s .05s ease, opacity .35s .05s ease;
}
.ov-title {
  font-family: var(--serif); font-size: 18px; color: #fff; line-height: 1.2;
  transform: translateY(14px); opacity: 0;
  transition: transform .35s .1s ease, opacity .35s .1s ease;
}
.project-card.featured .ov-title { font-size: 26px; }
.ov-cta {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent); color: #0e0e0e;
  font-family: var(--mono); font-size: 10px; font-weight: 500;
  letter-spacing: .15em; text-transform: uppercase;
  padding: 8px 16px; border-radius: 2px;
  margin-top: 12px; width: fit-content;
  transform: translateY(14px); opacity: 0;
  transition: transform .35s .16s ease, opacity .35s .16s ease;
}
.project-card:hover .ov-tag,
.project-card:hover .ov-title,
.project-card:hover .ov-cta { transform: translateY(0); opacity: 1; }

/* ── LIGHTBOX ── */
.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none; opacity: 0; transition: opacity .4s ease;
}
.lightbox.open { opacity: 1; pointer-events: all; }

.lb-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.85);
  backdrop-filter: blur(6px);
}
.lb-panel {
  position: relative; z-index: 1;
  width: min(92vw, 980px); max-height: 92vh;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 4px; overflow: hidden;
  display: flex; flex-direction: column;
  transform: translateY(32px) scale(.97);
  transition: transform .4s cubic-bezier(.25,.46,.45,.94);
}
.lightbox.open .lb-panel { transform: translateY(0) scale(1); }

.lb-close {
  position: absolute; top: 20px; right: 20px; z-index: 10;
  background: var(--bg); border: 1px solid var(--line);
  color: var(--muted); width: 36px; height: 36px;
  border-radius: 50%; font-size: 18px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: border-color .2s, color .2s;
  font-family: var(--mono);
}
.lb-close:hover { border-color: var(--text); }

.lb-hero { width: 100%; aspect-ratio: 16/7; overflow: hidden; flex-shrink: 0; }
.lb-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }

.lb-body {
  overflow-y: auto; padding: 36px 40px 48px;
  scrollbar-width: thin; scrollbar-color: var(--line) transparent;
}
.lb-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.lb-tag {
  background: rgba(139,47,201,.12); color: var(--accent);
  border: 1px solid rgba(139,47,201,.3);
  font-size: 9px; letter-spacing: .2em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 2px;
}
.lb-date { font-size: 11px; color: var(--muted); }
.lb-title {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 400; line-height: 1;
  margin-bottom: 20px; color: var(--text);
}
.lb-desc {
  font-size: 13px; line-height: 1.8; color: #a09c95;
  max-width: 680px; margin-bottom: 36px;
  border-left: 2px solid var(--accent);
  padding-left: 20px;
}
.lb-images { display: flex; flex-direction: column; gap: 3px; }
.lb-images img { width: 100%; display: block; border-radius: 2px; }
.lb-images-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; }

.lb-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 28px; margin-top: 36px;
  border-top: 1px solid var(--line);
}
.lb-stats { display: flex; gap: 20px; font-size: 12px; color: var(--muted); }
.lb-behance {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; border: 1px solid var(--line);
  color: var(--muted); font-family: var(--mono);
  font-size: 10px; letter-spacing: .15em; text-transform: uppercase;
  padding: 8px 16px; border-radius: 2px; text-decoration: none;
  transition: border-color .2s, color .2s;
}
.lb-behance:hover { border-color: var(--text); }

.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 10; background: var(--bg); border: 1px solid var(--line);
  color: var(--muted); width: 40px; height: 40px;
  border-radius: 50%; font-size: 22px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: border-color .2s, color .2s; font-family: var(--mono);
}
.lb-nav:hover { border-color: var(--text); }
.lb-prev { left: -20px; }
.lb-next { right: -20px; }

/* ── LINKS ── */
.links-section { margin-bottom: 64px; animation: fadeUp .8s .25s ease both; }
.links-grid { display: flex; gap: 16px; flex-wrap: wrap; }

.link-card {
  display: flex; align-items: center; gap: 12px;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 6px; padding: 16px 20px;
  text-decoration: none; color: var(--text); font-size: 13px;
  transition: border-color .2s, transform .2s, background .2s;
  flex: 1; min-width: 200px;
}
.link-card:hover { border-color: var(--text); background: #1a1a14; transform: translateY(-2px); }
.link-icon { width: 36px; height: 36px; border-radius: 6px; background: var(--line); display: flex; align-items: center; justify-content: center; font-size: 16px; }
.link-name { font-weight: 500; letter-spacing: .05em; }
.link-handle { font-size: 11px; color: var(--muted); }
.link-arrow { margin-left: auto; color: var(--muted); font-size: 16px; transition: transform .2s, color .2s; }
.link-card:hover .link-arrow { transform: translate(3px,-3px); color: var(--text); }

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--line); padding-top: 28px;
  display: flex; justify-content: space-between; align-items: center;
  animation: fadeUp .8s .35s ease both;
}
footer p { font-size: 11px; color: var(--muted); letter-spacing: .1em; }
.footer-dot { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; animation: pulse 2s infinite; }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .4; transform: scale(1.4); }
}

/* ── RESPONSIVE ── */
@media (max-width: 700px) {
  .wrapper { padding: 40px 20px 80px; }
  header { grid-template-columns: 1fr; }
  .photo-frame { width: 120px; height: 150px; }
  .projects-grid { grid-template-columns: 1fr 1fr; }
  .project-card.featured { grid-column: 1/-1; aspect-ratio: 16/7; }
  .lb-panel { width: 98vw; max-height: 96vh; }
  .lb-body { padding: 24px 20px 36px; }
  .lb-images-grid { grid-template-columns: 1fr; }
  .lb-prev { left: 8px; } .lb-next { right: 8px; }
}
@media (max-width: 480px) {
  .projects-grid { grid-template-columns: 1fr; }
  .project-card.featured { aspect-ratio: 4/3; }
}

/* ═══════════════════════════════════════════════
   NAV PAGE PROJET
═══════════════════════════════════════════════ */
.nav-projet {
  position: fixed; top: 0; width: 100%; z-index: 100;
  display: flex; justify-content: space-between; align-items: center;
  padding: 28px 48px;
}
.nav-projet::before {
  content: ''; position: absolute; inset: 0; height: 160%;
  background: linear-gradient(to bottom, rgba(14,14,14,.35) 0%, rgba(14,14,14,.08) 50%, transparent 100%);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  -webkit-mask-image: linear-gradient(to bottom, black 0%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 0%, transparent 100%);
  pointer-events: none; z-index: -1;
}
.nav-logo-projet { display: flex; align-items: center; text-decoration: none; }
.nav-logo-img-projet { height: 26px; width: auto; display: block; }
.nav-projet-links { display: flex; gap: 40px; list-style: none; margin-left: auto; }
.nav-projet-links a { font-family: 'Work Sans', sans-serif; font-size: .68rem; font-weight: 300; letter-spacing: .18em; text-transform: uppercase; color: var(--text); text-decoration: none; position: relative; transition: color .3s; }
.nav-projet-links a::after { content: ''; position: absolute; bottom: -3px; left: 0; width: 0; height: 1px; background: var(--text); transition: width .4s ease; }
.nav-projet-links a:hover { color: var(--text); }
.nav-projet-links a:hover::after { width: 100%; }
.nav-projet .btn-behance { font-family: 'Work Sans', sans-serif; font-size: .65rem; letter-spacing: .2em; text-transform: uppercase; color: var(--bg); background: var(--text); padding: 10px 20px; text-decoration: none; transition: background .3s, color .3s; }
.nav-projet .btn-behance:hover { background: var(--text); color: var(--bg); }

.btn-retour {
  font-family: 'Work Sans', sans-serif;
  font-size: .65rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted); text-decoration: none;
  transition: color .25s;
}
.btn-retour:hover { color: var(--text); }

.btn-behance {
  font-family: 'Work Sans', sans-serif;
  font-size: .6rem; letter-spacing: .15em; text-transform: uppercase;
  color: var(--muted); text-decoration: none;
  border: 1px solid var(--line);
  padding: 7px 14px; border-radius: 10px;
  transition: border-color .25s, color .25s;
}
.btn-behance:hover { border-color: var(--text); }

/* ═══════════════════════════════════════════════
   GRILLE PROJETS — index.html
═══════════════════════════════════════════════ */
.grille-projets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.carte-projet {
  position: relative; overflow: hidden;
  aspect-ratio: 4/3; display: block;
  text-decoration: none; background: #141414;
  cursor: pointer; isolation: isolate;
}
/* carte double largeur : même hauteur de rangée que deux cartes 4/3 côte à côte */
.carte-projet.carte-large { grid-column: span 2; aspect-ratio: 8/3; }
.carte-projet img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transform: scale(var(--z, 1));
  transition: transform .7s cubic-bezier(.25,.46,.45,.94);
}
.carte-projet:hover img { transform: scale(calc(var(--z, 1) * 1.08)); }

.carte-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.92) 0%, rgba(0,0,0,.3) 45%, transparent 100%);
  opacity: 0; transition: opacity .45s;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 24px; z-index: 2; gap: 4px;
}
.carte-projet:hover .carte-overlay { opacity: 1; }

.carte-overlay-cta {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent); color: #0e0e0e;
  font-family: 'Work Sans', sans-serif;
  font-size: 10px; font-weight: 500;
  letter-spacing: .15em; text-transform: uppercase;
  padding: 8px 16px; border-radius: 2px; width: fit-content;
  margin-top: 14px;
  transform: translateY(14px); opacity: 0;
  transition: transform .35s .16s ease, opacity .35s .16s ease;
}
.carte-projet:hover .carte-overlay-cta { transform: translateY(0); opacity: 1; }

.carte-titre {
  font-family: 'Work Sans', sans-serif;font-weight:800;
  font-size: 22px; color: #fff; line-height: 1.2; font-weight: 400;
  text-transform: uppercase;
  transform: translateY(12px); opacity: 0;
  transition: transform .35s .05s ease, opacity .35s .05s ease;
}
.carte-categorie {
  font-family: 'Work Sans', sans-serif;
  font-size: 10px; color: rgba(255,255,255,.55);
  letter-spacing: .1em; text-transform: uppercase;
  transform: translateY(12px); opacity: 0;
  transition: transform .35s .1s ease, opacity .35s .1s ease;
}
.carte-projet:hover .carte-titre,
.carte-projet:hover .carte-categorie { transform: translateY(0); opacity: 1; }

/* ═══════════════════════════════════════════════
   PAGE PROJET — contenu
═══════════════════════════════════════════════ */
.projet-header {
  padding: 120px 48px 56px;
  max-width: 1200px; margin: 0 auto;
  border-bottom: none;
}
.projet-titre {
  font-family: 'Work Sans', sans-serif;font-weight:800;
  font-size: clamp(4rem, 9vw, 10rem);
  line-height: .88; letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--text); margin-bottom: 20px;
}
.projet-meta {
  display: flex; align-items: center; gap: 24px;
  font-family: 'Work Sans', sans-serif;
  font-size: .65rem; letter-spacing: .2em; text-transform: uppercase;
  margin-bottom: 24px;
}
.projet-categorie { color: var(--accent); }
.projet-annee { color: var(--muted); }

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

.tag {
  font-family: 'Work Sans', sans-serif;
  font-size: .58rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--line);
  padding: 4px 12px; border-radius: 2px;
}

.projet-cover {
  width: 100%; display: block;
  height: auto;
  margin-bottom: 0;
}

.projet-description {
  max-width: 760px; margin: 64px auto;
  padding: 0 48px;
}
.projet-description p {
  font-family: 'Nyght Serif', 'Cormorant Garamond', serif;
  font-size: 1.25rem; line-height: 1.8;
  color: var(--text); font-style: italic;
  border-left: 2px solid var(--accent);
  padding-left: 24px;
}

.projet-video {
  width: 100%; margin-bottom: 4px;
}
.yt-wrapper {
  position: relative; width: 100%; aspect-ratio: 16/9;
}
.yt-wrapper iframe,
.yt-wrapper > div:first-child {
  position: absolute; inset: 0;
  width: 100% !important; height: 100% !important;
  border: none;
}
.yt-overlay {
  position: absolute; inset: 0;
  z-index: 1; cursor: pointer;
}
.yt-sound-btn {
  position: absolute; bottom: 20px; right: 20px;
  z-index: 2;
  font-family: 'Work Sans', sans-serif;
  font-size: .58rem; letter-spacing: .15em;
  color: #fff; background: rgba(0,0,0,.5);
  border: 1px solid rgba(255,255,255,.3);
  padding: 6px 14px; cursor: pointer;
  transition: background .2s, border-color .2s;
}
.yt-sound-btn:hover { background: rgba(0,0,0,.8); border-color: #fff; }

.projet-galerie {
  display: flex; flex-direction: column; gap: 0;
}
.projet-galerie img,
.projet-galerie .projet-video-mp4 {
  width: 100%; display: block; object-fit: cover;
}
.projet-video-mp4 {
  width: 100%; display: block;
}
.video-mp4-wrapper {
  position: relative; width: 100%;
}
.video-mp4-wrapper .projet-video-mp4 {
  width: 100%; display: block;
}
.video-sound-btn {
  position: absolute; bottom: 20px; right: 20px;
  font-family: 'Work Sans', sans-serif;
  font-size: .58rem; letter-spacing: .15em;
  color: #fff; background: rgba(0,0,0,.5);
  border: 1px solid rgba(255,255,255,.3);
  padding: 6px 14px; cursor: pointer;
  transition: background .2s, border-color .2s;
}
.video-sound-btn:hover { background: rgba(0,0,0,.8); border-color: #fff; }

.projet-galerie-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
}
.projet-galerie-grid img {
  width: 100%; display: block;
  aspect-ratio: 4 / 3; object-fit: cover;
}
.projet-galerie-grid--natural img {
  aspect-ratio: unset; object-fit: unset; height: auto;
}
.projet-galerie-grid--natural .img-cover {
  height: 100%; object-fit: cover; align-self: stretch;
}
/* ═══ Galerie justifiée : séries photo denses (rangées à hauteur égale, 0 recadrage) ═══ */
.projet-galerie-just {
  display: flex; flex-direction: column; gap: 0;
}
.projet-galerie-just-row {
  display: flex; gap: 0;
}
/* flex-basis 0 + flex-grow = ratio → largeurs proportionnelles aux ratios,
   donc hauteur identique pour toute la rangée. aspect-ratio évite tout CLS. */
.projet-galerie-just-row > .just-cell {
  flex: var(--r, 0.75) 1 0;
  min-width: 0; overflow: hidden;
  aspect-ratio: var(--r, 0.75);
  position: relative; /* ancre les images recadrées, posées en absolu */
}
.projet-galerie-just-row > .just-cell img,
.projet-galerie-just-row > .just-cell video {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
/* Mobile : 2 par ligne (la dernière d'une rangée impaire s'étire en pleine largeur).
   Ratio uniforme 3/4 — intermédiaire entre les 2:3 et 4:5 de la série. */
@media (max-width: 768px) {
  .projet-galerie-just-row { flex-wrap: wrap; }
  .projet-galerie-just-row > .just-cell {
    flex: 1 1 50%;
    /* --rm n'est posé que sur les images volontairement recadrées :
       leur cadre est respecté, les autres s'uniformisent en 3/4 */
    aspect-ratio: var(--rm, 3 / 4);
  }
}

/* image recadrée : le rectangle choisi remplit exactement ce cadre */
.media-crop {
  position: relative; width: 100%;
  overflow: hidden; display: block;
}
.projet-galerie-grid .media-crop { aspect-ratio: unset; }

.img-rot90-wrap {
  overflow: hidden;
  position: relative;
  width: 100%;
}
.img-rot90-wrap img {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) rotate(90deg);
}

/* ═══ Projets « encadrés » : marges blanches (côtés + entre images) et coins arrondis ═══ */
body.projet-cadre { --cadre-pad: 64px; --cadre-gap: 16px; --cadre-radius: 16px; }

/* Blocs média alignés sur la colonne de l'entête (max 1500px) + marges latérales */
body.projet-cadre .projet-galerie,
body.projet-cadre .projet-galerie-grid,
body.projet-cadre .projet-video,
body.projet-cadre .projet-video-yt {
  max-width: 1500px; margin-left: auto; margin-right: auto;
  padding-left: var(--cadre-pad); padding-right: var(--cadre-pad);
  box-sizing: border-box;
  margin-top: var(--cadre-gap);
}
body.projet-cadre .projet-galerie { gap: var(--cadre-gap); }
body.projet-cadre .projet-galerie-grid { gap: var(--cadre-gap); }

/* Cover : image nue -> largeur réduite + centrée pour créer les marges latérales */
body.projet-cadre .projet-cover {
  display: block;
  width: calc(100% - var(--cadre-pad) * 2);
  max-width: calc(1500px - var(--cadre-pad) * 2);
  margin: 0 auto;
  border-radius: var(--cadre-radius);
}

/* Coins arrondis sur chaque média (images, vidéos, wrappers) */
body.projet-cadre .projet-galerie > img,
body.projet-cadre .projet-galerie > div,
body.projet-cadre .projet-galerie-grid > img,
body.projet-cadre .projet-galerie-grid > div {
  border-radius: var(--cadre-radius);
  overflow: hidden;
}

@media (max-width: 768px) {
  body.projet-cadre { --cadre-pad: 20px; --cadre-gap: 10px; --cadre-radius: 12px; }
}

.projet-credit {
  border-top: 1px solid var(--line);
  padding: 80px 48px;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  text-align: center;
}
.projet-credit-label {
  font-family: 'Work Sans', sans-serif;
  font-size: .58rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted);
}
.projet-credit-name {
  font-family: 'Nyght Serif', 'Fraunces', serif;font-weight:400;
  font-size: 2.4rem; letter-spacing: .02em;
  color: var(--text);
}
.projet-behance-link {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 18px;
  font-family: 'Work Sans', sans-serif;
  font-size: .68rem; letter-spacing: .2em; text-transform: uppercase;
  color: #000; background: #f5f3ef; text-decoration: none;
  border: 1px solid #000; border-radius: 10px; padding: 16px 36px;
  transition: color .3s, border-color .3s, background .3s;
}
.projet-behance-link:hover { background: #000; color: #fff; border-color: #000; }

.projet-credit-links {
  display: flex; gap: 24px; list-style: none; padding: 0; margin: 8px 0 0; justify-content: center;
}
.projet-credit-links a {
  font-family: 'Work Sans', sans-serif;
  font-size: .68rem; letter-spacing: .2em; text-transform: uppercase;
  color: #000; background: #f5f3ef; text-decoration: none;
  border: 1px solid #000; border-radius: 10px; padding: 16px 36px;
  transition: color .3s, border-color .3s, background .3s;
}
.projet-credit-links a:hover { background: #000; color: #fff; border-color: #000; }

.projet-nav {
  display: flex; justify-content: space-between; align-items: stretch;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 0;
}
.projet-nav-link {
  display: flex; flex-direction: column; gap: 10px;
  padding: 48px;
  text-decoration: none;
  flex: 1;
  transition: background .3s;
}
.projet-nav-link:hover { background: rgba(255,255,255,.03); }
.projet-nav-next { text-align: right; border-left: 1px solid var(--line); }
.projet-nav-label {
  font-family: 'Work Sans', sans-serif;
  font-size: .58rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted);
}
.projet-nav-titre {
  font-family: 'Work Sans', sans-serif;font-weight:800;
  font-size: clamp(1.4rem, 3vw, 2.2rem); letter-spacing: .06em;
  color: var(--text);
  transition: color .3s;
}
.projet-nav-link:hover .projet-nav-titre { color: var(--text); }
@media (max-width: 768px) {
  .projet-nav { flex-direction: column; }
  .projet-nav-next { border-left: none; border-top: 1px solid var(--line); text-align: left; }
  .projet-nav-link { padding: 32px 24px; }
}

.footer-global {
  display: flex; justify-content: space-between; align-items: center;
  padding: 24px 48px;
  background: var(--bg); border-top: 1px solid var(--line);
}
.footer-global p {
  font-family: 'Work Sans', sans-serif;
  font-size: .58rem; color: var(--muted);
  letter-spacing: .15em; text-transform: uppercase;
}
.footer-global .footer-logo {
  height: 22px; width: auto; opacity: .35; filter: brightness(10);
}

/* Responsive grille + projet */
@media (max-width: 900px) {
  .grille-projets { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grille-projets { grid-template-columns: 1fr; }
  /* une seule colonne : la carte large redevient une carte normale */
  .carte-projet.carte-large { grid-column: auto; aspect-ratio: 4/3; }
  .nav-projet { padding: 18px 24px; }
  .btn-behance { display: none; }
  .projet-header { padding: 96px 24px 40px; }
  .projet-description { padding: 0 24px; margin: 40px auto; }
  .projet-video { padding: 0 24px; }
  .footer-projet { padding: 24px; }
}

/* ── TRANSITION DE PAGE (fondu, façon herostudios) ── */
/* Fondu enchaîné natif entre les pages (View Transitions API) */
@view-transition{navigation:auto}
::view-transition-old(root),::view-transition-new(root){animation-duration:.45s;animation-timing-function:cubic-bezier(.4,0,.2,1)}
@media(prefers-reduced-motion:reduce){::view-transition-group(*),::view-transition-old(*),::view-transition-new(*){animation:none!important}}

/* ══════════ HEADER + MENU BURGER UNIFIÉ (façon herostudios) ══════════ */
:root{--nav-toggle:#ffffff;--nav-toggle-open:#ffffff;--menu-bg:#000000;--menu-fg:#ffffff;--menu-muted:rgba(255,255,255,.6);--menu-line:rgba(255,255,255,.15);--menu-accent:#8b2fc9;--nav-bar-bg:transparent;--nav-grad-1:rgba(14,14,14,.35);--nav-grad-2:rgba(14,14,14,.08)}
.site-nav{position:fixed;top:0;left:0;right:0;z-index:200;display:flex;justify-content:space-between;align-items:center;height:60px;padding:0 40px;background:var(--nav-bar-bg);pointer-events:none;transition:transform .5s cubic-bezier(.785,.135,.15,.86);will-change:transform}
.site-nav.nav-hidden{transform:translateY(-115%)}
.site-nav::before{content:'';position:absolute;inset:0;height:160%;z-index:-1;pointer-events:none;background:linear-gradient(to bottom,var(--nav-grad-1) 0%,var(--nav-grad-2) 50%,transparent 100%);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);-webkit-mask-image:linear-gradient(to bottom,#000 0%,transparent 100%);mask-image:linear-gradient(to bottom,#000 0%,transparent 100%)}
.site-nav>*{pointer-events:auto}
.site-nav .nav-logo{display:flex;align-items:center;text-decoration:none}
.site-nav .nav-logo img{height:24px;width:auto;display:block}
.nav-toggle{position:relative;width:44px;height:44px;background:none;border:none;cursor:pointer;padding:0;flex:none}
.nav-toggle span{position:absolute;left:50%;top:50%;width:26px;height:2px;background:var(--nav-toggle);transform:translate(-50%,-50%);transition:transform .45s cubic-bezier(.785,.135,.15,.86),background .3s cubic-bezier(.785,.135,.15,.86)}
.nav-toggle span:nth-child(1){transform:translate(-50%,-50%) translateY(-5px)}
.nav-toggle span:nth-child(2){transform:translate(-50%,-50%) translateY(5px)}
html.menu-open .nav-toggle span{background:#ffffff!important}
html.menu-open .nav-toggle span:nth-child(1){transform:translate(-50%,-50%) rotate(45deg)}
/* Cadre noir arrondi sous le burger (toutes les pages) + traits blancs */
.nav-toggle{width:40px;height:40px;background:#0a0a0a;border-radius:11px}
.nav-toggle span{background:#ffffff}
html.menu-open .nav-toggle span:nth-child(2){transform:translate(-50%,-50%) rotate(-45deg)}
.nav-menu{position:fixed;top:64px;right:14px;width:min(440px,calc(100vw - 28px));background:var(--menu-bg);color:var(--menu-fg);border-radius:22px;padding:56px 46px 42px;z-index:150;pointer-events:none;clip-path:inset(0 0 100% 100% round 22px);transition:clip-path .5s cubic-bezier(.785,.135,.15,.86)}
html.menu-open .nav-menu{clip-path:inset(0 0 0 0 round 22px);pointer-events:auto}
.nav-menu-links{display:flex;flex-direction:column;align-items:flex-start;gap:6px;margin-bottom:44px}
.nav-menu-link{position:relative;font-family:'Helvetica Neue',Arial,sans-serif;font-weight:800;font-size:3rem;line-height:1.15;letter-spacing:-.01em;text-transform:uppercase;color:var(--menu-fg);text-decoration:none;opacity:0;transform:translateX(24px);transition:opacity .35s linear,transform .7s cubic-bezier(.19,1,.22,1)}
.nav-menu-link>span{display:inline-block;transition:transform .55s cubic-bezier(.19,1,.22,1),color .25s}
.nav-menu-link::before{content:'\2192';position:absolute;left:0;top:50%;transform:translate(-10px,-50%);opacity:0;transition:opacity .3s,transform .55s cubic-bezier(.19,1,.22,1);color:var(--menu-fg);font-weight:400}
.nav-menu-link:hover>span{transform:translateX(1.5em)}
.nav-menu-link:hover::before{opacity:1;transform:translate(0,-50%)}
html.menu-open .nav-menu-link{opacity:1;transform:none}
html.menu-open .nav-menu-links .nav-menu-link:nth-child(1){transition-delay:.16s}
html.menu-open .nav-menu-links .nav-menu-link:nth-child(2){transition-delay:.22s}
html.menu-open .nav-menu-links .nav-menu-link:nth-child(3){transition-delay:.28s}
.nav-menu-email{display:inline-block;font-family:'Nyght Serif','Fraunces',serif;font-weight:300;font-size:1.65rem;letter-spacing:-.01em;color:#ffffff;text-decoration:none;padding-top:6px;opacity:0;transform:translateX(24px);transition:opacity .35s linear,transform .7s cubic-bezier(.19,1,.22,1),color .25s}
html.menu-open .nav-menu-email{opacity:1;transform:none;transition-delay:.34s}
.nav-menu-email:hover{color:var(--menu-fg)}
@media(max-width:768px){
  .site-nav{height:52px;padding:0 24px}
  .nav-menu{top:0;right:0;left:0;bottom:0;width:100%;max-width:none;height:100vh;height:100dvh;border-radius:0;padding:96px 32px 40px;display:flex;flex-direction:column;justify-content:center;clip-path:inset(0 0 100% 0);transition:clip-path .55s cubic-bezier(.785,.135,.15,.86)}
  html.menu-open .nav-menu{clip-path:inset(0 0 0 0)}
  .nav-menu-links{gap:8px;margin-bottom:44px}
  .nav-menu-link{font-size:3.1rem}
  .nav-menu-email{font-size:1.8rem}
}

/* ═══════════════════════════════════════════════
   PAGES PROJET — thème CLAIR + entête 2 colonnes (façon réf)
═══════════════════════════════════════════════ */
body:has(#contenu-projet){ background:#f5f3ef; color:#000; }
body:has(#contenu-projet) .footer-global{ background:#f5f3ef; }
/* header clair : logo noir, pas de dégradé sombre */
body:has(#contenu-projet) .site-nav .nav-logo img{ filter:brightness(0); }
body:has(#contenu-projet) .site-nav::before{ display:none; }

/* Entête : titre à gauche (serif), présentation à droite */
.projet-header{ display:grid; grid-template-columns:1.05fr 1fr; gap:60px; align-items:start;
  max-width:1500px; margin:0 auto; padding:190px 64px 70px; border-bottom:none; }
.projet-titre{ font-family:'Nyght Serif','Fraunces',serif; font-weight:400; text-transform:none;
  font-size:clamp(3rem,6vw,7rem); line-height:.98; letter-spacing:-.02em; color:#000; margin-bottom:0; }
.projet-intro{ padding-top:.55em; }
.projet-eyebrow{ font-family:'Work Sans',sans-serif; font-size:.82rem; letter-spacing:.02em;
  color:#000; text-transform:none; margin-bottom:26px; }
.projet-eyebrow .projet-annee{ color:rgba(0,0,0,.45); }
.projet-desc p{ font-family:'Nyght Serif','Fraunces',serif; font-weight:400; font-style:normal;
  font-size:clamp(1.5rem,2.3vw,2.45rem); line-height:1.12; letter-spacing:-.01em; color:#000;
  border-left:none; padding-left:0; }

/* Crédit / navigation / footer en clair */
body:has(#contenu-projet) .projet-credit-label{ color:#000; }
body:has(#contenu-projet) .projet-credit-name{ color:#000; }
body:has(#contenu-projet) .projet-nav{ border-color:rgba(0,0,0,.12); }
body:has(#contenu-projet) .projet-nav-next{ border-left-color:rgba(0,0,0,.12); }
body:has(#contenu-projet) .projet-nav-titre{ color:#000; }
body:has(#contenu-projet) .projet-nav-label{ color:rgba(0,0,0,.5); }
body:has(#contenu-projet) .projet-nav-link:hover{ background:rgba(0,0,0,.03); }
body:has(#contenu-projet) .projet-nav-link:hover .projet-nav-titre{ color:#000; }
body:has(#contenu-projet) .footer-global{ border-top:1px solid rgba(0,0,0,.12); }
body:has(#contenu-projet) .footer-global p{ color:rgba(0,0,0,.5); }
body:has(#contenu-projet) .footer-global .footer-logo{ filter:brightness(0); }

/* Section « Contactez-moi » des pages projet : clair, sans particules, boutons unifiés */
body:has(#contenu-projet) #contact{ padding:60px 48px 100px; }
body:has(#contenu-projet) .contact-bg,
body:has(#contenu-projet) .contact-flicker-a,
body:has(#contenu-projet) .contact-flicker-b,
body:has(#contenu-projet) .contact-flicker-c,
body:has(#contenu-projet) #embers-canvas{ display:none!important; }
body:has(#contenu-projet) .contact-eyebrow{ display:inline-block; background:#0a0a0a; color:#fff;
  border-radius:100px; padding:12px 28px; margin-bottom:44px; }
body:has(#contenu-projet) .contact-title{ color:#000; }
body:has(#contenu-projet) .contact-btn{ background:#f5f3ef; color:#000; border:1px solid #000; border-radius:10px; }
body:has(#contenu-projet) .contact-btn:hover{ background:#000; color:#fff; border-color:#000; }
body:has(#contenu-projet) .contact-btn.outline{ background:#f5f3ef; color:#000; border:1px solid #000; }
body:has(#contenu-projet) .contact-btn.outline:hover{ background:#000; color:#fff; border-color:#000; }

@media(max-width:768px){
  .projet-header{ grid-template-columns:1fr; gap:22px; padding:120px 24px 44px; }
  .projet-intro{ padding-top:0; }
  body:has(#contenu-projet) #contact{ padding:40px 24px 80px; }
}
