/* ═══════════════════════════════════════
   RESET & VARIABLES — version claire / sobre
   ═══════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:         #FAFAF8;
  --bg-2:       #F2F1ED;
  --bg-3:       #E9E8E3;
  --ink:        #1A1A18;
  --ink-soft:   #4A4A45;
  --text-muted: #8A8A82;
  --accent:     #8A7249;
  --border:     #DEDDD7;
  --font-sans:  'Cormorant Garant', serif;
  --font-mono:  'IBM Plex Mono', monospace;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ═══════════════════════════════════════
   NAV
   ═══════════════════════════════════════ */
nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 4rem;
  background: rgba(250, 250, 248, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}

.nav-links { display: flex; gap: 2.5rem; list-style: none; }

.nav-links a {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

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

/* ═══════════════════════════════════════
   HERO
   ═══════════════════════════════════════ */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 4rem;
  position: relative;
}
.hero-content {
  max-height: 80vh;
  display: flex;
  flex-direction:row;
  justify-content: center;
  padding: 0 4rem;
  position: relative;
  gap: 2em;
  margin-bottom: 10px;
}
.hero-img {
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: left;
  max-width: 25vw;
  max-height: 75vh;
}
.hero-img img{
  max-height: 100%;
  object-fit:contain;
}

.hero-text {
  overflow: hidden;
  display: right;
  align-items: center;
  justify-content: left;
  max-width: 80vw;
  padding: 2em;
  text-align: right;
}


.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  color: var(--accent);
  margin-bottom: 1.5rem;
  align-items: center;
  gap: 0.6rem;
}

.hero-title {
  font-family: var(--font-sans);
  font-size: clamp(3rem, 8vh, 6.5rem);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: var(--ink);

  
}

.hero-title em {
  font-style: normal;
  color: var(--text-muted);
  font-weight: 100;
}

.hero-sub {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  align-items: center;
  letter-spacing: 0.02em;
  margin-top: 1.75rem;
  color: var(--ink-soft);
}


.scan-line {
  position: absolute;
  bottom: 4rem;
  left: 4rem;
  right: 4rem;
  height: 1px;
  background: var(--border);
}

.scroll-hint {
  position: absolute;
  bottom: 4rem;
  right: 4rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════
   SECTION BASE — labels en métadonnées techniques
   ═══════════════════════════════════════ */
section { padding: 6rem 4rem; }

.section-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.section-label::after {
  content: '';
  flex: 1;
}

/* ═══════════════════════════════════════
   SHARED titres
   ═══════════════════════════════════════ */
.showreel-title em,
.apropos-title em,
.contact-title em {
  font-style: normal;
  color: var(--accent);
  font-weight: 600;
}

/* ═══════════════════════════════════════
   SHOWREEL
   ═══════════════════════════════════════ */
#showreel { background: var(--bg-2); border-bottom: 1px solid var(--border); }

.showreel-wrapper { max-width: 1100px; margin: 0 auto; }

.showreel-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2rem;
  gap: 2rem;
}

.showreel-title {
  font-family: var(--font-sans);
  font-size: clamp(1.7rem, 3.5vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.showreel-year {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  padding-bottom: 0.4rem;
}

.video-frame {
  width: 100%;
  aspect-ratio: 16/9;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  background: var(--bg-3);
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ═══════════════════════════════════════
   PROJETS
   ═══════════════════════════════════════ */
#projets { background: var(--bg); }

.projets-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.25rem;
  max-width: 1100px;
  margin: 0 auto;
}

.projet-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s;
}

.projet-card:hover { border-color: var(--ink); transform: translateY(-2px); }

.projet-card--large  { grid-column: span 7; }
.projet-card--medium { grid-column: span 5; }
.projet-card--small  { grid-column: span 4; }

.projet-img {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--bg-3);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.img-placeholder img { width: 100%; height: 100%; object-fit: cover; }
.img-placeholder svg { opacity: 0.15; width: 36px; height: 36px; }

.projet-info { padding: 1.1rem 1.4rem; }

.projet-tags { display: flex; gap: 0.4rem; margin-bottom: 0.65rem; }

.tag {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border: 1px solid var(--border);
  padding: 0.15rem 0.5rem;
}

.projet-nom {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin-bottom: 0.3rem;
}

.projet-meta {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════
   FILMO
   ═══════════════════════════════════════ */
#filmography{ 
  background: var(--bg);
}

.filmography-layout { 
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  max-width: 1100px;
  margin: 0 auto;
  align-items: start;
}

.filmography-item {
  margin-bottom: 2rem;
}

.filmography-header {
  display: flex;
  align-items: baseline;
  gap: 1rem;
}

.filmography-year {
  color:var(--ink-soft);
  font-size: 1.3rem;
}

.filmography-header h3 {
  margin: 0;
  font-size: 1.3rem;
}



/* ═══════════════════════════════════════
   À PROPOS
   ═══════════════════════════════════════ */
#apropos { background: var(--bg-2); border-bottom: 1px solid var(--border); }

.apropos-layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 5rem;
  max-width: 1100px;
  margin: 0 auto;
  align-items: start;
}

.apropos-portrait {
  aspect-ratio: 3/4;
  background: var(--bg-3);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.portrait-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  height: 100%;
}

.portrait-placeholder img { width: 100%; height: 100%; object-fit: cover; }

.apropos-title {
  font-family: var(--font-sans);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 1.75rem;
}

.apropos-text {
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.8;
  margin-bottom: 2rem;
  max-width: 56ch;
}

.skills-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}

.skill-item {
  display: flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-soft);
  padding: 0.65rem 0.9rem;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

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

.contact-wrapper { max-width: 700px; }

.contact-title {
  font-family: var(--font-sans);
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 1.25rem;
}

.contact-intro {
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin-bottom: 2.5rem;
  max-width: 480px;
}

.contact-links { display: flex; flex-direction: column; border-top: 1px solid var(--border); }

.contact-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--ink);
  transition: color 0.2s;
}

.contact-link:hover { color: var(--accent); }
.contact-link:hover .link-arrow { transform: translate(3px, -3px); }

.link-label { display: flex; flex-direction: column; gap: 0.2rem; }

.link-type {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.link-value { font-size: 1rem; font-weight: 500; }

.link-arrow { font-size: 1.1rem; color: var(--text-muted); transition: transform 0.2s; }

/* ═══════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════ */
footer {
  padding: 1.75rem 4rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-name { font-size: 0.85rem; font-weight: 600; color: var(--ink-soft); }

.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════
   SCROLL REVEAL — discret
   ═══════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.visible { opacity: 1; transform: none; }

/* ═══════════════════════════════════════
   LIGHTBOX
   ═══════════════════════════════════════ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(26, 26, 24, 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

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

.lightbox-inner {
  position: relative;
  width: 100%;
  max-width: 1100px;
  transform: translateY(10px) scale(0.99);
  transition: transform 0.3s ease;
}

.lightbox.open .lightbox-inner { transform: translateY(0) scale(1); }

.lightbox-video {
  width: 100%;
  aspect-ratio: 16/9;
  border: 1px solid var(--bg-3);
  background: var(--ink);
  position: relative;
}

.lightbox-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.lightbox-close {
  position: absolute;
  top: -2.5rem;
  right: 0;
  background: none;
  border: none;
  color: var(--bg-3);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0.4rem 0;
  transition: color 0.2s;
}

.lightbox-close:hover { color: var(--bg); }

/* Cartes projet avec vidéo */
.projet-card[data-vimeo] { cursor: pointer; }

.projet-card[data-vimeo] .play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(26, 26, 24, 0);
  z-index: 2;
  opacity: 0;
  transition: opacity 0.2s, background 0.2s;
}

.projet-card[data-vimeo]:hover .play-overlay {
  opacity: 1;
  background: rgba(26, 26, 24, 0.25);
}

.play-overlay-btn {
  width: 48px;
  height: 48px;
  background: var(--bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.play-overlay-btn svg { width: 14px; height: 14px; fill: var(--ink); margin-left: 2px; }

/* ═══════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════ */
@media (max-width: 900px) {
  nav { padding: 1rem 1.5rem; }
  .nav-links { gap: 1.5rem; }
  section { padding: 4rem 1.5rem; }
  #hero { padding: 0 1.5rem; }
  .hero-content { flex-direction:column; padding: 0 1rem;}
  .hero-text {text-align: center;}
  .hero-img { max-width: 100vw;max-height: 20vh;}
  .hero-img img{ max-width: 100%; object-fit:fill; }
  .scan-line { left: 1.5rem; right: 1.5rem; }
  .scroll-hint { display: none; }
  .apropos-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .apropos-portrait { max-width: 280px; }
  .projet-card--large,
  .projet-card--medium,
  .projet-card--small { grid-column: span 12; }
  footer { padding: 1.5rem; flex-direction: column; gap: 0.5rem; }
  .filmography-item {grid-column: span 7; max-width: 280px; }
  .filmography-layout { gap: 0.5rem;}


}

@media (max-width: 600px) {
  .nav-links { display: none; }
  .hero-title { font-size: 2.6rem; }
  .skills-list { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
