@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;900&display=swap');




/* ============ TOKENS ============ */
:root {
  --bg: #0C0C0D;
  --bg-2: #111113;
  --line: #222225;
  --text: #F0F0F0;
  --text-dim: #888890;
  --text-faint: #aeaeb8;
  --accent: #FFFFFF;

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  opacity: 0;
  transition: opacity 0.7s ease;
  background: var(--bg);
  color: var(--text);
}
body.loaded { opacity: 1; }
a { color: inherit; text-decoration: none; }
code { font-family: var(--font-mono); font-size: 0.85em; color: var(--text-dim); }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ============ SCRUB RAIL ============ */
.scrub-rail {
  position: fixed; top: 0; left: 0; right: 0; height: 2px;
  background: var(--bg); z-index: 300;
}

.scrub-head {
  height: 100%; width: 0%;
  background: var(--accent);
  transition: width 0.05s linear;
}

/* Logo fixe toujours visible */
.logo-fixed {
  position: fixed; top: 5px; left: 1vw; z-index: 300;
  display: flex; align-items: center;
}

.nav {
  position: fixed; top: 2px; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 5vw;
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease, background 0.3s;
}
.nav.visible {
  transform: translateY(0);
  opacity: 1;
  background: rgba(12, 12, 13, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.nav-logo { display: flex; align-items: center; }
.nav-logo-img { height: 72px; width: auto; display: block; }
.nav-logo-dim { color: var(--text-dim); font-weight: 400; }
.nav-links {
  display: flex; align-items: center; gap: 32px;
  font-size: 0.88rem; color: var(--text-dim);
  margin-left: auto;
}
.nav-links a:hover { color: var(--text); }

.nav-cta {
  color: var(--text-dim) !important;
  transition: color 0.2s;
  
}
.nav-cta:hover { color: var(--text) !important; border: none; }

@media (max-width: 700px) {
  .nav-links { gap: 16px; font-size: 0.82rem; }
  .nav-links a:not(.nav-cta) { display: none; }
}

/* ============ HERO ============ */
.hero {
  position: relative;
  width: 100%; height: 100vh;
  overflow: hidden;
  background: #000;
  display: flex; align-items: center; justify-content: center;
}
.hero-video-wrap {
  position: absolute; inset: 0;
  pointer-events: none; overflow: hidden;
}
.hero-video-wrap video {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 177.78vh;
  height: 100vh;
  min-width: 100%;
  min-height: 56.25vw;
  object-fit: cover;
}
.hero-text {
  position: absolute; z-index: 2;
  text-align: center;
  bottom: 12%;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
}
.hero-label {
  font-family: 'Cinzel', serif;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
}
.hero-name {
  font-family: 'Cinzel', serif; font-weight: 600;
  font-size: clamp(2.8rem, 8vw, 6rem);
  letter-spacing: 0.06em;
  color: var(--text);
  line-height: 1;
}
.hero-role {
  font-family: 'Cinzel', serif;
  margin-top: 16px;
  font-size: 1rem; letter-spacing: 0.1em;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.2) 0%,
    rgba(0,0,0,0.05) 40%,
    rgba(12,12,13,1) 100%
  );
}
.hero-socials {
  display: flex; gap: 24px;
  justify-content: center;
  margin-top: 24px;
}
.hero-socials a {
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
  display: flex;
}
.hero-socials a:hover { color: var(--text); }

/* ============ SECTIONS ============ */
.section {
  padding: 120px 5vw;
  max-width: 1160px;
  margin: 0 auto;
}
.label {
  font-family: 'Cinzel', serif;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 16px;
  font-weight: 600;
}
.section-title {
  font-family: 'Cinzel', serif;
  font-weight: 600;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  letter-spacing: -0.02em;
}
.section-sub {
  color: var(--text-dim); font-size: 0.9rem; margin-top: 10px;
}

/* ============ VIDEO PLAYER ============ */
.video-player {
  margin-top: 48px;
  position: relative; aspect-ratio: 16/9;
  background: #000;
  border: 1px solid var(--line);
}
.video-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ============ PRÉSENTATION ============ */
.presentation {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  max-width: 100%;
  padding: 120px 5vw;
}
.presentation-inner {
  max-width: 680px; margin: 0 auto; text-align: center;
}
.presentation-welcome {
  font-family: var(--font-display); font-size: 1.1rem;
  color: var(--text-dim); margin-bottom: 28px;
}
.presentation-text {
  font-size: 1.5rem; color: var(--text-dim);
  line-height: 1.8; margin-bottom: 44px;
}
.btn-outline {
  display: inline-block;
  border: 1px solid var(--line);
  padding: 14px 28px;
  font-size: 0.88rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text);
  transition: border-color 0.2s, color 0.2s;
}
.btn-outline:hover { border-color: rgba(255,255,255,0.4); }

/* ============ À PROPOS ============ */
.about-cols {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.about-text { color: var(--text-dim); font-size: 1.6rem; line-height: 1.8; }
.toolbelt { display: flex; flex-wrap: wrap; gap: 8px; }
.tool {
  font-family: var(--font-mono); font-size: 0.78rem;
  border: 1px solid var(--line); padding: 8px 14px;
  color: var(--text-dim);
}
@media (max-width: 700px) {
  .about-cols { grid-template-columns: 1fr; gap: 32px; }
}

/* ============ FOOTER ============ */
.footer {
  border-top: 1px solid var(--line);
  max-width: 100%; padding: 120px 5vw 60px;
}
.footer-email {
  
  display: inline-block; margin-top: 28px;
  font-family: var(--font-display); font-weight: 600;
  font-family: 'Cinzel', serif;
  font-size: clamp(1.4rem, 3.5vw, 2.2rem);
  color: var(--text);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.footer-email:hover { border-color: var(--text-dim); }
.footer-links {
  display: flex; gap: 28px; margin-top: 40px; flex-wrap: wrap;
}
.footer-links a { color: var(--text-dim); font-size: 1rem; 
  font-family: 'Cinzel', serif;
  font-weight: 600;
}

.footer-links a:hover { color: var(--text); }
.footer-fine {
  margin-top: 80px; color: var(--text-faint);
  font-size: 0.78rem; font-family: var(--font-mono);
}

/* ============ PROJECT GRID ============ */
.section-wide {
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
}
.section-wide .label,
.section-wide .section-title { padding-left: 1vw; }

.project-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}
.proj-featured {
  grid-column: 1 / -1;
  height: 280px;
  position: relative;
  overflow: hidden;
  background-color: #1a1530;
  width: 100%;
  display: block;
}
.proj-featured-img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;  /* ajuste le crop vertical */
  top: 0;
  left: 0;
}
.proj {
  display: block;
  position: relative;
  aspect-ratio: 16/10;
  background-color: var(--bg-2);
  background-size: cover;
  background-position: center;
  overflow: hidden;
  cursor: pointer;
}
.proj-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0);
  display: flex; flex-direction: column;
  justify-content: flex-end;
  padding: 24px 28px;
  transition: background 0.3s ease;
}
.proj:hover .proj-overlay { background: rgba(0,0,0,0.62); }


.proj-title {
  font-family: 'Cinzel', serif;
  font-size: 1.1rem; color: var(--text);
  transform: translateY(8px); opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  font-weight: 600;
}
.proj-date {
  font-family: 'Cormorant Garamond', serif;
  font-family: var(--font-mono); font-size: 0.72rem;
  color: rgba(255,255,255,0.55); letter-spacing: 0.06em;
  margin-top: 6px;
  transform: translateY(8px); opacity: 0;
  transition: opacity 0.25s ease 0.05s, transform 0.25s ease 0.05s;
  
}
.proj:hover .proj-title,
.proj:hover .proj-date { opacity: 1; transform: translateY(0); }
.proj:nth-child(2) { background-color: #1a1230; }
.proj:nth-child(3) { background-color: #12202a; }
.proj:nth-child(4) { background-color: #1a2010; }
.proj:nth-child(5) { background-color: #251220; }
.proj:nth-child(6) { background-color: #202018; }

@media (max-width: 800px) {
  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .proj-featured { aspect-ratio: 16/7; }
}
@media (max-width: 500px) {
  .project-grid { grid-template-columns: 1fr; }
}

/* ============ LIGHTBOX ============ */
.lightbox {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(0,0,0,0);
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
  transition: background 0.3s ease;
}
.lightbox.active {
  background: rgba(0,0,0,0.88);
  pointer-events: all;
}
.lightbox-inner {
  width: min(90vw, 1100px);
  aspect-ratio: 16/9; opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.lightbox.active .lightbox-inner { opacity: 1; transform: scale(1); }
.lightbox-inner iframe { width: 100%; height: 100%; border: 0; }
.lightbox-close {
  display: none;
  position: absolute; top: 28px; right: 32px;
  background: none; border: none;
  color: rgba(255,255,255,0.6); font-size: 1.4rem;
  cursor: pointer; line-height: 1;
  transition: color 0.2s;
}
.lightbox.active .lightbox-close { display: block; }
.lightbox-close:hover { color: #fff; }

/* ============ LANG TOGGLE ============ */
.lang-toggle {
  background: none;
  border: 1px solid var(--line);
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 4px 10px;
  letter-spacing: 0.08em;
  transition: color 0.2s, border-color 0.2s;
}
.lang-toggle:hover { color: var(--text); border-color: rgba(255,255,255,0.4); }


/* ============ LIGHTBOX IMAGE ============ */
.img-lightbox {
  position: fixed;
  inset: 0;
  z-index: 600;
  background: rgba(0,0,0,0);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: background 0.3s ease;
}
.img-lightbox.active {
  background: rgba(0,0,0,0.92);
  pointer-events: all;
}
.img-lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.img-lightbox.active img {
  opacity: 1;
  transform: scale(1);
}
.img-lightbox-close {
  position: absolute;
  top: 28px; right: 32px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.6);
  font-size: 1.4rem;
  cursor: pointer;
  display: none;
  transition: color 0.2s;
}
.img-lightbox.active .img-lightbox-close { display: block; }
.img-lightbox-close:hover { color: #fff; }


/* ============ HOVER PARALLAX PROJETS ============ */
.proj::before {
  content: '';
  position: absolute;
  inset: 0;
  background: inherit;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}
.proj:hover::before { transform: scale(1.06); }

.proj-featured-img { transition: transform 0.5s ease; }
.proj-featured:hover .proj-featured-img { transform: scale(1.05); }

/* ============ REVEAL AU SCROLL ============ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============ BOUTON CV ============ */
.about-cv { margin-top: 48px; }