/* Shared by the two case pages (/fabriq/ and /fabriq/ecrans/): top bar, tags, links, captures, lightbox, contact and footer.
   Tokens and fields come from /assets/raixon.css; each page keeps its own sections in its <style>. */
:root { --black: #0e0e0e; }
body { background: var(--nuit); }
img { display: block; max-width: 100%; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
/* A larger hit area for small links and buttons, without moving them. */
.hit { position: relative; }
.hit::before { content: ""; position: absolute; inset: -12px -6px; }
::selection { background: var(--black); color: #f4f4f2; }
.f-ink ::selection, .f-nuit ::selection { background: var(--red); color: var(--black); }
/* Rules take the field's text colour, so one declaration works on every field. */
.f-nuit, .f-red, .f-ink, .f-paper { --rule: color-mix(in srgb, currentColor 30%, transparent); }
.f-ink :focus-visible, .f-nuit :focus-visible { outline-color: var(--red); }

.field { position: relative; padding: clamp(72px, 14vh, 160px) var(--pad); }
.tag { display: flex; gap: 10px; align-items: center; font: 650 15px/1.35 var(--f); }
.tag i { flex: none; width: 10px; height: 10px; background: var(--red); }
.ul { font: 650 18px/1.2 var(--f); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .24em; transition: text-underline-offset 200ms var(--out); }
@media (hover: hover) and (pointer: fine) { .ul:hover { text-underline-offset: .36em; } }
.ul:active { text-underline-offset: .36em; }

/* The agent's mark: a flat vermilion block under the phrase. */
.ph { padding: 0 .08em; margin: 0 -.08em; color: var(--black); background: linear-gradient(var(--red), var(--red)) 0 0 / 100% 100% no-repeat; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

/* Top bar, as on the home page. */
.top { position: absolute; inset: 0 0 auto; z-index: 5; display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 24px var(--pad); color: #f4f4f2; }
.top nav { display: flex; gap: 28px; font: 600 15px/1 var(--f); }
.top nav a { text-decoration: none; padding-bottom: 4px; border-bottom: 2px solid transparent; transition: border-color 160ms ease; white-space: nowrap; }
.top nav a[aria-current] { border-color: currentColor; }
@media (hover: hover) and (pointer: fine) { .top nav a:hover { border-color: currentColor; } }

/* A real screen of the production. Opens in the lightbox where the page shows it smaller than its own size. */
.shot { position: relative; display: block; max-width: 100%; }
.shot img { width: 100%; height: auto; }
.shot.zoom { cursor: zoom-in; }
.shot.zoom::after { content: "Agrandir"; position: absolute; right: 0; bottom: 0; font: 650 13px/1 var(--f); color: var(--black); background: var(--red); padding: 8px 10px; pointer-events: none; }
.shot-cap { margin-top: 12px; font: 450 14px/1.4 var(--f); color: var(--grey); }

/* Lightbox: a modal dialog showing the capture at its own size, panning when it is larger than the screen. */
.lb { position: fixed; inset: 0; z-index: 10; display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 12px; padding: 56px 0 20px; background: rgba(12, 5, 32, .97); color: #f4f4f2; }
.lb-x { position: absolute; top: 14px; right: var(--pad); font: 650 15px/1 var(--f); color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .24em; }
.lb-view { overflow: auto; overscroll-behavior: contain; padding: 0 var(--pad); }
.lb img { width: var(--lw); max-width: none; height: auto; margin: 0 auto; }
.lb p { padding: 0 var(--pad); font: 500 14px/1.4 var(--f); }

/* Contact and footer. */
.contact { padding-bottom: 32px; }
.contact h2 { font-size: clamp(54px, 10.6vw, 196px); }
.contact .who { margin-top: clamp(32px, 6vh, 64px); max-width: 30em; font: 480 clamp(19px, 1.6vw, 26px)/1.4 var(--f); }
.ways { margin-top: clamp(40px, 8vh, 88px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--gap); }
.ways > * { padding-top: 18px; }
.ways a, .ways button { font: 760 clamp(22px, 2.3vw, 40px)/1.1 var(--f); font-stretch: 85%; letter-spacing: -.01em; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; text-decoration: underline; text-decoration-thickness: .08em; text-underline-offset: .16em; transition: text-underline-offset 200ms var(--out); overflow-wrap: anywhere; }
.f-nuit .ways a, .f-nuit .ways button, .f-ink .ways a, .f-ink .ways button { text-decoration-color: var(--red); }
.ways small { display: block; margin-bottom: 8px; font: 500 14px/1.3 var(--f); }
@media (hover: hover) and (pointer: fine) { .ways a:hover, .ways button:hover { text-underline-offset: .28em; } }
.ways a:active, .ways button:active { text-underline-offset: .28em; }
.foot { margin-top: clamp(72px, 16vh, 180px); padding-top: 14px; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; font: 500 14px/1.4 var(--f); }
.foot nav { display: flex; flex-wrap: wrap; gap: 20px; }
.foot a { text-decoration: none; }
.foot a:hover { text-decoration: underline; }

@media (max-width: 899px) {
  .ways { grid-template-columns: minmax(0, 1fr); }
  .ways > * { padding: 16px 0; }
  .ways a, .ways button { font-size: 7.4vw; }
}
@media (max-width: 600px) {
  body { font-size: 17px; }
  .top { padding-top: 20px; }
  .top nav { gap: 16px; }
  .top nav .opt { display: none; }
  .contact h2 { font-size: 15.4vw; }
}
@media (prefers-reduced-motion: reduce) {
  .ul, .top nav a, .ways a, .ways button { transition: none; }
}
