@view-transition { navigation: auto; }

:root {
  color-scheme: dark;
  --ink: #070707;
  --ink-2: #0f0f0f;
  --ink-3: #181818;
  --bone: #f4f4f1;
  --mute: #8d8d89;
  --dim: #5a5a57;
  --line: rgba(244, 244, 241, .14);
  --line-2: rgba(244, 244, 241, .32);
  --danger: #ff7a7a;
  --serif: "Bodoni 72", "Didot", "Bodoni MT", "Playfair Display", "Hoefler Text", Georgia, "Times New Roman", serif;
  --sans: "Helvetica Neue", "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --gutter: clamp(20px, 5vw, 72px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--ink); color: var(--bone); font-family: var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { min-height: 100vh; min-height: 100svh; line-height: 1.6; font-size: 1.0625rem; overflow-x: hidden; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .25em; text-decoration-thickness: 1px; }
button { font: inherit; color: inherit; }
::selection { background: var(--bone); color: var(--ink); }
:focus-visible { outline: 1px solid var(--bone); outline-offset: 4px; }
[hidden] { display: none !important; }

/* grain d'encre : un voile très léger, pour sortir du noir numérique */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

h1, h2, h3, .serif { font-family: var(--serif); font-weight: 400; letter-spacing: -.02em; line-height: 1.02; }
h1 { font-size: clamp(3.4rem, 12.5vw, 11rem); letter-spacing: -.045em; line-height: .88; }
h2 { font-size: clamp(2.1rem, 5vw, 4.2rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.8rem); letter-spacing: -.01em; }
p { max-width: 62ch; }
.mute { color: var(--mute); }
.small { font-size: .875rem; }
.wrap { padding-inline: var(--gutter); max-width: 1480px; margin-inline: auto; }

/* ---------- en-tête */
.top { position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px var(--gutter); color: #fff; mix-blend-mode: difference; }
.brand { font-family: var(--serif); font-size: 1.3rem; letter-spacing: -.01em; text-decoration: none; }
.nav { display: flex; gap: clamp(16px, 3vw, 36px); font-size: .95rem; }
.nav a { text-decoration: none; position: relative; padding-block: 4px; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
@media (max-width: 640px) { .nav .hide-s { display: none; } }

/* ---------- boutons */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .6em; padding: 1em 1.9em; border: 1px solid var(--line-2); background: transparent; color: var(--bone); font-size: .95rem; cursor: pointer; overflow: hidden; isolation: isolate; text-decoration: none; transition: color .55s var(--ease), border-color .55s; line-height: 1.2; }
.btn::before { content: ""; position: absolute; inset: 0; background: var(--bone); transform: translateY(101%); transition: transform .65s var(--ease); z-index: -1; }
.btn:hover:not(:disabled), .btn:focus-visible { color: var(--ink); border-color: var(--bone); }
.btn:hover:not(:disabled)::before, .btn:focus-visible::before { transform: none; }
.btn.solid { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.btn.solid::before { background: var(--ink); }
.btn.solid:hover:not(:disabled) { color: var(--bone); }
.btn.sm { padding: .55em 1.1em; font-size: .85rem; }
.btn.danger { border-color: rgba(255, 122, 122, .5); color: var(--danger); }
.btn.danger::before { background: var(--danger); }
.btn.danger:hover:not(:disabled) { color: var(--ink); border-color: var(--danger); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.link { background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; color: inherit; }

/* ---------- héros : un seul moment orchestré */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: grid; align-items: end; padding: 120px var(--gutter) clamp(40px, 8vh, 90px); overflow: hidden; }
.hero .emblem { position: absolute; right: -14vmin; top: 50%; width: min(115vmin, 1100px); aspect-ratio: 1; translate: 0 -50%; opacity: .95; z-index: 0; will-change: transform; }
@media (min-width: 900px) { .hero .emblem { -webkit-mask-image: linear-gradient(90deg, transparent 18%, #000 46%); mask-image: linear-gradient(90deg, transparent 18%, #000 46%); } }
@media (max-width: 899px) { .hero .emblem { opacity: .3; right: -40vmin; } }
.hero-in { position: relative; z-index: 1; max-width: 1480px; width: 100%; margin-inline: auto; }
.hero h1 .ln-mask { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.hero h1 .ln-in { display: block; transform: translateY(105%); }
.ready .hero h1 .ln-in { animation: rise 1.3s var(--ease) .15s forwards; }
.hero-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 40px; margin-top: clamp(24px, 5vh, 48px); opacity: 0; }
.ready .hero-sub { animation: fade 1.2s var(--ease) 1.1s forwards; }
.hero-sub p { color: var(--mute); max-width: 34ch; }
.status { display: inline-flex; align-items: center; gap: .6em; font-size: .9rem; color: var(--mute); }
.status i { width: 7px; height: 7px; border-radius: 50%; background: var(--bone); display: inline-block; }
.status.off i { background: transparent; border: 1px solid var(--mute); }
@keyframes rise { to { transform: none; } }
@keyframes fade { to { opacity: 1; } }

.emblem .ln { fill: none; stroke: var(--bone); stroke-width: 1.3; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.6s var(--ease) calc(var(--i) * 20ms + .25s) forwards; }
.emblem .ln.thin { stroke-width: .6; opacity: .65; }
.emblem .dot { fill: var(--bone); opacity: 0; animation: fade 1.4s ease calc(var(--i) * 20ms + 1s) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- sections */
section { padding: clamp(56px, 8vw, 120px) var(--gutter); max-width: 1480px; margin-inline: auto; }
.rule { height: 1px; background: var(--line); transform-origin: left; transform: scaleX(0); transition: transform 1.6s var(--ease); }
.rule.in { transform: none; }
.sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 20px 40px; margin-bottom: clamp(32px, 5vw, 64px); }
.sec-head p { color: var(--mute); }

.about { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
.about .big { font-family: var(--serif); font-size: clamp(1.7rem, 4vw, 3.3rem); line-height: 1.12; letter-spacing: -.02em; max-width: 24ch; }
@media (min-width: 900px) { .about { grid-template-columns: 1fr 2fr; } }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.cell { background: var(--ink); display: flex; flex-direction: column; text-decoration: none; position: relative; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cell .pic { aspect-ratio: 4 / 5; overflow: hidden; background: var(--ink-2); position: relative; }
.cell .pic img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.06); transition: filter .9s var(--ease), transform 1.4s var(--ease); }
.cell:hover .pic img, .cell:focus-visible .pic img { filter: none; transform: scale(1.04); }
.cell .meta { padding: 16px 18px 20px; display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.cell .meta b { font-family: var(--serif); font-weight: 400; font-size: 1.2rem; letter-spacing: -.01em; }
.cell.taken .pic img { opacity: .45; }
.tag { display: inline-block; padding: .12em .75em; border: 1px solid var(--line-2); font-family: var(--sans); font-weight: 400; letter-spacing: 0; font-size: .78rem; line-height: 1.5; white-space: nowrap; }
.tag.on { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.tag.warn { border-color: var(--danger); color: var(--danger); }

.masonry { columns: 3 260px; column-gap: 1px; background: transparent; }
.masonry figure { break-inside: avoid; margin: 0 0 1px; background: var(--ink-2); overflow: hidden; position: relative; min-height: 180px; }
.masonry img { width: 100%; filter: grayscale(1) contrast(1.05); transition: filter .9s var(--ease), transform 1.4s var(--ease); }
.masonry figure:hover img { filter: none; transform: scale(1.03); }
.masonry figcaption { position: absolute; inset: auto 0 0 0; padding: 36px 16px 14px; font-size: .85rem; background: linear-gradient(transparent, rgba(0, 0, 0, .78)); opacity: 0; transition: opacity .6s; }
.masonry figure:hover figcaption { opacity: 1; }

.empty { border: 1px dashed var(--line-2); padding: clamp(32px, 6vw, 72px); color: var(--mute); text-align: left; max-width: none; }
.empty b { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.5rem; color: var(--bone); margin-bottom: 6px; }

.trip { display: grid; grid-template-columns: 1fr; gap: 6px 32px; padding: 26px 0; border-top: 1px solid var(--line); align-items: baseline; }
.trip:last-child { border-bottom: 1px solid var(--line); }
.trip .when { color: var(--mute); }
.trip .where { font-family: var(--serif); font-size: clamp(1.6rem, 3.4vw, 2.6rem); letter-spacing: -.02em; line-height: 1.1; }
@media (min-width: 760px) { .trip { grid-template-columns: 1fr 1.4fr auto; } }

.steps { counter-reset: s; display: grid; gap: 0; border-top: 1px solid var(--line); }
.steps li { list-style: none; display: grid; grid-template-columns: 64px 1fr; gap: 8px 20px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.steps li::before { counter-increment: s; content: counter(s); font-family: var(--serif); font-size: 2.6rem; line-height: 1; color: var(--mute); }
.steps b { font-family: var(--serif); font-weight: 400; font-size: 1.5rem; letter-spacing: -.01em; display: block; }
.steps p { color: var(--mute); }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); border-top: 0; } .steps li { grid-template-columns: 1fr; border: 0; border-left: 1px solid var(--line); padding: 8px 24px 8px 24px; gap: 14px; } .steps li:first-child { border-left: 0; padding-left: 0; } }

.band { background: var(--bone); color: var(--ink); max-width: none; }
.band .in { max-width: 1480px; margin-inline: auto; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 32px; }
.band h2 { max-width: 14ch; }
.band .btn { color: var(--ink); border-color: var(--ink); }
.band .btn::before { background: var(--ink); }
.band .btn:hover:not(:disabled) { color: var(--bone); border-color: var(--ink); }
footer { padding: 40px var(--gutter) 56px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 40px; color: var(--mute); font-size: .9rem; max-width: 1480px; margin-inline: auto; }

/* ---------- formulaires */
.page { min-height: 100vh; padding: 130px var(--gutter) 90px; max-width: 980px; margin-inline: auto; }
.page.wide { max-width: 1280px; }
.page h1 { font-size: clamp(2.6rem, 8vw, 6.2rem); line-height: .98; padding-bottom: .06em; margin-bottom: 20px; }
.page .lead { color: var(--mute); margin-bottom: 40px; }
.form { display: grid; gap: 34px; }
.field { display: grid; gap: 8px; align-content: start; }
.field > label, .lbl { font-size: .84rem; color: var(--mute); }
.row { display: grid; gap: 28px; }
@media (min-width: 720px) { .row.two { grid-template-columns: 1fr 1fr; } }
input[type=text], input[type=email], input[type=tel], input[type=date], input[type=password], input[type=number], input[type=url], input[type=datetime-local], textarea, select {
  width: 100%; font: inherit; color: inherit; background: transparent; border: 0; border-bottom: 1px solid var(--line-2); border-radius: 0; padding: .65rem 0; transition: border-color .4s; appearance: none; -webkit-appearance: none; color-scheme: dark;
}
select { background-image: linear-gradient(45deg, transparent 50%, var(--mute) 50%), linear-gradient(135deg, var(--mute) 50%, transparent 50%); background-position: calc(100% - 12px) 55%, calc(100% - 7px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 28px; }
select option { background: var(--ink); color: var(--bone); }
textarea { resize: vertical; min-height: 7rem; line-height: 1.55; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--bone); }
input::placeholder, textarea::placeholder { color: var(--dim); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips label { display: inline-block; padding: .5em 1.05em; border: 1px solid var(--line-2); font-size: .92rem; color: var(--bone); cursor: pointer; transition: background .35s var(--ease), color .35s, border-color .35s; user-select: none; }
.chips label:hover { border-color: var(--bone); }
.chips input:checked + label { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.chips input:focus-visible + label { outline: 1px solid var(--bone); outline-offset: 3px; }
.check { display: flex; gap: 14px; align-items: flex-start; cursor: pointer; font-size: .95rem; }
.check input { appearance: none; -webkit-appearance: none; flex: none; width: 20px; height: 20px; margin-top: 3px; border: 1px solid var(--line-2); display: grid; place-content: center; cursor: pointer; transition: background .3s, border-color .3s; }
.check input::after { content: ""; width: 10px; height: 6px; border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(-45deg) scale(0); translate: 0 -1px; transition: transform .35s var(--ease); }
.check input:checked { background: var(--bone); border-color: var(--bone); }
.check input:checked::after { transform: rotate(-45deg) scale(1); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.err { color: var(--danger); font-size: .92rem; min-height: 1.3em; }
.ok { color: var(--bone); }
.hint { color: var(--dim); font-size: .85rem; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.progress { display: flex; gap: 6px; margin-bottom: 44px; }
.progress i { flex: 1; height: 1px; background: var(--line-2); position: relative; overflow: hidden; }
.progress i::after { content: ""; position: absolute; inset: 0; background: var(--bone); transform: scaleX(0); transform-origin: left; transition: transform .9s var(--ease); }
.progress i.on::after { transform: none; }
.step { display: none; }
.step.show { display: grid; gap: 34px; animation: stepIn .8s var(--ease) both; }
@keyframes stepIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.flash-pick { display: flex; gap: 18px; align-items: center; border: 1px solid var(--line); padding: 12px; }
.flash-pick img { width: 72px; height: 90px; object-fit: cover; filter: grayscale(1); }

/* ---------- espace client / admin : panneaux éditoriaux */
.panel { border-top: 1px solid var(--line); padding: 30px 0 38px; }
.panel > h3 { margin-bottom: 18px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.panel > * + * { margin-top: 14px; }
.panel > h3 + * { margin-top: 0; }
.cols { display: grid; gap: 0 56px; }
@media (min-width: 980px) { .cols { grid-template-columns: 1.1fr 1fr; } }
.track { display: flex; flex-wrap: wrap; gap: 0; margin: 28px 0 8px; border: 1px solid var(--line); }
.track span { flex: 1 1 110px; padding: 12px 14px; font-size: .86rem; color: var(--dim); border-right: 1px solid var(--line); position: relative; }
.track span:last-child { border-right: 0; }
.track span.done { color: var(--mute); }
.track span.now { background: var(--bone); color: var(--ink); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 24px; font-size: .95rem; }
.kv dt { color: var(--mute); }
.kv dd { word-break: break-word; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin-bottom: 18px; }
.thumbs a, .thumbs button { aspect-ratio: 1; overflow: hidden; background: var(--ink-2); border: 1px solid var(--line); padding: 0; cursor: pointer; display: block; position: relative; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.thumbs a:hover img { transform: scale(1.06); }
.thumbs .x { position: absolute; top: 4px; right: 4px; background: var(--ink); border: 1px solid var(--line-2); width: 24px; height: 24px; line-height: 20px; font-size: 14px; opacity: 0; transition: opacity .3s; }
.thumbs a:hover .x, .thumbs .x:focus-visible { opacity: 1; }
.chat { display: flex; flex-direction: column; gap: 10px; max-height: 520px; overflow-y: auto; padding: 4px 4px 4px 0; margin-bottom: 14px; scroll-behavior: smooth; }
.msg { max-width: 82%; padding: 10px 14px; border: 1px solid var(--line-2); font-size: .96rem; white-space: pre-wrap; overflow-wrap: anywhere; animation: fade .5s var(--ease) both; }
.msg.me { align-self: flex-end; background: var(--bone); color: var(--ink); border-color: var(--bone); }
.msg time { display: block; font-size: .72rem; opacity: .55; margin-top: 4px; }
.msg img { max-width: 220px; margin-top: 8px; filter: grayscale(.2); }
.composer { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: end; }
.composer textarea { min-height: 2.8rem; max-height: 9rem; }
.notice { border: 1px solid var(--line-2); padding: 18px 20px; margin: 18px 0; }
.notice.big { border-color: var(--bone); }
.notice b { font-family: var(--serif); font-weight: 400; font-size: 1.3rem; display: block; margin-bottom: 4px; }
.appt { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px 0; border-bottom: 1px solid var(--line); }
.consent-text { white-space: pre-wrap; border: 1px solid var(--line); padding: 22px; max-height: 340px; overflow: auto; font-size: .95rem; color: var(--mute); max-width: none; }
.q { display: grid; gap: 10px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.q .yn { display: flex; gap: 8px; }
.sig { background: var(--bone); border: 1px solid var(--bone); touch-action: none; cursor: crosshair; width: 100%; height: 190px; }
.modal { position: fixed; inset: 0; z-index: 80; background: rgba(0, 0, 0, .82); display: grid; place-items: center; padding: 20px; animation: fade .4s both; overflow: auto; }
.modal > div { background: var(--ink); border: 1px solid var(--line-2); max-width: 720px; width: 100%; padding: clamp(22px, 4vw, 44px); max-height: 94vh; overflow: auto; }
.modal h2 { font-size: clamp(2rem, 4.5vw, 3rem); line-height: 1; margin-bottom: 4px; }
.modal .spaced { gap: 22px; }
.modal.lightbox > div { max-width: 94vw; width: auto; padding: 8px; background: #000; }
.modal.lightbox img { max-height: 86vh; max-width: 90vw; }
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 90; display: grid; gap: 8px; }
.toast { background: var(--bone); color: var(--ink); padding: 12px 18px; font-size: .92rem; animation: toastIn .6s var(--ease) both; max-width: 340px; }
.toast.err { background: var(--danger); }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- administration */
.adm-top { position: sticky; top: 0; z-index: 40; background: rgba(7, 7, 7, .92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 8px 28px; padding: 14px var(--gutter); flex-wrap: wrap; }
.adm-top .brand { margin-right: auto; }
.adm-nav { display: flex; gap: 4px 22px; flex-wrap: wrap; font-size: .92rem; }
.adm-nav a { text-decoration: none; color: var(--mute); padding: 4px 0; border-bottom: 1px solid transparent; transition: color .3s, border-color .3s; }
.adm-nav a:hover, .adm-nav a.on { color: var(--bone); border-color: var(--bone); }
.adm-main { padding: 48px var(--gutter) 100px; max-width: 1280px; margin-inline: auto; animation: stepIn .7s var(--ease) both; }
.adm-main > h1 { font-size: clamp(2.2rem, 5vw, 4rem); letter-spacing: -.03em; line-height: 1; margin-bottom: 30px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-bottom: 44px; }
.stats a { background: var(--ink); padding: 20px; text-decoration: none; display: grid; gap: 4px; transition: background .4s; }
.stats a:hover { background: var(--ink-3); }
.stats b { font-family: var(--serif); font-weight: 400; font-size: 2.6rem; line-height: 1; }
.stats span { color: var(--mute); font-size: .86rem; }
.two > div > h3 { margin-bottom: 18px; }
.adm-main > .actions { padding-bottom: 36px; }
.panel h3.small { font-size: 1.2rem; margin-top: 10px; letter-spacing: -.01em; }
.list { border-top: 1px solid var(--line); }
.list .it { display: grid; grid-template-columns: 1fr auto; gap: 6px 20px; align-items: center; padding: 16px 4px; border-bottom: 1px solid var(--line); text-decoration: none; transition: background .3s, padding .5s var(--ease); }
a.it:hover { background: var(--ink-2); padding-left: 14px; }
.list .it .sub { color: var(--mute); font-size: .86rem; display: flex; gap: 6px 16px; flex-wrap: wrap; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--bone); vertical-align: middle; margin-right: 6px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; align-items: center; }
.filters input { max-width: 240px; margin-left: auto; }
.two { display: grid; gap: 40px; }
@media (min-width: 980px) { .two { grid-template-columns: 1fr 1fr; } }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.card { border: 1px solid var(--line); display: grid; align-content: start; }
.card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: grayscale(1); }
.card .body { padding: 14px; display: grid; gap: 10px; }
.card input[type=text] { font-size: .92rem; }
table { border-collapse: collapse; width: 100%; font-size: .84rem; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; word-break: break-word; }
th { color: var(--mute); font-weight: 400; }
.login { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login form { width: min(420px, 100%); display: grid; gap: 28px; }
.login h1 { font-size: clamp(2.6rem, 9vw, 4.6rem); }
.doc { background: #fff; color: #000; padding: 40px; font-family: Georgia, serif; line-height: 1.5; max-width: 820px; margin: 0 auto; }
.doc h2, .doc h3 { color: #000; font-family: Georgia, serif; }
.doc .consent-text { color: #000; border-color: #bbb; max-height: none; }
.doc img.sigimg { max-width: 320px; border-bottom: 1px solid #000; }

@media print {
  body::after, .adm-top, .no-print, .toasts { display: none !important; }
  html, body { background: #fff; color: #000; }
  .adm-main { padding: 0; animation: none; }
  .doc { padding: 0; max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .hero h1 .ln-in { transform: none; }
  .rule { transform: none; }
}
@media (max-width: 640px) { .composer { grid-template-columns: 1fr; } .kv { grid-template-columns: 1fr; gap: 0; } .kv dt { margin-top: 10px; } }

.pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.center { text-align: center; }
.spaced { display: grid; gap: 14px; }
