/* Allumen.Guide — visit, client space and admin. Colours, type and radii follow the Allumen.Guide design system
   (landing page allumen.guide): Fraunces for titles, Instrument Sans for text, warm ivory/paper, framboise, safran, night. */
@font-face { font-family: 'Fraunces Variable'; font-style: normal; font-display: swap; font-weight: 100 900; src: url(fonts/fraunces-latin-wght-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Fraunces Variable'; font-style: normal; font-display: swap; font-weight: 100 900; src: url(fonts/fraunces-latin-ext-wght-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Instrument Sans Variable'; font-style: normal; font-display: swap; font-weight: 400 700; src: url(fonts/instrument-sans-latin-wght-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Instrument Sans Variable'; font-style: normal; font-display: swap; font-weight: 400 700; src: url(fonts/instrument-sans-latin-ext-wght-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ── Design system tokens (same names and values as the landing page) ── */
:root {
  color-scheme: light dark;
  --ivory: #fffaf3; --paper: #f7e9db; --stone-100: #fbf1e6; --stone-200: #ecd9c6; --stone-400: #c8ab93;
  --ink-ds: #302622; --ink-soft: #54453e; --ink-mute: #6b5a51;
  --framboise: #ad4936; --framboise-hover: #8e3a2b; --peach: #f9b83c; --coral: #d97b2f; --rose: #f3dcc6; --gold-soft: #fdebc2;
  --night: #573224; --night-2: #673e2e; --on-dark: #fffaf3; --on-dark-soft: #efe1d4; --glass: #2e5b78;
  --radius-s: 6px; --radius-m: 14px; --radius-l: 28px;
  /* aliases used by the app (kept so every component follows the system) */
  --ink-c: var(--ink-ds); --night-ink: var(--on-dark-soft); --raspberry: var(--framboise); --raspberry-hover: var(--framboise-hover);
  --bg: var(--ivory); --surface: #fffdf8; --surface-2: var(--stone-100); --line: var(--stone-200);
  --ink: var(--ink-ds); --ink-2: var(--ink-soft); --ink-3: var(--ink-mute);
  --prune: var(--framboise); --prune-2: var(--framboise); --prune-hover: var(--framboise-hover); --prune-soft: var(--stone-100); --on-prune: #fff;
  --terra: var(--framboise-hover); --terra-soft: var(--gold-soft); --accent: var(--peach); --accent-2: var(--coral);
  --ok: #2f6b4a; --warn-bg: var(--gold-soft); --warn-ink: #6b3d12;
  --plan-bg: #fffdf8; --plan-filter: none;
  --shadow-1: 0 1px 2px #5732240f, 0 8px 22px -12px #57322433;
  --shadow-2: 0 1px 2px #5732240f, 0 18px 40px -16px #57322442;
  --serif: 'Fraunces Variable', 'Iowan Old Style', Georgia, serif;
  --sans: 'Instrument Sans Variable', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --r-s: var(--radius-s); --r-m: var(--radius-m); --r-l: var(--radius-l); --gutter: 16px; --maxw: 720px; --thumb: 72px;
  --nav-h: 64px; --safe-b: env(safe-area-inset-bottom, 0px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: var(--night); --surface: var(--night-2); --surface-2: #74483a; --line: #efe1d438;
    --ink: var(--on-dark); --ink-2: var(--on-dark-soft); --ink-3: #e4d2c3;
    --prune: var(--framboise); --prune-2: var(--peach); --prune-soft: #6e4334; --on-prune: #fff;
    --terra: var(--peach); --terra-soft: #6e4334; --ok: #9fd3b0; --warn-bg: #6e4a1e; --warn-ink: #fdebc2;
    --plan-bg: #fbf1e6;
  }
}
::selection { background: var(--gold-soft); color: var(--ink-ds); }
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.6 var(--sans); padding-bottom: calc(var(--nav-h) + var(--safe-b)); }
body.has-player { padding-bottom: calc(var(--nav-h) + 72px + var(--safe-b)); }
img { max-width: 100%; display: block; }
a { color: var(--prune-2); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.2; margin: 0 0 .4em; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(1.7rem, 6vw, 2.3rem); }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.12rem; }
p { margin: 0 0 1em; }
.ic { width: 20px; height: 20px; flex: none; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.small { font-size: .875rem; }
.muted { color: var(--ink-3); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--prune-2); outline-offset: 2px; }
.skip { position: absolute; left: -999px; top: 8px; }
.skip:focus { left: 8px; z-index: 100; background: var(--surface); padding: 8px 12px; border-radius: 8px; }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; }
.brand { font-family: var(--serif); font-weight: 600; font-size: 1.08rem; color: var(--ink); text-decoration: none; display: flex; flex-direction: column; line-height: 1.15; }
.brand small { font: 500 .72rem/1.2 var(--sans); color: var(--ink-3); letter-spacing: .04em; text-transform: uppercase; }
.iconbtn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; cursor: pointer; }

/* preview banner */
.preview-bar { background: var(--warn-bg); color: var(--warn-ink); font-size: .85rem; }
.preview-bar .wrap { display: flex; align-items: center; gap: 10px; justify-content: space-between; min-height: 40px; flex-wrap: wrap; padding-top: 4px; padding-bottom: 4px; }
.preview-bar form { margin: 0; }
.preview-bar button, .preview-pill button { font: 600 .8rem var(--sans); border-radius: 999px; padding: 6px 12px; cursor: pointer; border: 1px solid currentColor; background: transparent; color: inherit; }
.preview-pill { position: fixed; right: 12px; top: 64px; z-index: 25; }
.preview-pill button { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); border-color: var(--line); }
.badge { display: inline-flex; align-items: center; gap: 4px; font: 600 .72rem/1 var(--sans); padding: 5px 8px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); letter-spacing: .02em; }
.badge.draft { background: var(--warn-bg); color: var(--warn-ink); }
.badge .ic { width: 13px; height: 13px; }

/* bottom nav */
.nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--surface); border-top: 1px solid var(--line); padding-bottom: var(--safe-b); }
.nav ul { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); max-width: var(--maxw); }
.nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: var(--nav-h); color: var(--ink-3); text-decoration: none; font-size: .72rem; font-weight: 600; }
.nav a[aria-current="page"] { color: var(--prune-2); }
.nav .ic { width: 22px; height: 22px; }

/* home */
.hero { padding: 28px 0 8px; display: grid; grid-template-columns: 1fr 96px; gap: 16px; align-items: end; }
.hero p { color: var(--ink-2); margin: 0; }
.hero img { width: 96px; height: auto; opacity: .9; }
.kicker { font: 700 .75rem/1.2 var(--sans); text-transform: uppercase; letter-spacing: .08em; color: var(--terra); margin: 0 0 6px; }
.section { margin: 28px 0; }
.modes { display: grid; gap: 12px; }
.mode { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; padding: 18px; border-radius: var(--r-l); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); text-decoration: none; color: var(--ink); }
.mode.primary { background: var(--prune); color: var(--on-prune); border-color: transparent; }
.mode h3 { margin: 0; font-size: 1.3rem; }
.mode .meta { grid-column: 1; font-size: .9rem; opacity: .85; }
.mode .go { grid-row: 1 / span 3; grid-column: 2; width: 48px; height: 48px; border-radius: 999px; display: grid; place-items: center; background: color-mix(in srgb, currentColor 14%, transparent); }
.mode p { grid-column: 1; margin: 4px 0 0; font-size: .92rem; opacity: .9; }
.mode .badge { margin-top: 6px; justify-self: start; }
.resume { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: var(--r-m); background: var(--prune-soft); color: var(--ink); text-decoration: none; margin-top: 12px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: 16px; }
.card + .card { margin-top: 10px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 999px; border: 0; background: var(--prune); color: var(--on-prune); font: 600 1rem var(--sans); text-decoration: none; cursor: pointer; }
.btn.ghost { background: transparent; color: var(--prune-2); border: 1.5px solid var(--prune-2); }
.btn.block { display: flex; width: 100%; }
.notice-box { padding: 12px 14px; border-radius: var(--r-s); background: var(--warn-bg); color: var(--warn-ink); font-size: .9rem; display: flex; gap: 8px; }
.notice-box .ic { margin-top: 2px; }
.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.info-list li:last-child { border-bottom: 0; }
.info-list .ic { color: var(--ink-3); margin-top: 3px; }

/* tour overview */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: s; }
.steps li a { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.lm { display: inline-grid; place-items: center; min-width: 36px; height: 36px; padding: 0 6px; border-radius: 999px; background: var(--terra-soft); color: var(--terra); font: 700 .95rem var(--sans); }
.steps .t { font-weight: 600; line-height: 1.3; }
.steps .s { font-size: .82rem; color: var(--ink-3); }

/* fiche */
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 14px 0 10px; }
.tour-chip { font: 600 .8rem var(--sans); color: var(--prune-2); background: var(--prune-soft); padding: 6px 10px; border-radius: 999px; text-decoration: none; }
.f-head { display: flex; gap: 12px; align-items: flex-start; }
.f-head .lm { min-width: 48px; height: 48px; font-size: 1.15rem; flex: none; margin-top: 2px; }
.f-type { color: var(--ink-3); font-size: .9rem; margin: -2px 0 0; }
.car { margin: 14px calc(-1 * var(--gutter)) 6px; }
.car-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; padding: 0 var(--gutter); scrollbar-width: none; }
.car-track::-webkit-scrollbar { display: none; }
.car figure { flex: 0 0 100%; margin: 0; scroll-snap-align: center; position: relative; }
.car.multi figure { flex-basis: 88%; }
.car img { width: 100%; max-height: 62dvh; object-fit: contain; background: var(--surface-2); border-radius: var(--r-l); }
.car figcaption { font-size: .8rem; color: var(--ink-3); margin-top: 6px; }
.car .pending { position: absolute; top: 10px; left: 10px; }
.car-dots { display: flex; gap: 6px; justify-content: center; margin-top: 8px; }
.car-dots span { width: 7px; height: 7px; border-radius: 99px; background: var(--line); }
.car-dots span.on { background: var(--prune-2); }
.block { margin: 18px 0; }
.block h2 { font-family: var(--sans); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-3); display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.block h2 .ic { width: 16px; height: 16px; }
.observe { background: var(--prune-soft); border-radius: var(--r-m); padding: 14px 16px; }
.observe h2 { color: var(--prune-2); }
.find { display: grid; grid-template-columns: 1fr 72px; gap: 12px; align-items: center; }
.minimap { position: relative; display: block; width: 72px; aspect-ratio: 1420 / 3290; background: var(--plan-bg) center / cover no-repeat; border-radius: 10px; border: 1px solid var(--line); overflow: hidden; }
.minimap i { position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 99px; background: var(--terra); box-shadow: 0 0 0 3px rgb(255 255 255 / .9); }
.listen { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: var(--r-m); background: var(--surface); border: 1px solid var(--line); }
.playbtn { width: 56px; height: 56px; flex: none; border-radius: 999px; border: 0; background: var(--prune); color: var(--on-prune); display: grid; place-items: center; cursor: pointer; }
.playbtn .ic { width: 24px; height: 24px; }
.playbtn .i-pause { display: none; }
.playbtn[aria-pressed="true"] .i-play { display: none; }
.playbtn[aria-pressed="true"] .i-pause { display: block; }
.listen .lbl { font-weight: 600; }
.listen .sub { font-size: .82rem; color: var(--ink-3); }
details.more { border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface); margin: 12px 0; }
details.more > summary { list-style: none; cursor: pointer; min-height: 52px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; font-weight: 600; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary .ic { transition: transform .2s; }
details.more[open] > summary .ic { transform: rotate(90deg); }
details.more > div { padding: 0 16px 14px; }
dl.facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; font-size: .93rem; }
dl.facts dt { color: var(--ink-3); }
dl.facts dd { margin: 0; }
.internal { border-left: 3px solid var(--warn-ink); padding-left: 10px; color: var(--ink-2); font-size: .9rem; }
.transition { font-style: italic; color: var(--ink-2); border-left: 3px solid var(--terra); padding: 4px 0 4px 12px; margin: 20px 0 10px; }
.up-next { display: block; margin: 16px 0 8px; border-radius: var(--r-l); overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); text-decoration: none; color: var(--ink); }
.up-next img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--surface-2); }
.up-next .b { display: grid; grid-template-columns: 1fr 56px; gap: 6px 12px; align-items: center; padding: 14px 16px 16px; }
.up-next .k { grid-column: 1; font: 700 .75rem var(--sans); text-transform: uppercase; letter-spacing: .07em; color: var(--terra); }
.up-next .n { grid-column: 1; font-family: var(--serif); font-size: 1.3rem; font-weight: 600; line-height: 1.25; }
.up-next .go { grid-column: 2; grid-row: 1 / span 2; width: 56px; height: 56px; border-radius: 999px; background: var(--prune); color: var(--on-prune); display: grid; place-items: center; }
.up-next.end { background: var(--prune); color: var(--on-prune); border: 0; }
.up-next.end .k { color: inherit; opacity: .85; }
.up-next.end .go { background: var(--on-prune); color: var(--prune); }

/* explore */
.search { position: sticky; top: 57px; z-index: 5; background: var(--bg); padding: 10px 0; }
.search label { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 0 14px; min-height: 48px; }
.search input { border: 0; background: transparent; font: inherit; color: var(--ink); flex: 1; min-width: 0; outline: none; }
.items { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }

/* plan */
.plan-tools { display: flex; gap: 8px; justify-content: flex-end; margin: 6px 0; }
.plan-scroll { overflow: auto; border-radius: var(--r-m); border: 1px solid var(--line); background: var(--plan-bg); max-height: calc(100dvh - 200px); touch-action: pan-x pan-y; }
.plan-box { position: relative; width: 100%; margin: 0 auto; transition: width .2s; }
.plan-box img { width: 100%; height: auto; filter: var(--plan-filter); user-select: none; -webkit-user-drag: none; }
.mk { position: absolute; transform: translate(-50%, -50%); min-width: 28px; height: 28px; padding: 0 6px; border-radius: 999px; background: var(--raspberry); color: #fff; font: 700 .85rem var(--sans); display: grid; place-items: center; text-decoration: none; box-shadow: 0 0 0 3px rgb(255 255 255 / .92), var(--shadow-1); }
.mk.tour { background: var(--prune); }
.mk:focus-visible { outline-offset: 4px; }
.mk.draft { opacity: .92; }

/* mini player */
.player { position: fixed; left: 8px; right: 8px; bottom: calc(var(--nav-h) + var(--safe-b) + 8px); z-index: 31; max-width: calc(var(--maxw) - 16px); margin: 0 auto; background: var(--ink); color: var(--bg); border-radius: var(--r-m); box-shadow: var(--shadow-2); display: grid; grid-template-columns: 48px minmax(0, 1fr) 44px; gap: 10px; align-items: center; padding: 8px 10px; }
.player[hidden] { display: none; }
.player .playbtn { width: 48px; height: 48px; background: var(--bg); color: var(--ink); }
.player .tt { font-weight: 600; font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player .tm { font-size: .78rem; opacity: .8; }
.player progress { width: 100%; height: 4px; appearance: none; border: 0; background: rgb(255 255 255 / .2); border-radius: 4px; display: block; margin-top: 4px; }
.player progress::-webkit-progress-bar { background: rgb(255 255 255 / .2); border-radius: 4px; }
.player progress::-webkit-progress-value { background: var(--bg); border-radius: 4px; }
.player progress::-moz-progress-bar { background: var(--bg); }
.player .x { width: 44px; height: 44px; border: 0; background: transparent; color: inherit; cursor: pointer; display: grid; place-items: center; }

/* agenda & sections */
.event { display: grid; grid-template-columns: 64px 1fr; gap: 12px; }
.event .d { text-align: center; background: var(--prune-soft); color: var(--prune-2); border-radius: 12px; padding: 8px 4px; font-weight: 700; line-height: 1.1; }
.event .d b { display: block; font-size: 1.5rem; font-family: var(--serif); }
.sec-img { border-radius: var(--r-m); margin-bottom: 12px; }
footer.foot { margin: 40px 0 20px; color: var(--ink-3); font-size: .8rem; text-align: center; }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
@media (min-width: 720px) { :root { --gutter: 24px; } .hero { grid-template-columns: 1fr 120px; } .hero img { width: 120px; } }

/* ── buttons: hover state of the primary action ── */
.btn:hover, .mode.primary:hover, .playbtn:hover { background: var(--prune-hover); }
.btn.ghost:hover { background: var(--rose); color: var(--raspberry-hover); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn.ghost:hover { background: #6e4334; color: var(--peach); } }
.lm { background: var(--terra-soft); color: var(--terra); }
.kicker, .up-next .k { color: var(--raspberry); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .kicker { color: var(--peach); } }
.brand { flex-direction: row; align-items: center; gap: 10px; }
.brand img { height: 30px; width: auto; flex: none; }
.brand > span { display: flex; flex-direction: column; min-width: 0; }
.brand > span b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.foot .brandline { display: flex; gap: 8px; align-items: center; justify-content: center; margin-top: 10px; }
.foot .brandline img { height: 18px; width: auto; }
.foot .brandline img.word { height: 14px; }

/* ── visit home: project photo, mobile framing ── */
.v-hero { position: relative; margin: 0 calc(-1 * var(--gutter)); min-height: 420px; height: min(68dvh, 620px); overflow: hidden; background: var(--night); color: var(--ivory); display: flex; align-items: flex-end; }
.v-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.v-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(87 50 36 / 0) 35%, rgb(87 50 36 / .55) 62%, rgb(87 50 36 / .92) 100%); }
.v-hero .in { position: relative; z-index: 1; padding: 24px var(--gutter) 22px; width: 100%; }
.v-hero h1 { color: var(--ivory); margin: 0 0 6px; text-shadow: 0 1px 12px rgb(0 0 0 / .25); }
.v-hero p { color: var(--night-ink); margin: 0; }
.v-hero .kicker { color: var(--peach); }
.v-hero .credit { position: absolute; z-index: 1; top: 10px; right: 10px; font-size: .68rem; color: var(--ivory); background: rgb(87 50 36 / .6); padding: 3px 8px; border-radius: 99px; max-width: 70%; }
@media (min-width: 720px) { .v-hero { margin: 16px 0 0; border-radius: var(--r-l); height: 520px; } }
.no-hero { padding: 28px 0 8px; }

/* choose a visit, then start it */
.modes .mode { position: relative; cursor: pointer; }
.mode input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.mode .check { grid-row: 1 / span 3; grid-column: 2; width: 26px; height: 26px; border-radius: 99px; border: 2px solid currentColor; opacity: .55; display: grid; place-items: center; }
.mode:has(input:checked) { border-color: var(--raspberry); box-shadow: 0 0 0 2px var(--raspberry), var(--shadow-1); }
.mode:has(input:checked) .check { opacity: 1; background: var(--raspberry); border-color: var(--raspberry); color: #fff; }
.mode:has(input:checked) .check::after { content: ''; width: 10px; height: 10px; border-radius: 99px; background: #fff; }
.mode:has(input:focus-visible) { outline: 3px solid var(--raspberry); outline-offset: 3px; }
.mode .more { grid-column: 1; font-size: .85rem; margin-top: 6px; }
.start-bar { position: sticky; bottom: calc(var(--nav-h) + var(--safe-b) + 8px); z-index: 6; margin-top: 14px; }
.start-bar .btn { width: 100%; min-height: 56px; font-size: 1.05rem; box-shadow: var(--shadow-2); }

/* ── welcome screen on « Commencer la visite » (simple fade) ── */
.welcome { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 32px 24px calc(32px + var(--safe-b)); background: radial-gradient(circle at 50% 35%, var(--ivory) 0%, var(--rose) 100%); color: var(--ink-c); opacity: 0; pointer-events: none; transition: opacity .35s ease; }
.welcome.on { opacity: 1; pointer-events: auto; }
html.welcome-pending .welcome { opacity: 1; transition: none; }
.welcome .w-in { text-align: center; max-width: 30ch; }
.welcome .w-phrase { font: 600 clamp(1.7rem, 7vw, 2.4rem)/1.2 var(--serif); margin: 0 0 28px; letter-spacing: -.01em; }
.welcome .w-brand { display: inline-flex; gap: 8px; align-items: center; opacity: .9; }
.welcome .w-brand img { height: 22px; width: auto; }
.welcome .w-brand img.word { height: 15px; }

/* ── one card component for works: same thumbnail size and spacing everywhere ── */
.thumb { width: var(--thumb); height: var(--thumb); flex: none; border-radius: 12px; overflow: hidden; background: var(--surface-2); display: grid; place-items: center; color: var(--ink-3); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb--empty .ic { width: 22px; height: 22px; opacity: .55; }
.icard { display: grid; grid-template-columns: var(--thumb) minmax(0, 1fr) auto; gap: 12px; align-items: center; text-decoration: none; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: 8px 12px 8px 8px; }
.icard .body { min-width: 0; }
.icard .k { display: block; font: 700 .72rem/1.3 var(--sans); text-transform: uppercase; letter-spacing: .07em; color: var(--raspberry); margin-bottom: 2px; }
.icard .t { display: block; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; hyphens: auto; }
.icard .s { font-size: .82rem; color: var(--ink-3); display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; margin-top: 4px; }
.icard .lm { min-width: 28px; height: 28px; font-size: .8rem; }
.icard .go { width: 44px; height: 44px; border-radius: 999px; display: grid; place-items: center; color: var(--raspberry); background: var(--rose); flex: none; }
.icard:hover { border-color: var(--raspberry); }
.icard.next { border-color: var(--raspberry); box-shadow: var(--shadow-1); margin: 18px 0 8px; }
.icard.next .go { background: var(--raspberry); color: var(--on-prune); }
.icard.next .t { font-family: var(--serif); font-size: 1.12rem; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .icard .k { color: var(--peach); } :root:not([data-theme="light"]) .icard .go { background: #6e4334; color: var(--peach); } :root:not([data-theme="light"]) .icard.next { border-color: var(--peach); } }
@media (max-width: 360px) { :root { --thumb: 60px; } .icard { gap: 10px; } .icard .go { width: 40px; height: 40px; } }
.items { gap: 10px; }
.items .icard { padding-right: 10px; }

/* admin preview bar (inside the team space) */
.adm-preview-bar { background: var(--night); color: var(--ivory); font-size: .85rem; }
.adm-preview-bar .wrap { display: flex; gap: 10px; align-items: center; justify-content: space-between; min-height: 44px; flex-wrap: wrap; }
.adm-preview-bar a { color: var(--peach); font-weight: 600; }
/* safety: the welcome screen always fades even if the script does not run */
html.welcome-pending .welcome { animation: ag-wfade .4s ease 1.8s forwards; }
@keyframes ag-wfade { to { opacity: 0; visibility: hidden; } }
.v-hero .credit { font-size: .62rem; padding: 2px 7px; max-width: 60%; line-height: 1.3; }
@media (max-width: 719px) { .v-hero { height: min(58dvh, 560px); min-height: 360px; } }
.adm-preview-bar { font-size: .78rem; }
.adm-preview-bar .wrap { min-height: 38px; padding-top: 4px; padding-bottom: 4px; }

/* ── Design system details (landing page) ── */
body { font-weight: 450; }
h1, h2, h3 { font-weight: 430; letter-spacing: -.012em; text-wrap: balance; font-optical-sizing: auto; }
h1 { font-weight: 410; }
.kicker { display: inline-flex; align-items: center; gap: .7rem; font: 560 .8rem/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--framboise); }
.kicker::before { content: ''; width: 1.75rem; height: 1px; background: var(--coral); flex: none; }
.v-hero .kicker { color: var(--peach); }
.v-hero .kicker::before { background: var(--peach); }
.btn { font-weight: 600; letter-spacing: .005em; border: 1.5px solid var(--prune); transition: background .25s, color .25s, border-color .25s; }
.btn:hover { border-color: var(--prune-hover); }
.btn.ghost { border-color: var(--framboise); }
.btn.ghost:hover { background: #ad493612; color: var(--framboise-hover); border-color: var(--framboise-hover); }
:focus-visible { outline-color: var(--framboise); }
.lm { background: var(--gold-soft); color: var(--framboise-hover); box-shadow: inset 0 0 0 1px #d97b2f55; }
.mk { background: var(--framboise); box-shadow: 0 0 0 3px #fffdf8, 0 0 0 4px var(--peach), var(--shadow-1); }
.mk.tour { background: var(--night); }
.welcome { background: linear-gradient(180deg, var(--ivory), var(--paper)); color: var(--ink-ds); }
.badge.draft { background: var(--gold-soft); color: #6b3d12; }
.icard:hover { border-color: var(--framboise); }
.nav a[aria-current="page"] { color: var(--framboise); }
.top { background: color-mix(in srgb, var(--ivory) 86%, transparent); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .kicker { color: var(--peach); }
  :root:not([data-theme="light"]) .kicker::before { background: var(--peach); }
  :root:not([data-theme="light"]) .top { background: color-mix(in srgb, var(--night) 88%, transparent); }
  :root:not([data-theme="light"]) .nav a[aria-current="page"] { color: var(--peach); }
  :root:not([data-theme="light"]) :focus-visible { outline-color: var(--peach); }
  :root:not([data-theme="light"]) .lm { background: #6e4334; color: var(--gold-soft); }
  :root:not([data-theme="light"]) .badge.draft { background: #6e4a1e; color: var(--gold-soft); }
}
