/* Page Réalisations — autonome. Héros découpé dans le reel, photos à l'horizontale, films, verticaux, galerie. */
@font-face { font-family: "RX Satoshi"; src: url("/fonts/satoshi-variable-v1.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }

:root {
  --bg: #151817;
  --bg-2: #1d2120;
  --ink: #f3f1ec;
  --muted: #b7bdb9;
  --paper: #f3f1ec;
  --paper-2: #ebe8e1;
  --muted-light: #5a605d;
  --rule-light: #d8d4cb;
  --line: rgba(243, 241, 236, .14);
  --accent: #f3f1ec;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-io: cubic-bezier(.77, 0, .175, 1);
  --gutter: clamp(16px, 4vw, 56px);
  --display: "RX Satoshi", "Manrope", system-ui, sans-serif;
  --radius: 14px;
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; overflow-x: clip; }
body.rx { margin: 0; background: var(--bg); color: var(--ink); font-family: "Manrope", system-ui, sans-serif; font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: clip; }
.rx img, .rx video { display: block; max-width: 100%; }
.rx button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.rx a { color: inherit; }
.rx :focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.rx h2 { font-family: var(--display); font-weight: 400; font-size: clamp(40px, 6.4vw, 104px); line-height: .92; letter-spacing: -.035em; margin: 0 0 20px; }
.rx h2 em { font-style: normal; color: var(--muted); }
.rx-wrap { width: min(1440px, 100%); margin: 0 auto; padding: 0 var(--gutter); }
.rx-eyebrow { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin: 0 0 18px; }
.rx-section-head p:not(.rx-eyebrow) { max-width: 46ch; color: var(--muted); margin: 0; }
.rx-skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 8px; }
.rx-skip:focus { left: 8px; }

/* Boutons */
.rx-btn { display: inline-flex; align-items: center; gap: 10px; padding: 16px 26px; border-radius: 999px; background: var(--ink); color: var(--bg) !important; text-decoration: none; font-weight: 600; letter-spacing: .01em; transition: transform 160ms var(--ease-out), background-color 200ms ease; }
.rx-btn:hover { background: var(--paper-2); }
.rx-btn:active { transform: scale(.97); }
.rx-btn-small { padding: 10px 18px; font-size: 14px; }
.rx-btn-ghost { background: transparent; color: var(--ink) !important; box-shadow: inset 0 0 0 1px var(--line); }
.rx-btn-ghost:hover { background: rgba(243, 241, 236, .08); }

/* Navigation */
.rx-nav { position: fixed; inset: 14px var(--gutter) auto; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 10px 12px 10px 20px; border-radius: 999px; background: rgba(11, 13, 13, .55); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); box-shadow: inset 0 0 0 1px var(--line); transition: transform 400ms var(--ease-out), opacity 300ms ease; }
.rx-nav.is-hidden { transform: translateY(-140%); opacity: 0; }
.rx-logo img { width: 118px; height: auto; }
.rx-nav ul { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.rx-nav ul a { display: block; padding: 8px 14px; border-radius: 999px; text-decoration: none; font-size: 14px; color: var(--muted); transition: color 160ms ease, background-color 160ms ease; }
.rx-nav ul a:hover, .rx-nav ul a[aria-current="true"] { color: var(--ink); background: rgba(243, 241, 236, .08); }
.rx-nav-end { display: flex; align-items: center; gap: 10px; }
.rx-lang { font-size: 13px; letter-spacing: .12em; text-decoration: none; color: var(--muted); padding: 8px; }
.rx-lang:hover { color: var(--ink); }
@media (max-width: 860px) { .rx-nav ul { display: none; } }

/* 1. Héros : le titre est une fenêtre sur le reel. Le défilement plonge dans une lettre. */
.rx-hero { position: relative; height: 320vh; }
.rx-hero-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.rx-hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rx-hero-mask { position: absolute; inset: 0; display: grid; place-items: center; background: var(--bg); mix-blend-mode: multiply; contain: paint; transform-origin: var(--ox, 50%) var(--oy, 50%); }
.rx-hero-title { margin: 0; font-family: var(--display); font-weight: 900; font-size: clamp(56px, 17vw, 300px); line-height: .8; letter-spacing: -.055em; color: #fff; white-space: nowrap; transform: translateY(-.04em); }
.rx-hero-meta { position: absolute; inset: auto var(--gutter) clamp(20px, 5vh, 48px); display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; will-change: opacity, transform; }
.rx-kicker { margin: 0; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); max-width: 28ch; }
.rx-counts { display: flex; gap: clamp(20px, 4vw, 56px); list-style: none; margin: 0; padding: 0; }
.rx-counts li { display: grid; gap: 2px; }
.rx-counts strong { font-family: var(--display); font-weight: 400; font-size: clamp(30px, 3.6vw, 56px); line-height: 1; font-variant-numeric: tabular-nums; }
.rx-counts span { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.rx-scroll-hint { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.rx-scroll-hint span { width: 1px; height: 40px; background: linear-gradient(var(--ink), transparent); transform-origin: top; animation: rx-drip 1.8s var(--ease-io) infinite; }
@keyframes rx-drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
.rx-hero-title [data-origin] { display: inline-block; }
@media (max-width: 800px) { .rx-hero { height: 260vh; } .rx-counts strong { font-size: 30px; } }

/* 2. Photos à l'horizontale, épinglées pendant le défilement vertical */
.rx-pin { position: relative; background: var(--bg); }
.rx-pin-stage { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; grid-template-columns: clamp(320px, 32vw, 500px) 1fr; align-items: center; overflow: hidden; }
.rx-pin-head { position: relative; z-index: 2; align-self: stretch; display: flex; flex-direction: column; justify-content: center; padding: 0 var(--gutter); background: var(--bg); }
.rx-pin-head h2 { font-size: clamp(34px, min(4.4vw, 8.5vh), 76px); overflow-wrap: normal; }
.rx-pin-head::after { content: ""; position: absolute; top: 0; bottom: 0; left: 100%; width: 80px; background: linear-gradient(90deg, var(--bg), transparent); pointer-events: none; }
.rx-pin-head p:not(.rx-eyebrow):not(.rx-pin-progress) { color: var(--muted); max-width: 34ch; margin: 0 0 28px; }
.rx-pin-progress { font-family: var(--display); font-size: 15px; letter-spacing: .1em; color: var(--muted); margin: 0; font-variant-numeric: tabular-nums; }
.rx-pin-progress span { color: var(--ink); }
.rx-pin-track { display: flex; gap: clamp(20px, 3vw, 48px); list-style: none; margin: 0; padding: 0 var(--gutter) 0 0; will-change: transform; }
.rx-card { flex: 0 0 auto; width: clamp(260px, min(52vw, calc((100vh - 170px) * 1.5)), 820px); transform: rotate(calc(var(--r) * .6deg)); transition: transform 600ms var(--ease-out); }
.rx-card:hover { transform: rotate(0deg) translateY(-4px); }
.rx-card-open { display: block; width: 100%; border-radius: var(--radius); overflow: hidden; }
.rx-card-media { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--bg-2); }
.rx-card-media img { width: 118%; max-width: none; height: 100%; object-fit: cover; transform: translateX(var(--px, -8%)); transition: scale 700ms var(--ease-out); }
.rx-card-open:hover img { scale: 1.03; }
.rx-card-cap { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: baseline; padding: 14px 4px 0; }
.rx-card-num { font-family: var(--display); color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.rx-card-title { font-size: 16px; }
.rx-card-cat { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 800px) {
  .rx-pin { height: auto !important; padding: 96px 0 64px; }
  .rx-pin-stage { position: static; height: auto; display: block; overflow: visible; }
  .rx-pin-head { margin-bottom: 28px; }
  .rx-pin-track { transform: none !important; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 var(--gutter) 12px; scrollbar-width: none; }
  .rx-pin-track::-webkit-scrollbar { display: none; }
  .rx-card { width: 82vw; scroll-snap-align: center; transform: none; }
}

/* 3. Films */
.rx-films { position: relative; padding: clamp(96px, 14vw, 200px) 0 clamp(64px, 10vw, 140px); background: var(--bg); }
.rx-films .rx-section-head { display: grid; grid-template-columns: 1fr minmax(240px, 380px); align-items: end; gap: 24px 48px; margin-bottom: clamp(36px, 5vw, 72px); }
.rx-films .rx-eyebrow, .rx-films h2 { grid-column: 1; }
.rx-films .rx-section-head p:not(.rx-eyebrow) { grid-column: 2; grid-row: 2; }
.rx-film-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); list-style: none; margin: 0; padding: 0; }
.rx-film:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.rx-film-open { display: block; width: 100%; text-align: left; cursor: none; }
.rx-film-media { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: var(--bg-2); }
.rx-film:nth-child(1) .rx-film-media { aspect-ratio: auto; height: 100%; min-height: 0; }
.rx-film:nth-child(1) .rx-film-open { height: 100%; display: grid; grid-template-rows: 1fr auto; }
.rx-film-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: scale 900ms var(--ease-out), filter 400ms ease; filter: saturate(.85) brightness(.88); }
.rx-film-open:hover video, .rx-film-open:focus-visible video { scale: 1.04; filter: none; }
.rx-film-meta { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: baseline; padding: 14px 4px 0; }
.rx-film-num { font-family: var(--display); color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.rx-film-kind { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.rx-cursor { position: fixed; left: 0; top: 0; z-index: 40; width: 92px; height: 92px; margin: -46px 0 0 -46px; border-radius: 50%; background: var(--paper); color: var(--bg); display: grid; place-items: center; font-weight: 600; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; pointer-events: none; transform: translate3d(var(--cx, -200px), var(--cy, -200px), 0) scale(var(--cs, 0)); transition: transform 160ms var(--ease-out); }
@media (hover: none), (pointer: coarse) { .rx-cursor { display: none; } .rx-film-open { cursor: pointer; } }
@media (max-width: 960px) { .rx-film-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .rx-films .rx-section-head { grid-template-columns: 1fr; } .rx-films .rx-section-head p:not(.rx-eyebrow) { grid-column: 1; grid-row: auto; } }
@media (max-width: 600px) { .rx-film-grid { grid-template-columns: 1fr; } .rx-film:nth-child(1) { grid-column: auto; grid-row: auto; } .rx-film:nth-child(1) .rx-film-media { aspect-ratio: 16 / 9; height: auto; min-height: 0; } .rx-film:nth-child(1) .rx-film-open { display: block; } }

/* 4. Verticaux : trois téléphones qui s'ouvrent en éventail */
.rx-vert { padding: clamp(80px, 12vw, 180px) 0; background: var(--bg-2); overflow: hidden; }
.rx-vert-grid { display: grid; grid-template-columns: minmax(260px, .8fr) 1.6fr; align-items: center; gap: 48px; }
.rx-phones { position: relative; display: flex; justify-content: center; list-style: none; margin: 0; padding: 0; min-height: min(78vh, 700px); --fan: 0; }
.rx-phone { position: absolute; top: 50%; left: 50%; width: clamp(150px, min(16vw, 32vh), 260px); transform: translate(-50%, -50%) translateX(calc(var(--k) * var(--fan) * 116%)) rotate(calc(var(--k) * (1 - var(--fan)) * 9deg)) translateY(calc(var(--k) * var(--k) * var(--fan) * 6%)); transition: transform 120ms linear; z-index: calc(2 - var(--k) * var(--k)); text-align: center; }
.rx-phone-open { display: block; width: 100%; aspect-ratio: 9 / 19.5; border-radius: 34px; overflow: hidden; background: #000; box-shadow: 0 0 0 7px #2a2f2d, 0 0 0 8px rgba(243, 241, 236, .18), 0 40px 80px rgba(0, 0, 0, .55); }
.rx-phone-open video { width: 100%; height: 100%; object-fit: cover; }
.rx-phone > span { display: block; margin-top: 22px; font-size: 13px; color: var(--muted); opacity: var(--fan); }
@media (max-width: 860px) {
  .rx-vert-grid { grid-template-columns: 1fr; }
  .rx-phones { min-height: 0; display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; justify-content: flex-start; padding: 10px 4px 20px; scrollbar-width: none; }
  .rx-phone { position: static; transform: none; flex: 0 0 min(58vw, 250px); scroll-snap-align: center; }
  .rx-phone > span { opacity: 1; }
}

/* 5. Galerie complète */
.rx-wall { padding: clamp(80px, 12vw, 180px) 0; background: var(--paper); color: var(--bg); }
.rx-wall .rx-eyebrow, .rx-wall h2 em { color: var(--muted-light); }
.rx-wall-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 28px; flex-wrap: wrap; margin-bottom: 40px; }
.rx-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.rx-filters button { padding: 10px 16px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--rule-light); font-size: 14px; color: var(--muted-light); transition: background-color 160ms ease, color 160ms ease, transform 160ms var(--ease-out); }
.rx-filters button span { opacity: .6; margin-left: 4px; font-variant-numeric: tabular-nums; }
.rx-filters button:hover { color: var(--bg); }
.rx-filters button:active { transform: scale(.97); }
.rx-filters button[aria-pressed="true"] { background: var(--bg); color: var(--paper); box-shadow: none; }
.rx-wall-grid { columns: 3 320px; column-gap: 16px; list-style: none; margin: 0; padding: 0; }
.rx-tile { break-inside: avoid; margin: 0 0 16px; }
.rx-tile[hidden] { display: none; }
.rx-tile-open { display: block; width: 100%; border-radius: 12px; overflow: hidden; clip-path: inset(100% 0 0 0 round 12px); transition: clip-path 1100ms var(--ease-io) var(--d, 0ms); }
.rx-tile.is-in .rx-tile-open { clip-path: inset(0 0 0 0 round 12px); }
.rx-tile-open img { width: 100%; height: auto; scale: 1.15; transition: scale 1400ms var(--ease-out) var(--d, 0ms); }
.rx-tile.is-in .rx-tile-open img { scale: 1; }
.rx-tile.is-in .rx-tile-open:hover img { scale: 1.03; transition-delay: 0ms; transition-duration: 600ms; }

/* 6. Appel à l'action */
.rx-cta { padding: clamp(60px, 9vw, 120px) 0 clamp(80px, 10vw, 140px); background: var(--paper-2); color: var(--bg); overflow: hidden; }
.rx-marquee { overflow: hidden; margin-bottom: clamp(36px, 5vw, 64px); }
.rx-marquee-track { display: flex; width: max-content; animation: rx-marquee 28s linear infinite; }
.rx-marquee-track span { font-family: var(--display); font-weight: 400; font-size: clamp(56px, 10vw, 170px); line-height: 1; letter-spacing: -.04em; white-space: nowrap; padding-right: .35em; }
.rx-marquee-track .rx-dot { font-size: clamp(26px, 4.5vw, 76px); align-self: center; }
@keyframes rx-marquee { to { transform: translateX(-50%); } }
.rx-cta-body { display: grid; grid-template-columns: 1fr auto; gap: 24px 48px; align-items: end; }
.rx-cta h2 { font-size: clamp(32px, 4vw, 60px); margin: 0 0 10px; }
.rx-cta p { margin: 0; max-width: 52ch; opacity: .8; }
.rx-cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.rx-cta .rx-btn { background: var(--bg); color: var(--paper) !important; }
.rx-cta .rx-btn:hover { background: var(--bg-2); }
.rx-cta .rx-btn-ghost { background: transparent; color: var(--bg) !important; box-shadow: inset 0 0 0 1px rgba(11, 13, 13, .35); }
.rx-cta .rx-btn-ghost:hover { background: rgba(11, 13, 13, .08); }
@media (max-width: 760px) { .rx-cta-body { grid-template-columns: 1fr; } }

.rx-footer { padding: 28px 0 40px; font-size: 13px; color: var(--muted); background: var(--bg); }
.rx-footer .rx-wrap { display: flex; gap: 24px; justify-content: space-between; flex-wrap: wrap; }

/* Apparitions */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 900ms var(--ease-out) calc(var(--i, 0) * 90ms), transform 900ms var(--ease-out) calc(var(--i, 0) * 90ms); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* Visionneuse et lecteur */
.rx dialog { border: 0; padding: 0; background: transparent; color: var(--ink); max-width: none; max-height: none; width: 100vw; height: 100vh; height: 100dvh; }
.rx dialog::backdrop { background: rgba(5, 6, 6, .94); backdrop-filter: blur(6px); }
.rx dialog[open] { display: grid; place-items: center; animation: rx-in 260ms var(--ease-out); }
@keyframes rx-in { from { opacity: 0; transform: scale(.98); } }
.rx-lightbox figure { margin: 0; display: grid; gap: 14px; justify-items: center; }
.rx-lightbox img { max-width: min(92vw, 1600px); max-height: 80vh; width: auto; height: auto; border-radius: 10px; }
.rx-lightbox figcaption { display: flex; gap: 20px; font-size: 14px; color: var(--muted); }
.rx-lb-prev, .rx-lb-next, .rx-close { position: fixed; width: 52px; height: 52px; border-radius: 50%; background: rgba(243, 241, 236, .1) !important; font-size: 22px; display: grid; place-items: center; transition: background-color 160ms ease, transform 160ms var(--ease-out); }
.rx-lb-prev:hover, .rx-lb-next:hover, .rx-close:hover { background: rgba(243, 241, 236, .2) !important; }
.rx-lb-prev:active, .rx-lb-next:active, .rx-close:active { transform: scale(.94); }
.rx-lb-prev { left: 18px; top: 50%; margin-top: -26px; }
.rx-lb-next { right: 18px; top: 50%; margin-top: -26px; }
.rx-close { right: 18px; top: 18px; font-size: 28px; }
.rx-player video { max-width: min(94vw, 1500px); max-height: 82vh; border-radius: 10px; background: #000; }
.rx-player.is-vertical video { max-height: 86vh; }
.rx-player p { text-align: center; color: var(--muted); margin: 12px 0 0; }

/* Mouvement réduit : tout reste lisible et immobile */
@media (prefers-reduced-motion: reduce) {
  .rx-hero { height: auto; }
  .rx-hero-stage { position: relative; }
  .rx-hero-mask { transform: none !important; opacity: 1 !important; }
  .rx-scroll-hint span, .rx-marquee-track { animation: none; }
  .rx-pin { height: auto !important; padding: 96px 0 64px; }
  .rx-pin-stage { position: static; height: auto; display: block; }
  .rx-pin-track { transform: none !important; overflow-x: auto; padding: 0 var(--gutter) 12px; }
  .rx-pin-head { margin-bottom: 28px; }
  .rx-phones { --fan: 1 !important; }
  [data-reveal], .rx-tile-open, .rx-tile-open img { opacity: 1; transform: none; clip-path: none; scale: 1; transition: none; }
  .rx dialog[open] { animation: none; }
}

/* Droits des images (repris de la page d'origine) */
.rx-rights { margin: 0 0 20px; padding: 0 0 18px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.rx-rights summary { cursor: pointer; color: var(--ink); }
.rx-rights a { color: var(--ink); }
.rx-footer .rx-wrap + .rx-wrap { margin-top: 0; }
.rx-footer .rx-wrap:first-child { display: block; }

/* Responsive : détails mobiles */
.rx-touch { display: none; }
@media (hover: none), (pointer: coarse) { .rx-hover { display: none; } .rx-touch { display: inline; } }
@media (max-width: 600px) {
  .rx-film-meta, .rx-card-cap { grid-template-columns: auto 1fr; row-gap: 2px; }
  .rx-film-kind, .rx-card-cat { grid-column: 2; }
}
.rx-footer a { display: inline-block; padding: 10px 0; }
.rx-rights summary { padding: 10px 0; }
/* Écrans peu hauts : le texte de la piste Photos tient dans sa colonne au lieu de déborder sous les photos. */
@media (max-height: 760px) and (min-width: 861px) {
  .rx-pin-head { padding-top: 84px; }
  .rx-pin-head h2 { margin-bottom: 12px; }
  .rx-pin-head p:not(.rx-eyebrow):not(.rx-pin-progress) { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; font-size: 15px; margin-bottom: 16px; }
}
