:root {
  --bg: #131416;        /* faux noir */
  --bg-2: #1B1D20;
  --text: #F1F2F4;      /* faux blanc */
  --mute: #9AA0A9;
  --line: #2C2F34;
  --stage: #0A0B0C;
  --gutter: 24px;
  --max: 1200px;
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; text-align: left; }
img { display: block; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* En-tête */
.top { display: flex; justify-content: space-between; align-items: center; gap: 24px; max-width: var(--max); margin: 0 auto; padding: 28px var(--gutter) 22px; }
.brand { font-weight: 600; font-size: 20px; line-height: 1.2; text-decoration: none; }
.brand small { display: block; margin-top: 4px; font-weight: 400; font-size: 14px; color: var(--mute); }
.nav { display: flex; gap: 28px; font-weight: 600; font-size: 20px; line-height: 1.2; }
.nav a { text-decoration: none; color: var(--mute); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }

/* Boutons : contour fin, angles quasi droits */
.btn { display: inline-block; padding: 10px 20px; border: 1px solid #4a5058; border-radius: 2px; text-decoration: none; font-size: 15px; transition: background .15s, color .15s; }
.btn:hover { background: var(--bg-2); }
.btn.main { background: var(--text); border-color: var(--text); color: var(--bg); }
.btn.main:hover { background: #fff; }

/* Accueil */
.hero { background: var(--stage); }
.hero-media { position: relative; width: 100%; aspect-ratio: 16 / 9; max-height: calc(100svh - 190px); min-height: 220px; overflow: hidden; background: var(--stage); }
.hero-media iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; pointer-events: none; }
.hero-media video, .hero-media .hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.hero-in { background: var(--bg); border-bottom: 1px solid var(--line); padding: 20px 0; }
.hero-row { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.latest { text-decoration: none; display: block; max-width: 640px; }
.latest .lt-k { display: block; font-size: 14px; color: var(--mute); }
.latest .lt-t { display: block; font-weight: 600; font-size: 18px; line-height: 1.3; margin-top: 2px; }
.latest .lt-m { display: block; font-size: 14px; color: var(--mute); margin-top: 2px; }
.latest:hover .lt-t { text-decoration: underline; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* Sections */
.sec { padding: 56px 0 24px; }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; flex-wrap: wrap; margin-bottom: 24px; }
.sec-head h2, .page-title { font-weight: 600; font-size: 24px; line-height: 1.2; }
.more { font-size: 15px; color: var(--mute); }
.more:hover { color: var(--text); }
.page-head { padding: 24px 0 8px; display: flex; justify-content: space-between; align-items: baseline; gap: 24px; flex-wrap: wrap; }
.tools { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; }
.filters, .views { display: flex; gap: 4px; flex-wrap: wrap; }
.chip, .views button { padding: 6px 14px; border: 1px solid var(--line); border-radius: 2px; font-size: 14px; color: var(--mute); transition: color .15s, border-color .15s; }
.chip:hover, .views button:hover { color: var(--text); border-color: #4a5058; }
.chip[aria-pressed="true"], .views button[aria-pressed="true"] { color: var(--text); border-color: var(--text); }
.listing { padding: 24px 0 88px; }

/* Liste et grille */
.list { list-style: none; border-top: 1px solid var(--text); }
.row { position: relative; width: 100%; display: grid; grid-template-columns: 70px 1fr 300px 90px; gap: 24px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.row:hover .ti { text-decoration: underline; }
.row .yr { font-variant-numeric: tabular-nums; color: var(--mute); }
.row .ti { font-weight: 500; font-size: 17px; line-height: 1.35; }
.row .ro, .row .ca { color: var(--mute); font-size: 15px; }
.list .thumb, .list .meta { display: none; }
.grid { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 24px; }
.grid .row { display: flex; flex-direction: column; gap: 0; align-items: stretch; padding: 0; border: 0; }
.grid .thumb { order: 0; display: block; aspect-ratio: 16 / 9; background: var(--stage); overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: opacity .2s; }
.grid .row:hover .thumb img { opacity: .8; }
.grid .ti { order: 1; margin-top: 12px; font-size: 16px; line-height: 1.3; }
.grid .ro { order: 2; margin-top: 4px; font-size: 14px; line-height: 1.3; }
.grid .yr { order: 3; margin-top: 2px; font-size: 14px; line-height: 1.3; }
.grid .ca, .grid .meta { display: none; }

/* Fiche projet */
.stage-wrap { background: var(--stage); }
.stage { position: relative; max-width: var(--max); margin: 0 auto; aspect-ratio: 16 / 9; background: var(--stage); overflow: hidden; }
.stage iframe, .stage .poster { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.poster { display: block; padding: 0; }
.poster img { width: 100%; height: 100%; object-fit: cover; }
.play { position: absolute; left: 50%; top: 50%; width: 72px; height: 72px; margin: -36px 0 0 -36px; border: 1.5px solid #fff; border-radius: 50%; background: rgba(10,11,12,.35); display: grid; place-items: center; transition: background .15s; }
.play svg { width: 24px; height: 24px; margin-left: 3px; fill: #fff; }
.poster:hover .play { background: rgba(10,11,12,.65); }
.now { display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px 64px; padding: 32px 0 40px; align-items: start; }
.now h1 { font-weight: 600; font-size: clamp(22px, 3vw, 32px); line-height: 1.25; }
.now dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 20px; font-size: 15px; }
.now dt { color: var(--mute); }
.now dd { font-weight: 500; }
.now p { grid-column: 1 / -1; max-width: 68ch; color: #C9CDD3; white-space: pre-line; }
.now p:empty { display: none; }
.work { padding: 0 0 56px; }
.work .inner { border-top: 1px solid var(--line); padding-top: 32px; display: grid; grid-template-columns: 1fr 1.8fr; gap: 24px 64px; }
.work h2 { font-weight: 600; font-size: 20px; line-height: 1.3; }
.work p { max-width: 68ch; color: #C9CDD3; white-space: pre-line; }
.pn { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 0 0 72px; }
.pn a { display: block; text-decoration: none; border-top: 1px solid var(--line); padding-top: 14px; }
.pn a:hover .pn-t { text-decoration: underline; }
.pn .pn-k { display: block; font-size: 14px; color: var(--mute); }
.pn .pn-t { display: block; font-weight: 500; font-size: 17px; line-height: 1.35; margin-top: 2px; }
.pn .next { text-align: right; }
.empty { padding: 96px 0; }
.empty h1 { font-weight: 600; font-size: 28px; margin-bottom: 16px; }

/* Contact et pied de page */
.contact-sec { border-top: 1px solid var(--line); padding: 48px 0 56px; }
.contact { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
footer.foot { padding: 0 var(--gutter) 32px; color: var(--mute); font-size: 14px; text-align: center; }

@media (max-width: 860px) {
  :root { --gutter: 16px; }
  .now, .work .inner { grid-template-columns: 1fr; }
  .row { grid-template-columns: 56px 1fr; gap: 2px 16px; }
  .row .ro, .row .ca { grid-column: 2; }
  .grid { grid-template-columns: 1fr 1fr; gap: 28px 16px; }
  .play { width: 60px; height: 60px; margin: -30px 0 0 -30px; }
  .hero-media { max-height: none; }
}
@media (max-width: 520px) {
  .grid { grid-template-columns: 1fr; }
  .top { flex-direction: column; gap: 12px; }
  .pn { grid-template-columns: 1fr; }
  .pn .next { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
