/* ===========================================================
   César Deslandes — Portfolio statique
   Reconstruction fidèle du site Framer — v2 (data-driven)
   =========================================================== */

@font-face {
  font-family: 'Inter';
  src: local('Inter');
}

:root {
  --bg: #0f0f0f;
  --white: #ffffff;
  --grey: #a6a6a6;
  --grey-dim: #6b6b6b;
  --hairline: rgba(255, 255, 255, 0.12);
  --max-width: 1440px;
  --side-pad: 40px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--white);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 400;
  letter-spacing: -0.02em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

ul, ol {
  list-style: none;
}

/* ---------- Layout helpers ---------- */

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--side-pad);
  padding-right: var(--side-pad);
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px var(--side-pad);
  background: rgba(15, 15, 15, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.logo {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  gap: 32px;
}

.main-nav a {
  font-size: 16px;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  opacity: 0.92;
  transition: opacity 0.2s var(--ease);
  position: relative;
}

.main-nav a:hover {
  opacity: 1;
}

.main-nav a.active::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  background: currentColor;
}

.clock {
  font-size: 16px;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  text-transform: uppercase;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
}

.lang-btn {
  background: none;
  border: none;
  color: var(--grey);
  font-family: inherit;
  font-size: 14px;
  letter-spacing: -0.02em;
  cursor: pointer;
  padding: 2px 0;
  transition: color 0.2s var(--ease);
}

.lang-btn:hover {
  color: var(--white);
}

.lang-btn.active {
  color: var(--white);
  border-bottom: 1px solid var(--white);
}

.lang-switch--mobile {
  margin-top: 12px;
}

.lang-switch--mobile .lang-btn {
  font-size: 20px;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 15px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
}

/* Mobile nav drawer */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 99;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 28px;
  padding: 0 var(--side-pad);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}

.mobile-nav.open {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav a {
  font-size: 44px;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  font-weight: 500;
}

/* ---------- Hero (Home) ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 90px;
  overflow: hidden;
}

.hero h1 {
  font-size: clamp(48px, 9vw, 122px);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: -0.06em;
  line-height: 1;
  white-space: nowrap;
  opacity: 0;
  filter: blur(18px);
  transform: scale(1.04);
  transition: opacity 1.4s var(--ease) 0.45s, filter 1.4s var(--ease) 0.45s, transform 1.4s var(--ease) 0.45s;
}

.hero h1.loaded {
  opacity: 1;
  filter: blur(0px);
  transform: scale(1);
}

.hero h1.scrolled {
  opacity: 0;
  filter: blur(14px);
  transform: scale(0.97);
  transition: opacity 0.4s var(--ease), filter 0.4s var(--ease), transform 0.4s var(--ease);
}

.hero .role {
  margin-top: 22px;
  font-size: 23px;
  color: var(--grey);
  letter-spacing: -0.02em;
  opacity: 0;
  transition: opacity 1.2s var(--ease) 0.6s;
}

.hero .role.loaded {
  opacity: 1;
}

.hero .role.scrolled {
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

/* ---------- Vignettes flottantes (hover hero) ---------- */

.hero-thumb {
  position: absolute;
  z-index: 20;
  pointer-events: none;
  border-radius: 2px;
  overflow: hidden;
  opacity: 0;
  filter: blur(10px);
  transform: scale(0.92);
  transition: opacity 0.25s ease, filter 0.32s ease, transform 0.32s ease;
  box-shadow: 0 8px 30px rgba(0,0,0,0.5);
}

.hero-thumb.show {
  opacity: 1;
  filter: blur(0px);
  transform: scale(1);
}

.hero-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 980px) {
  .hero-thumb {
    display: none;
  }
}

/* ---------- Section heading row (Selected Works, etc.) ---------- */

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 140px 0 48px;
}

.section-head h2 {
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: -0.04em;
}

.see-all {
  font-size: 15px;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--white);
  padding-bottom: 4px;
  white-space: nowrap;
}

/* ---------- Works grid ---------- */

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 32px;
  padding-bottom: 60px;
}

.work-card {
  display: block;
}

.work-card .thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #1a1a1a;
  margin-bottom: 20px;
}

.work-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.work-card:hover .thumb img {
  transform: scale(1.04);
}

.work-card h3 {
  font-size: 17px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.work-card p {
  font-size: 15px;
  color: var(--grey);
  line-height: 1.4;
}

/* ---------- About section ---------- */

.about {
  padding-top: 60px;
  padding-bottom: 100px;
  border-top: 1px solid var(--hairline);
}

.about > .section-head h2 {
  font-size: 48px;
}

.about-grid {
  display: grid;
  grid-template-columns: 210px minmax(0, 520px) 1fr;
  grid-auto-flow: row;
  gap: 24px 40px;
  align-items: start;
}

.about-row {
  display: contents;
}

.about-row .about-label {
  grid-column: 1;
}

.about-row .about-value {
  grid-column: 2;
}

.about-divider {
  grid-column: 1 / span 2;
  border-top: 1px solid var(--hairline);
  margin: 28px 0;
}

.about-label {
  font-size: 14px;
  color: var(--grey);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  padding-top: 4px;
}

.about-value {
  font-size: 17px;
  letter-spacing: -0.02em;
  line-height: 1.5;
  min-width: 0;
  overflow-wrap: break-word;
}

.about-value.career p {
  margin-bottom: 4px;
  color: var(--white);
  min-width: 0;
  overflow-wrap: break-word;
}

.about-photo {
  grid-column: 3;
  grid-row: 1 / span 4;
  width: 100%;
  max-width: 420px;
  margin-left: auto;
}

.about-photo img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

/* ---------- Footer ---------- */

.site-footer {
  padding-bottom: 60px;
}

.site-footer h2 {
  font-size: 48px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: -0.04em;
  margin-bottom: 40px;
}

.footer-links {
  display: flex;
  gap: 32px;
  align-items: center;
  flex-wrap: wrap;
  border-top: 1px solid var(--hairline);
  padding-top: 24px;
  font-size: 15px;
}

.footer-links a {
  letter-spacing: 0.02em;
  text-transform: uppercase;
  opacity: 0.85;
}

.footer-links a:hover {
  opacity: 1;
}

.footer-year {
  margin-left: auto;
  color: var(--grey);
}

/* ---------- Project / Works listing page ---------- */

.page-title {
  padding-top: 160px;
  padding-bottom: 60px;
}

.page-title h1 {
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: -0.04em;
}

.works-list {
  padding-bottom: 80px;
}

/* ---------- Project detail page ---------- */

.project-hero {
  padding-top: 150px;
  padding-bottom: 48px;
}

.project-hero h1 {
  font-size: clamp(36px, 6.5vw, 72px);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: -0.04em;
  line-height: 1.05;
  max-width: 1100px;
}

.project-hero .subtitle {
  margin-top: 20px;
  font-size: 19px;
  color: var(--grey);
  max-width: 760px;
}

.project-cover {
  width: 100%;
  margin-bottom: 60px;
  background: #1a1a1a;
}

.project-cover img {
  width: 100%;
  display: block;
}

.project-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding-bottom: 80px;
  border-top: 1px solid var(--hairline);
  padding-top: 56px;
}

.meta-col {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.meta-block .eyebrow {
  font-size: 15px;
  color: var(--grey);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}

.meta-block .value {
  font-size: 18px;
  letter-spacing: -0.02em;
  line-height: 1.4;
}

.meta-block .value.info-text {
  max-width: 640px;
  line-height: 1.55;
}

.live-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 16px;
  text-transform: uppercase;
  border-bottom: 1px solid var(--white);
  padding-bottom: 3px;
}

/* ---------- Galerie projet : lignes à colonnes paramétrables ----------
   Chaque "gallery-row" vient d'un bloc {cols, images} dans data.js.
   cols-1 = pleine largeur, cols-2 = deux images, cols-3 = trois images. */

.project-gallery {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-bottom: 100px;
}

.gallery-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.gallery-row.cols-2 {
  grid-template-columns: 1fr 1fr;
}

.gallery-row.cols-3 {
  grid-template-columns: 1fr 1fr 1fr;
}

.gallery-row img,
.gallery-row video {
  width: 100%;
  background: #1a1a1a;
  display: block;
}

.next-projects {
  border-top: 1px solid var(--hairline);
  padding-top: 60px;
  padding-bottom: 100px;
}

.next-projects .section-head {
  padding-top: 0;
}

/* ---------- Contact page ---------- */

.contact-grid {
  padding-top: 150px;
  padding-bottom: 120px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 60px;
  align-items: start;
}

.contact-left h1 {
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: -0.04em;
  margin-bottom: 28px;
}

.contact-left .lede {
  font-size: 19px;
  color: var(--grey);
  max-width: 420px;
  line-height: 1.5;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 36px;
  padding-top: 8px;
}

.contact-info .eyebrow {
  font-size: 15px;
  color: var(--grey);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 10px;
}

.contact-info .value {
  font-size: 19px;
  display: block;
  text-transform: none;
}

.contact-info a.value:hover {
  text-decoration: underline;
}

.contact-photo {
  width: 100%;
  align-self: start;
}

.contact-photo img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
}

/* ---------- Scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .main-nav {
    display: none;
  }
  .menu-toggle {
    display: block;
  }
  .clock {
    display: none;
  }
  .header-right .lang-switch {
    display: none;
  }
  .works-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .about-photo {
    grid-column: 1;
    grid-row: auto;
    max-width: 100%;
    margin-top: 24px;
  }
  .about-photo img {
    aspect-ratio: 4/5;
  }
  .project-meta {
    grid-template-columns: 1fr;
  }
  .gallery-row.cols-2,
  .gallery-row.cols-3 {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .contact-photo {
    max-width: 320px;
  }
}

@media (max-width: 600px) {
  :root {
    --side-pad: 24px;
  }
  .works-grid {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    white-space: normal;
  }
  .mobile-nav a {
    font-size: 36px;
  }
  .contact-photo {
    max-width: 100%;
  }
}
