/* Baptiste Camps — feuille de style du site
   Concept : « plateau de tournage ». Fond noir chaud façon salle d'étalonnage,
   images en plein cadre, titres en serif fin avec mots-clés en italique,
   détails techniques (timecode, durées, ratio) en police mono. */

:root {
  /* Couleurs */
  --ink: #121110;        /* fond principal, noir chaud */
  --ink-2: #1a1917;      /* fond des sections alternées */
  --ink-3: #24221f;      /* surfaces (cartes, champs) */
  --line: #34312d;       /* filets */
  --paper: #eeebe5;      /* texte principal */
  --muted: #a7a197;      /* texte secondaire */
  --accent: #d6b98c;     /* laiton : mots en italique, liens actifs */
  --rec: #e5484d;        /* point « REC » */
  /* Typographie */
  --display: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --body: "Geist", "Helvetica Neue", Arial, system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  /* Échelle */
  --step--1: 0.8125rem;
  --step-0: 1rem;
  --step-1: 1.1875rem;
  --step-2: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  --step-3: clamp(2.1rem, 1.5rem + 2.6vw, 3.4rem);
  --step-4: clamp(2.6rem, 1.6rem + 4.4vw, 5.4rem);
  --wrap: 1280px;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --header-h: 72px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--accent); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 64px);
  margin-inline: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter-r);
}
@media (min-width: 720px) {
  .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); }
}

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--paper); color: var(--ink); padding: 10px 16px; border-radius: 4px;
}
.skip:focus { top: calc(12px + env(safe-area-inset-top, 0px)); }

/* ---------- Typo ---------- */
h1, h2, h3 { margin: 0; font-weight: 400; text-wrap: balance; }
.display { font-family: var(--display); font-weight: 400; letter-spacing: -0.01em; line-height: 1.02; }
.display em, h2 em, h1 em { font-style: italic; color: var(--accent); }
.eyebrow {
  font-family: var(--mono); font-size: var(--step--1); text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--muted); margin: 0;
}
.lead { font-size: var(--step-1); line-height: 1.6; color: var(--muted); max-width: 60ch; margin: 0; }
p { margin: 0; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px;
  padding: 12px 22px; border-radius: 999px; font: 500 0.9375rem/1 var(--body);
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn-primary { background: var(--paper); color: var(--ink); }
.btn-primary:hover { background: var(--accent); }
.btn-ghost { border-color: rgba(238, 235, 229, .35); color: var(--paper); background: transparent; }
.btn-ghost:hover { border-color: var(--paper); }
.btn svg { width: 16px; height: 16px; flex: none; }

/* ---------- En-tête ---------- */
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 60; background: var(--ink);
}
.site-header {
  position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; z-index: 50;
  transition: background-color .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-solid, .site-header.is-static {
  background: rgba(18, 17, 16, .92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom-color: var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: var(--header-h);
}
.brand {
  font-family: var(--display); font-size: 1.6rem; line-height: 1; text-decoration: none;
  letter-spacing: -0.01em; white-space: nowrap;
}
.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) {
  text-decoration: none; font-size: 0.9375rem; color: var(--muted); transition: color .2s;
}
.nav a:not(.btn):hover, .nav a[aria-current="page"] { color: var(--paper); }
.nav .btn { min-height: 42px; padding: 10px 18px; }
.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 999px;
  background: transparent; color: var(--paper); cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle svg { width: 18px; height: 18px; }
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; left: 0; right: 0; top: calc(var(--header-h) + env(safe-area-inset-top, 0px));
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter-r) 24px var(--gutter);
  }
  .nav[hidden] { display: none; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.125rem; color: var(--paper); }
  .nav .btn { margin-top: 20px; justify-content: center; }
}


/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: clamp(560px, 86vh, 920px);
  display: flex; align-items: flex-end; overflow: hidden; isolation: isolate;
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media video, .hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(18,17,16,.55) 0%, rgba(18,17,16,.15) 35%, rgba(18,17,16,.35) 60%, rgba(18,17,16,.92) 100%);
}
.hero-inner {
  width: 100%; padding-top: calc(var(--header-h) + 48px); padding-bottom: clamp(40px, 6vw, 72px);
  display: grid; gap: 28px;
}
.hero h1 { font-size: clamp(3.4rem, 1.6rem + 7.5vw, 8.5rem); line-height: .95; letter-spacing: -0.02em; max-width: 12ch; }
.hero .lead { color: #d9d4cb; font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.3rem); max-width: 44ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px;
  border-top: 1px solid rgba(238, 235, 229, .2); padding-top: 18px;
  font-family: var(--mono); font-size: var(--step--1); color: #cfc9bf; letter-spacing: 0.04em;
}
.rec { display: inline-flex; align-items: center; gap: 8px; font-variant-numeric: tabular-nums; }
.rec::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--rec); animation: blink 1.6s steps(1) infinite; }
@keyframes blink { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .rec::before { animation: none; } }

/* ---------- Sections ---------- */
.section { padding-block: clamp(72px, 10vw, 136px); }
.section-alt { background: var(--ink-2); }
.section-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 20px 40px; margin-bottom: clamp(36px, 5vw, 64px);
}
.section-head > div:first-child { display: grid; gap: 14px; min-width: 0; }
.section-head h2 { font-size: var(--step-3); }
.section-head .lead { max-width: 46ch; }

/* ---------- Clients ---------- */
.clients { border-block: 1px solid var(--line); padding-block: 36px; }
.clients .wrap { display: grid; gap: 18px; }
.clients ul {
  list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 40px;
}
.clients ul { align-items: center; }
.clients li { display: flex; align-items: center; }
.clients li img { height: clamp(28px, 3vw, 42px); width: auto; max-width: 160px; object-fit: contain; opacity: .78; transition: opacity .2s; }
.clients li img:hover { opacity: 1; }

/* ---------- Films : grille décalée ---------- */
.works { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; align-items: start; }
.works-col { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.tile { position: relative; width: 100%; max-width: 100%; overflow: hidden; border-radius: 4px; background: var(--ink-3); }
.tile-link { position: absolute; inset: 0; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; color: var(--paper); text-decoration: none; cursor: pointer; text-align: left; font: inherit; }
.tile-video, .tile-still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1); transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.tile-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,9,8,.15) 0%, rgba(10,9,8,.35) 55%, rgba(10,9,8,.78) 100%); transition: background-color .5s ease; }
.tile-text { position: absolute; left: 28px; right: 90px; bottom: 26px; display: grid; gap: 6px; }
.tile-type { font: 400 0.75rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: #d9d4cb; }
.tile-title { font-family: var(--display); font-size: clamp(1.6rem, 1.1rem + 1.4vw, 2.6rem); line-height: 1.05; text-wrap: balance; }
.tile-play {
  position: absolute; right: 24px; bottom: 24px; width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; border: 1px solid rgba(238,235,229,.5); transition: background-color .3s, color .3s, border-color .3s;
}
.tile-play svg { width: 18px; height: 18px; margin-left: 2px; }
.tile-link:hover .tile-shade, .tile-link:focus-visible .tile-shade { background: linear-gradient(180deg, rgba(10,9,8,0) 40%, rgba(10,9,8,.6) 100%); }
.tile-link:hover .tile-video, .tile-link:hover .tile-still { transform: scale(1.03); }
.tile-link:hover .tile-play { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.tile-link:focus-visible { outline: 2px solid var(--accent); outline-offset: -4px; }
@media (prefers-reduced-motion: no-preference) {
  .tile-still { animation: drift 18s ease-in-out infinite alternate; }
}
@keyframes drift { from { transform: scale(1); } to { transform: scale(1.06); } }
.works-more { display: flex; justify-content: center; margin-top: 44px; }
@media (max-width: 720px) {
  .works { display: flex; flex-direction: column; gap: 16px; }
  .works-col { display: contents; }
  .tile-text { left: 18px; bottom: 18px; right: 76px; }
  .tile-play { right: 16px; bottom: 16px; width: 46px; height: 46px; }
}

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 44px 24px; align-items: start; }
.services-grid .service { grid-column: span 2; }
.services-grid .service:nth-child(n+4) { grid-column: span 3; }
.services-grid .service:nth-child(n+4) .service-img { aspect-ratio: 16 / 9; }

@media (max-width: 1000px) { .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .services-grid .service, .services-grid .service:nth-child(n+4) { grid-column: auto; } .services-grid .service:nth-child(5) { grid-column: 1 / -1; }  }
@media (max-width: 620px) { .services-grid { grid-template-columns: minmax(0, 1fr); } }
.service { display: grid; gap: 18px; align-content: start; min-width: 0; }
.service-img { aspect-ratio: 3 / 2; max-width: 100%; overflow: hidden; border-radius: 3px; background: var(--ink-3); }
.service-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.service:hover .service-img img { transform: scale(1.04); }
.service-body { display: grid; gap: 10px; }
.service h3 { font-family: var(--display); font-size: var(--step-2); line-height: 1.15; }
.service p { color: var(--muted); max-width: 46ch; }
.service-tags { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.service-tags li { font: 400 0.75rem/1 var(--mono); letter-spacing: .04em; color: #cfc9bf; border: 1px solid var(--line); border-radius: 999px; padding: 7px 10px; }

/* ---------- Photo (aperçu accueil) ---------- */
.photo-masonry { columns: 3 260px; column-gap: 12px; }
.photo-masonry a { display: block; position: relative; margin-bottom: 12px; break-inside: avoid; border-radius: 3px; overflow: hidden; background: var(--ink-3); }
.photo-masonry figure { margin: 0; }
.photo-masonry img { width: 100%; height: auto; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.photo-masonry a:hover img { transform: scale(1.03); }
.photo-masonry figcaption { position: absolute; left: 12px; bottom: 10px; font: 400 0.75rem/1.3 var(--mono); color: #eeebe5; text-shadow: 0 1px 8px rgba(0,0,0,.7); letter-spacing: .04em; }
.photo-strip { display: grid; gap: 12px; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: clamp(120px, 14vw, 200px); }
.photo-strip figure { margin: 0; height: 100%; }
.photo-strip a { position: relative; overflow: hidden; border-radius: 3px; background: var(--ink-3); }
.photo-strip img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.photo-strip a:hover img { transform: scale(1.04); }
.photo-strip figcaption {
  position: absolute; left: 12px; bottom: 10px; right: 12px; font: 400 0.75rem/1.3 var(--mono);
  color: #eeebe5; text-shadow: 0 1px 8px rgba(0,0,0,.7); letter-spacing: .04em;
}
.ps-1 { grid-column: span 7; grid-row: span 2; }
.ps-2 { grid-column: span 5; grid-row: span 1; }
.ps-3 { grid-column: span 5; grid-row: span 1; }
.ps-4 { grid-column: span 4; grid-row: span 2; }
.ps-5 { grid-column: span 4; grid-row: span 2; }
.ps-6 { grid-column: span 4; grid-row: span 2; }
@media (max-width: 720px) {
  .photo-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 150px; }
  .ps-1 { grid-column: 1 / -1; grid-row: span 2; }
  .ps-2, .ps-3, .ps-4, .ps-5, .ps-6 { grid-column: span 1; grid-row: span 1; }
  .ps-6 { display: none; }
}
.more-link {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 32px; text-decoration: none;
  font-weight: 500; border-bottom: 1px solid var(--line); padding-bottom: 6px;
}
.more-link:hover { border-color: var(--accent); color: var(--accent); }
.more-link svg { width: 16px; height: 16px; }

/* ---------- Approche ---------- */
.approach { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px 32px; align-items: center; }
.approach-img { grid-column: span 7; position: relative; margin: 0; }
.approach-img img { width: 100%; height: auto; border-radius: 3px; }
.approach-img figcaption { margin-top: 10px; font: 400 0.75rem/1.4 var(--mono); color: var(--muted); letter-spacing: .04em; }
.approach-text { grid-column: 8 / -1; align-self: center; display: grid; gap: 22px; min-width: 0; }
.approach-text h2 { font-size: var(--step-3); }
.approach-text p { color: #cfc9bf; max-width: 56ch; }
@media (max-width: 960px) {
  .approach-img, .approach-text { grid-column: 1 / -1; }
}
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 20px; margin: 8px 0 0; padding: 22px 0 0; border-top: 1px solid var(--line); }
.facts div { display: grid; gap: 2px; }
.facts dt { font-family: var(--display); font-size: 2rem; line-height: 1.1; }
.facts dd { margin: 0; color: var(--muted); font-size: 0.9375rem; }

/* ---------- Méthode ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 40px 32px; counter-reset: step; }
.steps li { display: grid; gap: 12px; align-content: start; padding-top: 22px; border-top: 1px solid var(--paper); counter-increment: step; }
.steps li::before { content: "0" counter(step); font: 400 var(--step--1)/1 var(--mono); color: var(--accent); letter-spacing: .08em; }
.steps h3 { font-family: var(--display); font-size: var(--step-2); line-height: 1.15; }
.steps p { color: var(--muted); }

/* ---------- Contact ---------- */
.contact { text-align: left; }
.contact h2 { font-size: clamp(3rem, 1.8rem + 6vw, 7.5rem); line-height: .98; }
.contact-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px 32px; margin-top: clamp(32px, 5vw, 56px); align-items: end; }
.contact-intro { grid-column: span 6; display: grid; gap: 24px; align-content: end; }
.contact-lines { grid-column: 8 / -1; display: grid; gap: 14px; }
@media (max-width: 960px) { .contact-intro, .contact-lines { grid-column: 1 / -1; } }
.contact-line {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px;
  padding-block: 16px; border-bottom: 1px solid var(--line);
}
.contact-line span:first-child { font-family: var(--mono); font-size: var(--step--1); color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.contact-line a, .contact-line strong { font-family: var(--display); font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); font-weight: 400; text-decoration: none; user-select: all; overflow-wrap: anywhere; }
.contact-line a:hover { color: var(--accent); }
.copy {
  font: 500 0.8125rem/1 var(--body); background: transparent; color: var(--muted); border: 1px solid var(--line);
  border-radius: 999px; padding: 8px 12px; cursor: pointer; min-height: 36px;
}
.copy:hover { color: var(--paper); border-color: var(--paper); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; }

/* ---------- Pied de page ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 32px calc(32px + env(safe-area-inset-bottom, 0px)); font-size: 0.875rem; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--paper); }

/* ---------- Lecteur vidéo (modale) ---------- */
.player {
  position: fixed; inset: 0; z-index: 90; background: rgba(10, 9, 8, .94);
  display: grid; place-items: center;
  padding: calc(64px + env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) calc(24px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
}
.player-box { width: min(1280px, 100%); display: grid; gap: 14px; }
.player-screen { position: relative; width: 100%; }
.player video { width: 100%; max-height: calc(100vh - 170px); background: #000; border-radius: 3px; }
.player-embed { position: relative; width: 100%; aspect-ratio: 16 / 9; max-height: calc(100vh - 170px); background: #000; border-radius: 3px; overflow: hidden; }
.player-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player-out { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 3px; overflow: hidden; background: var(--ink-3); display: grid; place-items: center; }
.player-out img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.player-out .btn { position: relative; }
.player-link { font-size: 0.875rem; color: var(--muted); display: inline-flex; gap: 6px; align-items: center; }
.player-link svg { width: 14px; height: 14px; }
.player.is-vertical .player-box { width: min(420px, 100%); }
.player.is-vertical .player-embed, .player.is-vertical .player-out { aspect-ratio: 9 / 16; }
.player-title { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; flex-wrap: wrap; }
.player-title h3 { font-family: var(--display); font-size: var(--step-2); }
.player-close {
  position: fixed; top: calc(14px + env(safe-area-inset-top, 0px)); right: max(16px, env(safe-area-inset-right, 0px));
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: var(--ink-3);
  color: var(--paper); cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
}
.player-close svg { width: 18px; height: 18px; }
.player-error { color: var(--muted); }

/* ---------- Page Photographie ---------- */
.page-head { padding-top: calc(var(--header-h) + clamp(56px, 8vw, 104px)); padding-bottom: clamp(28px, 4vw, 48px); }
.page-head h1 { font-size: var(--step-4); max-width: 18ch; }
.page-head .wrap { display: grid; gap: 22px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter {
  font: 500 0.875rem/1 var(--body); color: var(--muted); background: transparent; border: 1px solid var(--line);
  border-radius: 999px; padding: 12px 16px; min-height: 44px; cursor: pointer;
}
.filter:hover { color: var(--paper); border-color: #5a5650; }
.filter[aria-pressed="true"] { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.filter .count { font-family: var(--mono); font-size: 0.75rem; opacity: .7; margin-left: 6px; }
.gallery { columns: 3 320px; column-gap: 14px; }
.gallery figure { margin: 0 0 14px; break-inside: avoid; }
.gallery button { display: block; width: 100%; padding: 0; border: 0; background: var(--ink-3); cursor: zoom-in; border-radius: 3px; overflow: hidden; }
.gallery img { width: 100%; height: auto; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.gallery button:hover img { transform: scale(1.03); }
.gallery figcaption { margin-top: 8px; font: 400 0.75rem/1.4 var(--mono); color: var(--muted); letter-spacing: .03em; }
.lightbox {
  position: fixed; inset: 0; z-index: 90; background: rgba(10, 9, 8, .96); display: grid;
  grid-template-rows: 1fr auto; padding: calc(70px + env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) calc(16px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
}
.lightbox img { max-width: 100%; max-height: calc(100vh - 160px); margin: auto; object-fit: contain; border-radius: 2px; }
.lightbox-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 14px; font: 400 0.8125rem/1.4 var(--mono); color: var(--muted); }
.lightbox-nav { display: flex; gap: 8px; }
.icon-btn {
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: var(--ink-3);
  color: var(--paper); cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
}
.icon-btn svg { width: 18px; height: 18px; }

/* ---------- Pages texte (mentions) ---------- */
.prose { max-width: 70ch; display: grid; gap: 14px; padding-bottom: clamp(72px, 10vw, 120px); }
.prose h2 { font-family: var(--display); font-size: var(--step-2); margin-top: 28px; }
.prose p, .prose li { color: #cfc9bf; }
.prose ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.prose a { color: var(--accent); }

/* ---------- Apparition au défilement (visible par défaut) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
  .js .reveal.is-pending { opacity: 0; transform: translateY(18px); }
}

/* ---------- Page contact ---------- */
.contact-page { padding-bottom: clamp(72px, 10vw, 120px); }
.contact-layout { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 48px 32px; align-items: start; }
.form { grid-column: span 7; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 20px; }
.contact-aside { grid-column: 9 / -1; display: grid; gap: 4px; }
@media (max-width: 960px) { .form, .contact-aside { grid-column: 1 / -1; } }
@media (max-width: 560px) { .form { grid-template-columns: minmax(0, 1fr); } }
.field { display: grid; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field-full { grid-column: 1 / -1; }
.field label, .field legend { font-family: var(--mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); padding: 0; }
.field legend { margin-bottom: 10px; }
.opt { text-transform: none; letter-spacing: 0; }
.field input, .field textarea {
  width: 100%; font: 400 1rem/1.5 var(--body); color: var(--paper); background: transparent;
  border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 10px 0; min-height: 44px;
}
.field textarea { resize: vertical; border: 1px solid var(--line); border-radius: 3px; padding: 12px 14px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field ::placeholder { color: #6f6a62; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; font-size: 0.9375rem; color: var(--muted); }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip:has(input:checked) { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.chip:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; padding-top: 6px; }
.form-note { font-size: 0.8125rem; color: var(--muted); }
.form-status { padding: 14px 16px; border: 1px solid var(--line); border-radius: 3px; color: var(--paper); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.field .chip {
  font: 400 0.9375rem/1.2 var(--body); text-transform: none; letter-spacing: 0;
  color: var(--muted); padding: 10px 16px;
}
.field .chip:has(input:checked) { color: var(--ink); }
