/* =========================================================
   CineVibe Studio — feuille de style
   Noir profond, anthracite, typographie éditoriale.
   ========================================================= */

:root {
  --black: #08080a;
  --ink: #0d0d10;
  --anthracite: #151619;
  --graphite: #1e1f23;
  --steel: #2a2b30;
  --line: rgba(236, 233, 226, 0.09);
  --line-strong: rgba(236, 233, 226, 0.18);
  --text: #ece9e2;
  --muted: #9b988f;
  --faint: #6b6962;
  /* Or de la charte CineVibe (carte de visite) */
  --tungsten: #d2a752;
  --gold-light: #ecc97c;
  --gold-deep: #9c7330;
  --gold-grad: linear-gradient(135deg, #f1d18a 0%, #d2a752 45%, #9c7330 100%);
  --tungsten-soft: rgba(210, 167, 82, 0.14);
  --danger: #e0806a;
  --ok: #9fc29a;

  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1320px;
  --ease: cubic-bezier(0.22, 0.61, 0.21, 1);
  --header-h: 72px;

  color-scheme: dark;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  background: var(--black);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, video, svg, iframe { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }

::selection { background: var(--tungsten); color: var(--black); }

:focus-visible {
  outline: 1px solid var(--tungsten);
  outline-offset: 4px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--text);
  color: var(--black);
  text-decoration: none;
  font-size: 0.875rem;
  transition: top 0.2s;
}
.skip-link:focus { top: 16px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* Grain argentique très léger sur tout le site */
.grain {
  pointer-events: none;
  position: fixed;
  inset: -50%;
  z-index: 100;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); }
  80% { transform: translate(3%, 3%); }
  100% { transform: translate(0, 0); }
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Typographie ---------- */

.display {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.02;
}
.display em { font-style: italic; color: var(--tungsten); }

.h-section {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.4rem, 5.4vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}
.h-section em { font-style: italic; color: var(--muted); }

.slate {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 28px;
}
.slate::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--tungsten);
}
.slate b { color: var(--text); font-weight: 400; }

.lead {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--muted);
  max-width: 58ch;
  margin: 0;
}

/* ---------- Boutons ---------- */

.btn {
  --bg: transparent;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 15px 26px;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.45s var(--ease), border-color 0.45s var(--ease);
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--text);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.55s var(--ease);
}
.btn:hover::before,
.btn:focus-visible::before { transform: scaleX(1); transform-origin: left; }
.btn:hover,
.btn:focus-visible { color: var(--black); border-color: var(--text); }
.btn--solid { --bg: var(--text); color: var(--black); border-color: var(--text); }
.btn--solid::before { background: var(--tungsten); }
.btn--solid:hover, .btn--solid:focus-visible { border-color: var(--tungsten); }
.btn .arrow { transition: transform 0.45s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.link-line {
  position: relative;
  text-decoration: none;
  padding-bottom: 2px;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 0.5s var(--ease);
}
.link-line:hover, .link-line:focus-visible { background-size: 100% 1px; }

/* ---------- En-tête ---------- */

.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.5s var(--ease), border-color 0.5s var(--ease), transform 0.5s var(--ease);
  border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  background: rgba(8, 8, 10, 0.82);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--line);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  line-height: 1;
}
.brand__mark { width: 34px; height: 34px; flex: none; }
.brand__img { height: 40px; width: auto; }
.brand__name {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.32rem;
  letter-spacing: 0.01em;
  line-height: 1;
}
.brand__name .vibe {
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand__name small {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font-size: 0.42rem;
  font-weight: 500;
  letter-spacing: 0.62em;
  margin-right: -0.62em;
  color: var(--text);
}
.brand__name small::before,
.brand__name small::after {
  content: "";
  width: 12px;
  height: 1px;
  background: var(--tungsten);
}

/* Logo complet dans le hero */
.logo-lockup {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-bottom: clamp(28px, 4vh, 44px);
}
.logo-lockup svg { width: clamp(70px, 8vw, 96px); height: auto; }
.logo-lockup .word {
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  line-height: 1;
  letter-spacing: 0.01em;
}
.logo-lockup .word .vibe {
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.logo-lockup .studio {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.7em;
  margin-right: -0.7em;
}
.logo-lockup .studio::before,
.logo-lockup .studio::after {
  content: "";
  width: 30px;
  height: 1px;
  background: var(--tungsten);
}
.signature-line {
  font-size: clamp(0.66rem, 0.9vw, 0.76rem);
  font-weight: 500;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--tungsten);
}

.nav ul {
  display: flex;
  gap: clamp(18px, 2.4vw, 36px);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav a {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.3s;
}
.nav a:hover, .nav a:focus-visible, .nav a[aria-current="true"] { color: var(--text); }

.header__cta { padding: 11px 18px; font-size: 0.72rem; white-space: nowrap; }
@media (max-width: 1180px) and (min-width: 961px) {
  .header__cta { display: none; }
}

.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  margin-right: -10px;
  background: none;
  border: 0;
  cursor: pointer;
  position: relative;
}
.menu-toggle span {
  position: absolute;
  left: 11px; right: 11px;
  height: 1px;
  background: var(--text);
  transition: transform 0.45s var(--ease), top 0.45s var(--ease);
}
.menu-toggle span:nth-child(1) { top: 18px; }
.menu-toggle span:nth-child(2) { top: 25px; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { top: 22px; transform: rotate(-45deg); }

@media (max-width: 960px) {
  .menu-toggle { display: block; }
  .header__cta { display: none; }
  .nav {
    position: fixed;
    inset: 0;
    z-index: -1;
    display: flex;
    align-items: center;
    padding: var(--header-h) var(--gutter) 40px;
    background: var(--black);
    clip-path: inset(0 0 100% 0);
    transition: clip-path 0.7s var(--ease);
    visibility: hidden;
  }
  .nav.is-open { clip-path: inset(0 0 0 0); visibility: visible; }
  .nav ul { flex-direction: column; gap: 6px; }
  .nav a {
    font-family: var(--serif);
    font-size: clamp(2.2rem, 9vw, 3.2rem);
    letter-spacing: 0;
    text-transform: none;
    color: var(--text);
  }
  .nav a::before {
    content: attr(data-num);
    font-family: var(--mono);
    font-size: 0.7rem;
    color: var(--faint);
    margin-right: 16px;
    vertical-align: middle;
  }
  .menu-open { overflow: hidden; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--black);
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
/* Fond de secours cinématographique tant que la vidéo n'est pas fournie */
.hero__fallback {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 55% at 72% 38%, rgba(200, 160, 106, 0.22), transparent 70%),
    radial-gradient(45% 40% at 20% 75%, rgba(90, 105, 125, 0.18), transparent 70%),
    linear-gradient(180deg, #0c0c0f 0%, #121317 55%, #08080a 100%);
  animation: drift 22s var(--ease) infinite alternate;
}
.hero__fallback::after {
  /* faisceau de lumière diagonal */
  content: "";
  position: absolute;
  inset: -20%;
  background: linear-gradient(115deg, transparent 40%, rgba(236, 233, 226, 0.05) 48%, transparent 56%);
  animation: beam 14s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: scale(1.08) translate(-1.5%, 1%); } }
@keyframes beam { from { transform: translateX(-12%); } to { transform: translateX(12%); } }

.hero__video,
.hero__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.6s var(--ease);
}
.hero__video.is-ready,
.hero__poster.is-ready { opacity: 0.72; }

.hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 8, 10, 0.55) 0%, rgba(8, 8, 10, 0) 30%, rgba(8, 8, 10, 0.15) 60%, rgba(8, 8, 10, 0.95) 100%),
    radial-gradient(120% 90% at 50% 50%, transparent 55%, rgba(0, 0, 0, 0.55) 100%);
}

/* Bandes cinémascope qui s'ouvrent au chargement */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  z-index: 3;
  height: 50%;
  background: var(--black);
  transition: transform 1.6s var(--ease) 0.15s;
  pointer-events: none;
}
.hero::before { top: 0; }
.hero::after { bottom: 0; }
.is-loaded .hero::before { transform: translateY(-100%); }
.is-loaded .hero::after { transform: translateY(100%); }

.hero__hud {
  position: absolute;
  z-index: 2;
  top: calc(var(--header-h) + 18px);
  left: var(--gutter);
  right: var(--gutter);
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  color: var(--muted);
  text-transform: uppercase;
}
.hero__hud span { display: inline-flex; align-items: center; gap: 10px; }
.rec {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #d4523f;
  animation: rec 1.6s steps(2) infinite;
}
@keyframes rec { 50% { opacity: 0.15; } }

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-bottom: clamp(48px, 9vh, 110px);
  padding-top: calc(var(--header-h) + 80px);
}
.hero h1 { margin: 0; font-weight: 400; }
.hero__eyebrow {
  display: block;
  font-family: var(--sans);
  font-size: clamp(0.72rem, 1vw, 0.82rem);
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 26px;
}
.hero__title {
  display: block;
  font-size: clamp(3.1rem, 9.6vw, 9.2rem);
  max-width: 12ch;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero__title .line > span {
  display: inline-block;
  transform: translateY(105%);
  transition: transform 1.3s var(--ease);
}
.is-loaded .hero__title .line > span { transform: none; }
.is-loaded .hero__title .line:nth-child(1) > span { transition-delay: 0.55s; }
.is-loaded .hero__title .line:nth-child(2) > span { transition-delay: 0.68s; }
.is-loaded .hero__title .line:nth-child(3) > span { transition-delay: 0.81s; }

.hero__bottom {
  margin-top: clamp(32px, 5vh, 56px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 32px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 1.2s var(--ease) 1.1s, transform 1.2s var(--ease) 1.1s;
}
.is-loaded .hero__bottom { opacity: 1; transform: none; }
.hero__bottom .lead { color: #c3c0b8; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.scroll-cue {
  position: absolute;
  z-index: 2;
  right: var(--gutter);
  bottom: 28px;
  writing-mode: vertical-rl;
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--faint);
  display: flex;
  align-items: center;
  gap: 12px;
}
.scroll-cue::after {
  content: "";
  width: 1px;
  height: 46px;
  background: linear-gradient(var(--muted), transparent);
  animation: cue 2.4s var(--ease) infinite;
  transform-origin: top;
}
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

@media (max-width: 1100px) {
  .hero__bottom { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .hero__hud .hide-sm { display: none; }
  .scroll-cue { display: none; }
}

/* ---------- Sections ---------- */

.section {
  position: relative;
  padding: clamp(96px, 14vw, 180px) 0;
}
.section--alt { background: var(--ink); }
.section + .section { border-top: 1px solid var(--line); }

.section__head {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: end;
  margin-bottom: clamp(56px, 8vw, 100px);
}
@media (max-width: 860px) {
  .section__head { grid-template-columns: 1fr; align-items: start; }
}

/* ---------- Approche / À propos ---------- */

.about {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 7vw, 120px);
  align-items: start;
}
.about__portrait { position: sticky; top: calc(var(--header-h) + 32px); }
.about__text p { margin: 0 0 1.3em; color: #c9c6be; max-width: 60ch; }
.about__text p.big {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 2.9vw, 2.5rem);
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 1.2em;
}
.signature {
  margin-top: 40px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.signature strong { font-family: var(--serif); font-size: 1.5rem; font-weight: 400; }
.signature span { display: block; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

.specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 56px;
  background: var(--line);
  border: 1px solid var(--line);
}
.specs div { background: var(--black); padding: 22px 22px 20px; }
.section--alt .specs div { background: var(--ink); }
.specs dt {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 8px;
}
.specs dd { margin: 0; font-size: 0.95rem; color: var(--text); }

@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; }
  .about__portrait { position: relative; top: 0; max-width: 420px; }
}
@media (max-width: 480px) {
  .specs { grid-template-columns: 1fr; }
}

/* ---------- Emplacements médias (photos / vidéos à fournir) ---------- */

.frame {
  position: relative;
  overflow: hidden;
  background: var(--anthracite);
  border: 1px solid var(--line);
  aspect-ratio: var(--ratio, 16 / 9);
}
.frame img, .frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease), opacity 0.6s;
}
.frame--placeholder {
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.025) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.025) 50%, rgba(255, 255, 255, 0.025) 75%, transparent 75%) 0 0 / 14px 14px,
    radial-gradient(80% 80% at 70% 30%, rgba(200, 160, 106, 0.1), transparent 70%),
    var(--anthracite);
}
.frame__label {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 20px;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
  line-height: 1.8;
}
.frame__label strong { display: block; color: var(--muted); font-weight: 400; }
/* repères de cadre aux 4 coins */
.frame__corners::before,
.frame__corners::after,
.frame__corners span::before,
.frame__corners span::after {
  content: "";
  position: absolute;
  width: 16px; height: 16px;
  border-color: var(--line-strong);
  border-style: solid;
  border-width: 0;
}
.frame__corners::before { top: 12px; left: 12px; border-top-width: 1px; border-left-width: 1px; }
.frame__corners::after { top: 12px; right: 12px; border-top-width: 1px; border-right-width: 1px; }
.frame__corners span::before { bottom: 12px; left: 12px; border-bottom-width: 1px; border-left-width: 1px; }
.frame__corners span::after { bottom: 12px; right: 12px; border-bottom-width: 1px; border-right-width: 1px; }

/* ---------- Prestations ---------- */

.services { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.service {
  position: relative;
  display: grid;
  grid-template-columns: 80px minmax(0, 1.1fr) minmax(0, 1.3fr) minmax(0, 1fr);
  gap: clamp(16px, 3vw, 48px);
  align-items: baseline;
  padding: clamp(28px, 3.4vw, 44px) 0;
  border-bottom: 1px solid var(--line);
  transition: padding 0.6s var(--ease);
}
.service::before {
  content: "";
  position: absolute;
  inset: -1px 0 -1px 0;
  border-bottom: 1px solid var(--tungsten);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.8s var(--ease);
  pointer-events: none;
}
.service:hover::before { transform: scaleX(1); }
.service__num {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--faint);
}
.service h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.05;
  transition: transform 0.6s var(--ease), color 0.4s;
}
.service:hover h3 { transform: translateX(10px); }
.service p { margin: 0; color: var(--muted); max-width: 46ch; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tags li {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  padding: 5px 11px;
  border: 1px solid var(--line);
  color: #bdbab2;
  white-space: nowrap;
}

@media (max-width: 1080px) {
  .service { grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1.2fr); }
  .service .tags { grid-column: 2 / -1; }
}
@media (max-width: 680px) {
  .service { grid-template-columns: 1fr; gap: 12px; }
  .service .tags { grid-column: auto; }
  .service:hover h3 { transform: none; }
}

.note {
  margin-top: 28px;
  font-size: 0.85rem;
  color: var(--faint);
  max-width: 70ch;
}

/* ---------- Portfolio ---------- */

.reel-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 22px);
}
.work { grid-column: span 6; margin: 0; }
.work--wide { grid-column: span 12; }
.work--wide .frame { --ratio: 2.39 / 1; }
.work--third { grid-column: span 4; }
.work--vertical .frame { --ratio: 9 / 16; }

.work__play {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.work__play .disc {
  width: 74px; height: 74px;
  border-radius: 50%;
  border: 1px solid rgba(236, 233, 226, 0.5);
  display: grid;
  place-items: center;
  background: rgba(8, 8, 10, 0.35);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: transform 0.6s var(--ease), background 0.4s, border-color 0.4s;
}
.work__play:hover .disc,
.work__play:focus-visible .disc { transform: scale(1.1); background: var(--text); border-color: var(--text); }
.work__play:hover .disc path,
.work__play:focus-visible .disc path { fill: var(--black); }
.work__play:hover ~ img { transform: scale(1.04); }
.work iframe, .work video.player { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 3; background: #000; }

.work figcaption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding-top: 16px;
}
.work figcaption h3 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 1.45rem; line-height: 1.2; }
.work figcaption span {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
  white-space: nowrap;
}

@media (max-width: 860px) {
  .work, .work--third { grid-column: span 12; }
  .work--vertical { grid-column: span 6; }
  .work--vertical figcaption { flex-direction: column; gap: 4px; }
}

.portfolio__foot {
  margin-top: 56px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  color: var(--muted);
}

/* ---------- Clients professionnels ---------- */

.sectors {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.sector {
  position: relative;
  background: var(--ink);
  padding: clamp(28px, 3vw, 44px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 340px;
  overflow: hidden;
  transition: background 0.6s var(--ease);
}
.sector::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--tungsten);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.8s var(--ease);
}
.sector:hover { background: var(--anthracite); }
.sector:hover::after { transform: scaleX(1); }
.sector__icon { width: 34px; height: 34px; color: var(--tungsten); }
.sector h3 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 1.9rem; line-height: 1.1; }
.sector p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.sector ul {
  margin: auto 0 0;
  padding: 18px 0 0;
  list-style: none;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: #c3c0b8;
  display: grid;
  gap: 6px;
}
.sector li::before { content: "— "; color: var(--faint); }

/* ---------- Méthode ---------- */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  counter-reset: step;
  border-top: 1px solid var(--line);
}
.step {
  position: relative;
  padding: 32px 24px 0 0;
}
.step::before {
  content: "";
  position: absolute;
  top: -4px; left: 0;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--black);
  border: 1px solid var(--tungsten);
}
.step__tc {
  display: block;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--tungsten);
  margin-bottom: 18px;
}
.step h3 { margin: 0 0 10px; font-family: var(--serif); font-weight: 400; font-size: 1.6rem; }
.step p { margin: 0; color: var(--muted); font-size: 0.93rem; }

@media (max-width: 960px) {
  .steps { grid-template-columns: 1fr; border-top: 0; border-left: 1px solid var(--line); }
  .step { padding: 0 0 40px 32px; }
  .step::before { top: 4px; left: -4px; }
}

/* ---------- FAQ ---------- */

.faq { border-top: 1px solid var(--line); max-width: 980px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 28px 0;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.2vw, 1.8rem);
  line-height: 1.2;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus {
  position: relative;
  flex: none;
  width: 18px; height: 18px;
}
.faq summary .plus::before,
.faq summary .plus::after {
  content: "";
  position: absolute;
  top: 50%; left: 0;
  width: 100%; height: 1px;
  background: var(--text);
  transition: transform 0.5s var(--ease);
}
.faq summary .plus::after { transform: rotate(90deg); }
.faq details[open] summary .plus::after { transform: rotate(0deg); }
.faq .answer { padding: 0 0 30px; color: var(--muted); max-width: 70ch; }
.faq .answer p { margin: 0; }

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

.contact {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(48px, 7vw, 120px);
}
.contact__aside .h-section { margin-bottom: 32px; }
.contact__direct {
  margin-top: 48px;
  display: grid;
  gap: 28px;
}
.contact__direct dt {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 6px;
}
.contact__direct dd { margin: 0; }
.contact__direct .socials { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.phone {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}
.phone:hover { color: var(--tungsten); }

.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 28px; }
.field { position: relative; display: flex; flex-direction: column; gap: 10px; }
.field--full { grid-column: 1 / -1; }
.field label, .field legend {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0;
}
.field label .req { color: var(--tungsten); }
.field input,
.field select,
.field textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  padding: 10px 0 12px;
  font-size: 1.05rem;
  color: var(--text);
  transition: border-color 0.4s var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
.field select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%239b988f' stroke-width='1.2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
  padding-right: 28px;
}
.field select option { background: var(--anthracite); color: var(--text); }
.field textarea { resize: vertical; min-height: 140px; line-height: 1.55; }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-bottom-color: var(--tungsten); }
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible { outline: none; box-shadow: 0 1px 0 0 var(--tungsten); }
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-bottom-color: var(--danger); }
.field .error { min-height: 1.2em; font-size: 0.8rem; color: var(--danger); margin: -4px 0 0; }

.consent {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  font-size: 0.85rem;
  color: var(--muted);
}
.consent input {
  -webkit-appearance: none;
  appearance: none;
  width: 18px; height: 18px;
  margin: 3px 0 0;
  border: 1px solid var(--line-strong);
  background: transparent;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.consent input:checked { background: var(--tungsten); border-color: var(--tungsten); }
.consent input:checked::after {
  content: "";
  width: 9px; height: 5px;
  border-left: 1.5px solid var(--black);
  border-bottom: 1.5px solid var(--black);
  transform: rotate(-45deg) translate(1px, -1px);
}
.consent.has-error input { border-color: var(--danger); }
.consent a { color: var(--text); }

.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.form__foot {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.form__foot small { color: var(--faint); font-size: 0.78rem; }
.form-status {
  grid-column: 1 / -1;
  margin: 0;
  padding: 18px 20px;
  border: 1px solid var(--line);
  font-size: 0.95rem;
  display: none;
}
.form-status.is-visible { display: block; }
.form-status.is-ok { border-color: rgba(159, 194, 154, 0.4); color: var(--ok); }
.form-status.is-error { border-color: rgba(224, 128, 106, 0.45); color: var(--danger); }
.btn[disabled] { opacity: 0.55; cursor: progress; }

@media (max-width: 960px) {
  .contact { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .form { grid-template-columns: 1fr; }
}

/* ---------- Pied de page ---------- */

.footer {
  border-top: 1px solid var(--line);
  padding: clamp(64px, 8vw, 110px) 0 32px;
  background: var(--black);
}
.footer__big {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 8.5vw, 8rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin: 0 0 56px;
  text-decoration: none;
  display: inline-block;
}
.footer__big em { font-style: italic; color: var(--muted); transition: color 0.5s; }
.footer__big:hover em { color: var(--tungsten); }
.footer__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line);
}
.footer h2 {
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0 0 16px;
}
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 0.92rem; color: #c3c0b8; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--text); }
.footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding-top: 28px;
  font-size: 0.78rem;
  color: var(--faint);
}
@media (max-width: 860px) {
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .footer__grid { grid-template-columns: 1fr; }
}

/* ---------- Pages simples (mentions, merci, 404) ---------- */

.page {
  padding: calc(var(--header-h) + clamp(64px, 10vw, 120px)) 0 clamp(80px, 10vw, 140px);
  min-height: 80svh;
}
.prose { max-width: 760px; }
.prose h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.6rem, 6vw, 4.4rem); line-height: 1.05; margin: 0 0 40px; }
.prose h2 { font-family: var(--serif); font-weight: 400; font-size: 1.8rem; margin: 56px 0 16px; }
.prose p, .prose li { color: #c3c0b8; }
.prose a { color: var(--text); }
.todo { color: var(--tungsten); font-family: var(--mono); font-size: 0.85em; }

/* ---------- Apparitions au défilement ---------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
  transition-delay: var(--d, 0s);
}
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Mouvements réduits ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0s !important;
  }
  .grain { display: none; }
  .reveal { opacity: 1; transform: none; }
}
