@font-face {
  font-family: "Geist";
  src: url("assets/fonts/geist.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #0a0a0a;
  --surface: #161616;
  --text: #f4f4f2;
  --muted: #94948f;
  --line: #262626;
  --gutter: clamp(16px, 3vw, 48px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.5 "Geist", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }

.eyebrow { color: var(--muted); font-size: 15px; font-weight: 400; }

/* En-tête */
.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px var(--gutter);
  background: rgba(10, 10, 10, .82);
  backdrop-filter: blur(14px);
}
.top__name { font-weight: 500; }
.top__nav { display: flex; gap: clamp(16px, 2.5vw, 32px); color: var(--muted); }
.top__nav a { transition: color .2s; padding: 4px 0; }
.top__nav a:hover { color: var(--text); }

/* Accroche */
.hero { padding: clamp(72px, 13vh, 150px) var(--gutter) clamp(56px, 9vh, 96px); }
.hero h1 {
  max-width: 15ch;
  margin-top: 20px;
  font-size: clamp(44px, 8.6vw, 136px);
  font-weight: 500;
  line-height: .98;
  letter-spacing: -.045em;
  text-wrap: balance;
}
.hero__foot {
  display: flex; justify-content: space-between; align-items: flex-end;
  flex-wrap: wrap; gap: 24px 48px;
  margin-top: clamp(40px, 7vh, 72px);
}
.hero__foot p { max-width: 46ch; color: var(--muted); font-size: clamp(17px, 1.5vw, 20px); line-height: 1.4; }
.link-arrow { padding-bottom: 3px; border-bottom: 1px solid var(--text); white-space: nowrap; }
.link-arrow span { display: inline-block; transition: transform .3s var(--ease); }
.link-arrow:hover span { transform: translateX(5px); }

/* Travaux */
.work { padding: 0 var(--gutter) clamp(72px, 12vh, 136px); }
.work__head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding-top: 18px; margin-bottom: 28px;
  border-top: 1px solid var(--line);
}
.work__head h2 { font-size: clamp(28px, 3.2vw, 44px); font-weight: 500; letter-spacing: -.03em; line-height: 1.1; }
.work__head p { color: var(--muted); text-align: right; }

.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px clamp(12px, 1.4vw, 24px); }

.card { display: block; width: 100%; text-align: left; }
.card__media {
  position: relative; display: block;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: 6px;
  background: var(--surface);
}
.card__media img, .card__media video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .7s var(--ease), opacity .3s;
}
.card__media video { opacity: 0; }
.card.is-playing .card__media video { opacity: 1; }
.card:hover .card__media img, .card:hover .card__media video { transform: scale(1.025); }
.card__label { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; }
.card__title { font-weight: 500; line-height: 1.3; }
.card__time { color: var(--muted); font-variant-numeric: tabular-nums; }
.card__meta { display: block; margin-top: 2px; color: var(--muted); font-size: 14px; line-height: 1.35; }

/* Services */
.services {
  display: grid; grid-template-columns: 1fr 3fr; gap: 24px;
  padding: 18px var(--gutter) clamp(72px, 12vh, 136px);
  margin: 0 var(--gutter);
  padding-inline: 0;
  border-top: 1px solid var(--line);
}
.services__list { display: grid; grid-template-columns: 1fr 1fr; gap: 40px clamp(24px, 4vw, 64px); }
.services h3 { font-size: clamp(24px, 2.4vw, 32px); font-weight: 500; letter-spacing: -.025em; }
.services article p { max-width: 42ch; margin-top: 12px; color: var(--muted); }

/* Contact */
.contact {
  padding: clamp(56px, 10vh, 110px) var(--gutter);
  border-top: 1px solid var(--line);
}
.contact__mail {
  display: block;
  margin: 18px 0 22px;
  font-size: clamp(22px, 5.7vw, 92px);
  font-weight: 500;
  letter-spacing: -.04em;
  line-height: 1.05;
  overflow-wrap: anywhere;
  transition: opacity .2s;
}
.contact__mail:hover { opacity: .65; }
.contact__copy { padding: 4px 0; color: var(--muted); border-bottom: 1px solid currentColor; transition: color .2s; }
.contact__copy:hover { color: var(--text); }

.foot {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 20px var(--gutter);
  color: var(--muted); font-size: 14px;
  border-top: 1px solid var(--line);
}
.foot a:hover { color: var(--text); }

.foot { flex-wrap: wrap; }
.foot__links { display: flex; gap: 20px; }
.foot a, .foot span { white-space: nowrap; }

/* Mentions légales */
.legal { max-width: 760px; padding: clamp(56px, 10vh, 110px) var(--gutter); }
.legal h1 { font-size: clamp(38px, 5vw, 68px); font-weight: 500; letter-spacing: -.04em; line-height: 1.05; }
.legal section { margin-top: 48px; padding-top: 16px; border-top: 1px solid var(--line); }
.legal h2 { font-size: 20px; font-weight: 500; letter-spacing: -.01em; }
.legal p { margin-top: 12px; color: var(--muted); }
.legal a { color: var(--text); border-bottom: 1px solid currentColor; overflow-wrap: anywhere; }
.legal mark { padding: 0 5px; background: #ffe45c; color: #0a0a0a; border-radius: 3px; }

/* Lecteur */
.player {
  width: 100vw; height: 100dvh;
  max-width: none; max-height: none;
  padding: 0; border: 0;
  background: #000; color: var(--text);
  overflow: hidden;
}
.player::backdrop { background: #000; }
.player[open] { display: grid; place-items: center; animation: fade .25s ease; }
.player__stage { display: flex; align-items: flex-end; justify-content: center; gap: 28px; width: 100%; height: 100dvh; padding: 24px; }
.player__video {
  display: block;
  height: calc(100dvh - 48px); width: auto; max-width: 100%;
  aspect-ratio: 9 / 16;
  background: #000;
  border-radius: 6px;
}
.player__info { width: 240px; padding-bottom: 8px; }
.player__title { font-size: 22px; font-weight: 500; letter-spacing: -.02em; line-height: 1.2; }
.player__meta { margin-top: 6px; color: var(--muted); }
.player__close {
  position: absolute; top: 20px; right: var(--gutter);
  padding: 8px 14px;
  background: rgba(38, 38, 38, .85);
  border-radius: 999px;
  transition: background .2s;
}
.player__close:hover { background: #3a3a3a; }

@keyframes fade { from { opacity: 0; } }

@media (max-width: 760px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 28px 10px; }
  .card__label { flex-direction: row; font-size: 15px; }
  .card__meta { font-size: 13px; }
  .services { grid-template-columns: 1fr; }
  .services__list { grid-template-columns: 1fr; }
  .player__stage { flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 64px 0 16px; }
  .player__video { height: min(calc(100dvh - 148px), calc(100vw * 16 / 9)); }
  .player__info { width: 100%; padding: 0 16px; }
  .player__title { font-size: 18px; }
  .player__meta { margin-top: 2px; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
